libheif icon indicating copy to clipboard operation
libheif copied to clipboard

Add support for handling 'tmap' items

Open ram-mohan opened this issue 8 months ago • 2 comments

Gain map technology offers a way to create an image (henceforth referred as derived image) from one base input image and a secondary input image called as a gainmap input image. Reconstruction is done by applying the gain map to the base image according to iso 21496-1 section 6.

This change provides API to read, write base input image, gain map input image, gain map metadata. Third party applications can make use of this API to render only base image or reconstruct the derived image and render the same.

By default these API is disabled and can be enabled at configure time using option -DWITH_EXPERIMENTAL_GAIN_MAP=1

TODO: add plugins for encoding, decoding uhdr images

ram-mohan avatar Apr 06 '25 11:04 ram-mohan

Thank you. Note that there is also some work for this in #1121.

I will have a closer look at this when we switched to the v1.20.x branch and can do API additions.

farindk avatar Apr 07 '25 11:04 farindk

Just for reference https://developer.apple.com/documentation/appkit/applying-apple-hdr-effect-to-your-photos

farindk avatar Apr 07 '25 11:04 farindk