Conversation
|
@ram-mohan Would you consider this a fairly good test to see if a file is likely a gain map? It would be very nice to have an option to simply validate in some performant way. I wouldn't expect it to catch bit rot or image encoding errors since it isn't decoding fully. |
|
@gregbenz probe() is the first stage of decoding process. In this stage, the application checks for presence of primary image, gainmapimage and gainmap metadata. If these are present then the application continues decoding. So i think this is a good starting point to check if the image is a valid uhdr image. |
|
Thank you, that's helpful. Possible to expose that with a switch in the CLI
app?
…On Mon, Sep 1, 2025 at 6:18 AM ram ***@***.***> wrote:
*ram-mohan* left a comment (google/libultrahdr#368)
<#368 (comment)>
@gregbenz <https://github.com/gregbenz> probe() is the first stage of
decoding process. In this stage, the application checks for presence of
primary image, gainmapimage and gainmap metadata. If these are present then
the application continues decoding. So i think this is a good starting
point to check if the image is a valid uhdr image.
—
Reply to this email directly, view it on GitHub
<#368 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APPMU6QZ7O35SPQ5ACHCDLD3QQTP3AVCNFSM6AAAAACFIO3NU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENBRHE4DANBYGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
It is added under option P, |
|
Great! Is this supported to just probe (test if file is valid or not) without creating a new raw file? I would generally assume the goal for using probe is just a test and not output (as requesting normal decode would be expected to throw an error if the target source image is not a valid gain map). |
|
yes |
This change provides an option to print gainmap metadata without completely decoding the image. fixes google#362 Test: ./ultrahdrapp -m 1 -j out.jpeg -P
This change provides an option to print gainmap metadata without completely decoding the image.
fixes #362
Test: ./ultrahdrapp -m 1 -j out.jpeg -P