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 upper limit to gainmap scale factor #226

Closed ram-mohan closed 1 month ago

ram-mohan commented 1 month ago

very large gainmap scale factors result in large heap requirements during ShepardsIDW instantiation. As large downsample factors are not beneficial from quality stand point and also for embedded devices profile point of view, add an upper bound to the config

fixes oss-fuzz: 70927

Test: ./ultrahdr_unit_test