-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jpeg): Support reading Ultra HDR images #4484
Conversation
ac8f6b7
to
5c0698e
Compare
@lgritz quick question: I will need to add at least one Ultra HDR image for the test suite. The ones I use for testing locally weigh a bit more than 2M. Should I add them directly to the OpenImageIO repo, or should I create a PR in OpenImageIO-images to add them there ? |
Images repo, please |
cb6b890
to
e3049ae
Compare
b87bd9b
to
960cc35
Compare
8c13955
to
e8f2fe1
Compare
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
…ions Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
… macro Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
Signed-off-by: loicvital <[email protected]>
e8f2fe1
to
3061eeb
Compare
Alright @lgritz I think we're good to go. Thanks for the review(s) :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this looks great.
Thanks, this is a really interesting feature. I hope that this convention is embraced and we see lots of images that look like old school JPEGs to naive viewers but are HDR to the ones that know better.
There's still quite a few features from libuhdr we could expose in oiio, but yeah that felt like a pretty good starting point ! |
…on#4484) Initial feature request: AcademySoftwareFoundation#4424 Add support in the `jpeg` plugin for reading Ultra HDR images using the reference codec `libultrahdr`: https://github.com/google/libultrahdr In short, "ultra hdr" images are a clever extension of JPEG where the image file really is an old school JPEG file and will be interpreted correctly as such by old readers not aware of ultra hdr, but readers that are aware will see an extra piece of metadata that contains a gain map, that when applied to the base layer then yields an HDR image. Pretty clever approach! Images used for testing during development: https://github.com/MishaalRahmanGH/Ultra_HDR_Samples --------- Signed-off-by: loicvital <[email protected]>
…on#4484) Initial feature request: AcademySoftwareFoundation#4424 Add support in the `jpeg` plugin for reading Ultra HDR images using the reference codec `libultrahdr`: https://github.com/google/libultrahdr In short, "ultra hdr" images are a clever extension of JPEG where the image file really is an old school JPEG file and will be interpreted correctly as such by old readers not aware of ultra hdr, but readers that are aware will see an extra piece of metadata that contains a gain map, that when applied to the base layer then yields an HDR image. Pretty clever approach! Images used for testing during development: https://github.com/MishaalRahmanGH/Ultra_HDR_Samples --------- Signed-off-by: loicvital <[email protected]>
…on#4484) Initial feature request: AcademySoftwareFoundation#4424 Add support in the `jpeg` plugin for reading Ultra HDR images using the reference codec `libultrahdr`: https://github.com/google/libultrahdr In short, "ultra hdr" images are a clever extension of JPEG where the image file really is an old school JPEG file and will be interpreted correctly as such by old readers not aware of ultra hdr, but readers that are aware will see an extra piece of metadata that contains a gain map, that when applied to the base layer then yields an HDR image. Pretty clever approach! Images used for testing during development: https://github.com/MishaalRahmanGH/Ultra_HDR_Samples --------- Signed-off-by: loicvital <[email protected]>
…on#4484) Initial feature request: AcademySoftwareFoundation#4424 Add support in the `jpeg` plugin for reading Ultra HDR images using the reference codec `libultrahdr`: https://github.com/google/libultrahdr In short, "ultra hdr" images are a clever extension of JPEG where the image file really is an old school JPEG file and will be interpreted correctly as such by old readers not aware of ultra hdr, but readers that are aware will see an extra piece of metadata that contains a gain map, that when applied to the base layer then yields an HDR image. Pretty clever approach! Images used for testing during development: https://github.com/MishaalRahmanGH/Ultra_HDR_Samples --------- Signed-off-by: loicvital <[email protected]>
Description
Initial feature request: #4424
Add support in the
jpeg
plugin for reading Ultra HDR images using the reference codeclibultrahdr
: https://github.com/google/libultrahdrTests
Images used for testing during development: https://github.com/MishaalRahmanGH/Ultra_HDR_Samples
Checklist:
need to update the documentation, for example if this is a bug fix that
doesn't change the API.)
(adding new test cases if necessary).
corresponding Python bindings (and if altering ImageBufAlgo functions, also
exposed the new functionality as oiiotool options).
already run clang-format before submitting, I definitely will look at the CI
test that runs clang-format and fix anything that it highlights as being
nonconforming.