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

configure hdr display max brightness #253

Closed ram-mohan closed 1 week ago

ram-mohan commented 2 weeks ago

If the input color transfer is linear, there is no proper peak brightness configuration. Also hlg is not absolute standard allowing room for different peak brightness levels. This change addresses this.

Test: ./ultrahdr_unit_test

ram-mohan commented 2 weeks ago

This is a draft. I would like to closely examine the changes made on the decoder side (whether they are accurate or not)