Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 0/3] [RFC] EXIF overhaul
@ 2024-02-13 21:24 Leo Izen
  2024-02-13 21:24 ` [FFmpeg-devel] [PATCH 1/3] various: change EXIF metadata into AVFrameSideData Leo Izen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Leo Izen @ 2024-02-13 21:24 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Leo Izen

A few notes:
- This includes an avpriv_ removal, so it won't be able to be merged
  until the ABI is bumped. Alternatively, I could add that avipriv_
  back in as a wrapper around the actual API so it's not a blocker,
  and then we can remove it when the time comes to bump the ABI.
- MakerNote inside TIFF files are not handled by this patch. I don't
  have any samples that lets me reliably special-case them based on
  manufacturer. MakerNote is, by spec, a binary blob, but in practice
  it's often a TIFF IFD, with arbitrary data before the IFD starts
  and arbitrary semantics on whether its IFD-offsets are relative to
  the start of the TIFF header or the start of the MakerNote. The lack
  of samples makes this hard to work around. See [1] for more details.
  Note that [1] links [2] but [2] is a deadlink.
- We attach the EXIF buffer as-is from mjpeg, webp, or other files that
  treat it as a blob, but we still need to parse it in order to determine
  the display matrix orientation side data. If there's a better way to
  handle this, please suggest one.
- AVFrameSideData must be flat, so we can't parse it and store an
  AVDictionary * pointer in its place, as convenient as that would be.


[1] https://exiv2.org/makernote.html
[2] http://www.exif.org/samples.html

Leo Izen (3):
  various: change EXIF metadata into AVFrameSideData
  avcodec/pngdec: parse eXIf chunk
  avcodec/pngenc: write eXIf chunks

 fftools/ffprobe.c                  |  27 ++-
 libavcodec/Makefile                |   1 +
 libavcodec/exif.c                  | 267 +++++++++++++++++++++++++++--
 libavcodec/exif.h                  |  21 ++-
 libavcodec/exif_internal.h         |  41 +++++
 libavcodec/mjpegdec.c              |  96 ++---------
 libavcodec/mjpegdec.h              |   2 +-
 libavcodec/pngdec.c                |  35 ++++
 libavcodec/pngenc.c                |   4 +
 libavcodec/tiff.c                  |  19 +-
 libavcodec/tiff.h                  |   1 +
 libavcodec/webp.c                  |  38 ++--
 libavformat/avidec.c               |   4 +-
 libavutil/frame.c                  |   1 +
 libavutil/frame.h                  |   6 +
 tests/ref/fate/exif-image-embedded |   5 +-
 tests/ref/fate/exif-image-jpg      |  91 +++++-----
 tests/ref/fate/exif-image-webp     |  91 +++++-----
 18 files changed, 521 insertions(+), 229 deletions(-)
 create mode 100644 libavcodec/exif_internal.h

-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-02-15  8:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13 21:24 [FFmpeg-devel] [PATCH 0/3] [RFC] EXIF overhaul Leo Izen
2024-02-13 21:24 ` [FFmpeg-devel] [PATCH 1/3] various: change EXIF metadata into AVFrameSideData Leo Izen
2024-02-13 21:24 ` [FFmpeg-devel] [PATCH 2/3] avcodec/pngdec: parse eXIf chunk Leo Izen
2024-02-13 21:24 ` [FFmpeg-devel] [PATCH 3/3] avcodec/pngenc: write eXIf chunks Leo Izen
2024-02-14 18:38   ` Michael Niedermayer
2024-02-14 18:53   ` Andreas Rheinhardt
2024-02-15  8:19     ` Leo Izen

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git