Skip to content

Rewrite JPEG APP1 without copying the SOS scan in RAM - #837

Open
rnissl wants to merge 3 commits into
mapillary:mainfrom
rnissl:mly/06-app1-rewrite
Open

rnissl wants to merge 3 commits into
mapillary:mainfrom
rnissl:mly/06-app1-rewrite

Conversation

@rnissl

@rnissl rnissl commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • piexif still dumps EXIF; merge_segments rebuilds the header; the entropy-coded scan is streamed from the original file.
  • Includes jpegapp sidecar record packing for the encode-time follow-up.

Test plan

  • tests/unit/test_exifedit.py (APP1 stream vs piexif.insert)

Rebased onto current mapillary/mapillary_tools main (d1b82ab). Independent of the GoPro Max / custom FFmpeg stack.

piexif still dumps EXIF; merge_segments rebuilds the header. The entropy-coded scan is streamed from the original file. Sidecar record packing for jpegapp is included for the encode-time follow-up.

Co-authored-by: Cursor <cursoragent@cursor.com>
@meta-cla meta-cla Bot added the cla signed label Sep 20, 2026
rnissl and others added 2 commits September 20, 2026 22:06
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant