google / libultrahdr

Ultra HDR is a true HDR image format, and is backcompatible. libultrahdr is the reference codec for the Ultra HDR format. The codecs that support the format can render the HDR intent of the image on HDR displays; other codecs can still decode and display the SDR intent of the image.
https://developer.android.com/guide/topics/media/platform/hdr-image-format
Apache License 2.0
146 stars 23 forks source link

Improve rgb input handling #242

Closed ram-mohan closed 2 weeks ago

ram-mohan commented 2 weeks ago

For rgb inputs, these are first converted to ycbcr inputs and stored internally. During gainmap generation, these are again converted back to rgb. These redundant color space conversions are removed.

fixed few compilation warnings

Test: ./ultrahdr_unit_test

DichenZhang1 commented 2 weeks ago

Thank you for making this happen! A side question I assume we'll have a follow-up CL in the example app?

ram-mohan commented 2 weeks ago

Thank you for making this happen! A side question I assume we'll have a follow-up CL in the example app?

Sample app has changes that allow for rgb inputs. so no additional change is required.