Skip to content

Conversation

@brechtvl
Copy link
Contributor

@brechtvl brechtvl commented Nov 28, 2025

Description

If the colorspace exists and has an interop ID in an OCIO 2.5 config, use that.
Otherwise check if the colorspace is equivalent to a known color interop ID.

Tests

Tests were added.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable. (Check if there is no
    need to update the documentation, for example if this is a bug fix that
    doesn't change the API.)
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • If I added or modified a C++ API call, I have also amended the
    corresponding Python bindings (and if altering ImageBufAlgo functions, also
    exposed the new functionality as oiiotool options).
  • My code follows the prevailing code style of this project. If I haven't
    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.

@brechtvl
Copy link
Contributor Author

brechtvl commented Nov 28, 2025

Draft because this depends on and includes the changes from #4964.

@brechtvl brechtvl force-pushed the exr-write-interop-id branch 3 times, most recently from 10c758a to 8deb257 Compare December 1, 2025 23:24
…pace

If the colorspace exists and has an interop ID in an OCIO 2.5 config, use that.
Otherwise check if the colorspace is equivalent to a known color interop ID.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
@brechtvl brechtvl force-pushed the exr-write-interop-id branch from 8deb257 to e0631dd Compare December 12, 2025 16:46
@brechtvl
Copy link
Contributor Author

It's suspicous that an EXR related test is failing on Windows-2022, but not sure how it could be caused by the changes in this PR.

@brechtvl brechtvl marked this pull request as ready for review December 12, 2025 17:51
@lgritz
Copy link
Collaborator

lgritz commented Dec 12, 2025

The bleeding edge test is unrelated and I'm fixing it separately.

Not sure about the windows one. I'm rerunning the failed tests now. A lot of glitchy stuff sometimes happens on the GHA runners, it's always worth trying again when something that has consistently passed for a long time spuriously fails.

@lgritz
Copy link
Collaborator

lgritz commented Dec 19, 2025

Is this one ready to merge?

@brechtvl
Copy link
Contributor Author

Yes, all my PRs that are not marked as draft are ready.

@lgritz lgritz merged commit 693b09b into AcademySoftwareFoundation:main Dec 19, 2025
54 of 57 checks passed
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Dec 22, 2025
…pace (AcademySoftwareFoundation#4967)

If the colorspace exists and has an interop ID in an OCIO 2.5 config,
use that.
Otherwise check if the colorspace is equivalent to a known color interop
ID.

Tests were added.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
lgritz pushed a commit to lgritz/OpenImageIO that referenced this pull request Dec 23, 2025
…pace (AcademySoftwareFoundation#4967)

If the colorspace exists and has an interop ID in an OCIO 2.5 config,
use that.
Otherwise check if the colorspace is equivalent to a known color interop
ID.

Tests were added.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants