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

Heuristics should avoid Lut3D transforms #1860

Closed
doug-walker opened this issue Sep 20, 2023 · 1 comment
Closed

Heuristics should avoid Lut3D transforms #1860

doug-walker opened this issue Sep 20, 2023 · 1 comment
Assignees

Comments

@doug-walker
Copy link
Collaborator

doug-walker commented Sep 20, 2023

There are some API calls such as GetProcessorToBuiltinColorSpace, isColorSpaceLinear, IdentifyInterchangeSpace, and IdentifyBuiltinColorSpace that generate Processors and evaluate pixel values. These are not currently properly avoiding color spaces where the transform stack involves a Lut3D. On some configs, this may result in very long delays if calling one of these functions.

This issue has been reported in OpenImageIO.

@doug-walker doug-walker self-assigned this Sep 20, 2023
@doug-walker doug-walker changed the title Heurisitcs should avoid Lut3D transforms Heuristics should avoid Lut3D transforms Sep 20, 2023
@doug-walker
Copy link
Collaborator Author

This was fixed by PR #1913 for GetProcessorToBuiltinColorSpace, IdentifyInterchangeSpace, and IdentifyBuiltinColorSpace. The fix will be in OCIO 2.3.1.

The isColorSpaceLinear method is more challenging to fix and has not been adjusted yet. However, at least in this case the user is calling it manually on individual color spaces, so the potential problem is easier to work around.

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

No branches or pull requests

1 participant