Skip to content
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

test: improve color management test in imagebufalgo_test #4063

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Nov 24, 2023

Add a few more assertion checks and error messages in imagebufalgo_test.

I observe that if somebody runs the testsuite with $OCIO set to a config that doesn't contain the required color space names for this test, it will fail. As a backstop, use the default built-in config if the initial request fails. That will always give a working processor between these spaces if OCIO >= 2.2 is being used.

Also one more tiny SPI-specific enhancement to hacky identification of nonconforming color space names in our old configs.

Add a few more assertion checks and error messages in
imagebufalgo_test.

I observe that if somebody runs the testsuite with $OCIO set to a
config that doesn't contain the required color space names for this
test, it will fail. As a backstop, use the default built-in config if
the initial request fails. That will always give a working processor
between these spaces if OCIO >= 2.2 is being used.

Also one more tiny SPI-specific enhancement to hacky identification of
nonconforming color space names in our old configs.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
// try again using the built-in config (OCIO 2.2+) and hope for the best.
if (!processor)
processor = ColorConfig("ocio://default")
.createColorProcessor("lin_srgb", "srgb");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean "srgb_texture" rather than "srgb" here? (The latter is not in the default config.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not in the default config, but I make an alias for it.

@lgritz lgritz merged commit 169de93 into AcademySoftwareFoundation:master Nov 27, 2023
25 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Dec 10, 2023
…wareFoundation#4063)

Add a few more assertion checks and error messages in imagebufalgo_test.

I observe that if somebody runs the testsuite with `$OCIO` set to a
config that doesn't contain the required color space names for this
test, it will fail. As a backstop, use the default built-in config if
the initial request fails. That will always give a working processor
between these spaces if OCIO >= 2.2 is being used.

Also one more tiny SPI-specific enhancement to hacky identification of
nonconforming color space names in our old configs.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
1div0 pushed a commit to 1div0/OpenImageIO that referenced this pull request Feb 24, 2024
…wareFoundation#4063)

Add a few more assertion checks and error messages in imagebufalgo_test.

I observe that if somebody runs the testsuite with `$OCIO` set to a
config that doesn't contain the required color space names for this
test, it will fail. As a backstop, use the default built-in config if
the initial request fails. That will always give a working processor
between these spaces if OCIO >= 2.2 is being used.

Also one more tiny SPI-specific enhancement to hacky identification of
nonconforming color space names in our old configs.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
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.

None yet

2 participants