libcamera/utils/raspberrypi/ctt
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
..
alsc_only.py utils: raspberrypi: ctt: Add alsc_only method 2022-08-02 16:59:06 +03:00
convert_tuning.py utils: raspberrypi: Add tuning file conversion script 2022-07-28 13:48:51 +03:00
ctt.py utils: raspberrypi: ctt: Add alsc_only method 2022-08-02 16:59:06 +03:00
ctt_alsc.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_awb.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_ccm.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_config_example.json libcamera: utils: Raspberry Pi Camera Tuning Tool 2020-05-11 23:54:45 +03:00
ctt_geq.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_image_load.py utils: raspberrypi: ctt: dng_load_image: Work with DNG files from Picamera2 2022-08-03 14:32:19 +03:00
ctt_lux.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_macbeth_locator.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_noise.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_pretty_print_json.py utils: raspberrypi: ctt: Output version 2.0 format tuning files 2022-07-28 13:47:51 +03:00
ctt_ransac.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00
ctt_ref.pgm libcamera: utils: Raspberry Pi Camera Tuning Tool 2020-05-11 23:54:45 +03:00
ctt_tools.py raspberrypi: Update Copyright statement in all Raspberry Pi source files 2022-07-27 18:12:15 +03:00