Replies: 5 comments 7 replies
-
Furthermore, does this code confirm my suspicion that the metadata.cfg supplied when using API - 4 has no effect on the output? |
Beta Was this translation helpful? Give feedback.
-
@gregbenz Did you mean "the default min prevents the HDR from being darker than the SDR." |
Beta Was this translation helpful? Give feedback.
-
@ram-mohan yes, sorry for that confusion. I've edited my original post to correct that. |
Beta Was this translation helpful? Give feedback.
-
The change is merged. #244 |
Beta Was this translation helpful? Give feedback.
-
@ram-mohan Thank you for adding support, the results look great. |
Beta Was this translation helpful? Give feedback.
-
For some images, it would be ideal to have control over minContentBoost and maxContentBoost. It would be ideal to be able to pass a float value to ultrahdr_app to override the defaults (
libultrahdr/lib/src/jpegr.cpp
Line 953 in 0f97353
For example, the default min prevents the HDR from being darker than the SDR. While that sounds reasonable, there are reasons not to enforce such a clip. If the two images are derived independently, this may be a real scenario where some HDR pixels are a bit darker and enforcing a minimum would result in unexpected lifting of HDR shadows (ie loss of contrast/detail in the rendered result).
If a range check is needed for these values, I would propose allowing any positive float value to offer maximum flexibility (unless I'm overlooking the impact of future cases where the base image is HDR and the gain logic is flipped). There are a wide range of useful values for some niche applications.
Beta Was this translation helpful? Give feedback.
All reactions