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
160 stars 28 forks source link

Add round factor during float to int conversion #199

Closed ram-mohan closed 3 months ago

ram-mohan commented 3 months ago

The output of applyRecMap while converting to int, ensure a round factor is added for small error representation

Test: ./ultrahdr_unit_test