DichenZhang1

Results 6 issues of DichenZhang1

This feature is hidden behind the WITH_EXPERIMENTAL_GAIN_MAP compile flag. See https://helpx.adobe.com/camera-raw/using/gain-map.html for an introduction to gain maps. Note that in this change, gain maps are not stored as auxiliary items...

Sync to main branch

This will boost PSNR for API-1

Reverts google/libultrahdr#339

applyGainMap() call is vulnerable to memory corruption when the buffer size of `dest` from user configuration is not big enough, which will cause crash. This change added a try-catch flow...