AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.74k stars 431 forks source link

Adsk Contrib - Improve heuristics for finding known color spaces #1913

Closed doug-walker closed 7 months ago

doug-walker commented 7 months ago

This makes some improvements to the algorithms that search configs to find either interchange roles or equivalents to built-in color spaces.

1) Fixes a bug where an sRGB gamma curve (without a matrix) could throw off the search for the interchange roles.

2) Avoids trying to test color spaces that are unlikely to be what is being searched for and which might be costly to test. For example, this tries to avoid testing color spaces that likely contain a Lut3D. This should make the heuristics faster to run.

3) Several new tests are added.