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

add support for configuring min/max content boost #244

Closed ram-mohan closed 2 weeks ago

ram-mohan commented 2 weeks ago

The min/max content boost for different encoding presets are computed internally basing on the input hdr and sdr intents. This change introduces an API to configure the values from the app side. If the library during its computations observes a small min-max range, then client recommendation is ignored. Otherwise, the configured values are selected.

fixes #160

Test: ./ultrahdr_app -k 0.01 -K 8.0