libcamera/utils
William Vinnicombe 23b6965a93 utils: raspberrypi: ctt: dng_load_image: Work with DNG files from Picamera2
The DNG specification is based on the TIFF file format and recommends
storing the raw image data in a SubIFD and the Exif tags in an Exif IFD.
Other options are allowed, even if not recommended, such as storing both
the raw image data and the Exif data in IFD0, as done by the TIFF/EP
specification.

libcamera-apps use pyexiv2 to produce DNG files, following the DNG
recommendation, while applications based on picamera2 use PiDNG, which
adopts the TIFF/EP structure. Why it does so is not currently clear (see
https://github.com/schoolpost/PiDNG/issues/65 for discussions on this
topic), but as files based on the DNG and TIFF/EP variants exist in the
wild, both need to be supported by ctt.

Add code to identify which tags are being used, and then load the
metadata from the correct tags.

Signed-off-by: William Vinnicombe <william.vinnicombe@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2022-08-03 14:32:19 +03:00
..
hooks utils: hooks: pre-push: Catch commits without author's SoB 2022-03-28 13:29:32 +03:00
ipc utils: ipc: Add __init__.py for local module utils/ipc/generators 2022-01-27 06:09:05 +02:00
ipu3 utils: ipu3-pack: Provide a 10-bit bayer packing utility 2022-07-19 21:43:35 +05:30
raspberrypi utils: raspberrypi: ctt: dng_load_image: Work with DNG files from Picamera2 2022-08-03 14:32:19 +03:00
rkisp1 utils: rkisp1: Support optional CSI-2 receiver subdev 2022-07-15 13:46:22 +03:00
tracepoints utils: tracepoints: gen-tp-header: Add execute permission 2021-12-14 10:49:20 +00:00
checkstyle.py utils: checkstyle.py: Fix color bleed 2022-06-03 23:35:22 +03:00
gen-controls.py utils: gen-controls: Fix enumerators documentation 2020-12-27 12:28:00 +02:00
gen-formats.py utils: gen-formats: Support big-endian DRM formats 2021-02-01 22:33:55 +02:00
gen-header.sh utils: Convert to pragma once 2021-11-24 12:19:03 +00:00
gen-ipa-priv-key.sh libcamera: ipa: Move key generation to utils 2020-09-24 10:56:22 +01:00
gen-ipa-pub-key.py libcamera: ipa: Move key generation to utils 2020-09-24 10:56:22 +01:00
gen-version.sh build: Preserve upstream git versioning using meson dist 2021-10-19 13:14:54 +03:00
meson.build README, meson: Add dependency on ply and jinja2 for IPA interface generation 2020-11-11 19:23:16 +09:00
run-dist.sh build: Preserve upstream git versioning using meson dist 2021-10-19 13:14:54 +03:00
update-kernel-headers.sh utils: update-kernel-headers: Update path to intel-ipu3.h 2022-01-03 15:31:12 +02:00
update-mojo.sh utils: update-mojo.sh: Add script for updating mojo 2021-05-26 13:03:12 +09:00