Skip to content

Conversation

@brechtvl
Copy link
Contributor

@brechtvl brechtvl commented Dec 1, 2025

Description

Add a legacy alias for color interop IDs, matching aliases that exist in the
OpenColorIO ACES configs back to version 1.0.0 (made for OpenColorIO 2.1).

Tests

Added test to verify if old OpenColorIO can find the interop ID for ACES2065-1 despite lacking the official interop ID.

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.

When reading image files with CICP metadata, automatically set the
corresponding "oiio:ColorSpace". When writing files that support CICP and no
other colorspace metadata can represent "oiio:ColorSpace", automatically write
CICP metadata.

Setting "oiio:ColorSpace" on read prefers scene referred over display referred
color spaces, changing existing behavior as little as possible. The alternative
would have been to interpret the presence of CICP metadata as an indication
that the image is likely display referred, which might be reasonable too.

Also add new ColorConfig get_cicp and get_color_interop_id API functions to
share logic between file formats.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
Add a legacy alias for color interop IDs, matching aliases that exist in the
OpenColorIO ACES configs back to version 1.0.0 (made for OpenColorIO 2.1).

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
@brechtvl
Copy link
Contributor Author

brechtvl commented Dec 1, 2025

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

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.

1 participant