AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Add function to check nanoColor compatibility of a color space

Open
#2,007 0 comments 0 reactions 0 assignees View on GitHub
Feature Request
Dominant language
C++
Stars
2.1k
Forks
503
PR merge metrics
No merged PRs in 30d

Description

Since nanoColor is a light weight version of OCIO, it will not support all color spaces. For example, color spaces that use a FileTransform won't be supported. Applications that want to create file formats that support nanoColor need a way of determining what level of interop is possible for a given color space. There are several possible scenarios:

1. The color space is in a nanoColor built-in config, defined via a name string. A function is needed to quickly check if a color space is part of a built-in config without instantiating a built-in config.
2. The color space may be serialized as a custom color space. This may depend on what level of custom color space capability is available in a given file format.
3. The color space is nanoColor compatible but may not be serialized in the file format.
4. The color space uses functionality not present in nanoColor (e.g. LUTs).

For scenario 1, the following signature is proposed:
`bool builtinConfigHasColorSpace(const char* builtinConfigID, const ConstConfigRcPtr & config, const ConstColorSpaceRcPtr & cs);`

For scenarios 2-4, a function is needed that will check against a series of profiles (for example, does the color space only involve a MatrixTransform, ExponentTransform, or ExponentWithLinearTransform).
`bool Config::colorSpaceCompatibility(const ConstColorSpaceRcPtr & cs, CSProfileType colorSpaceProfile);`

Examples of useful profiles might be:
- NanoColorCompatible
- MatrixExponentCompatible
- UsesFileTransforms
- UsesLUTs

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the proposed builtinConfigHasColorSpace and Config::colorSpaceCompatibility signatures in the issue, along with nanoColor's supported functionality. Define how the listed profiles—such as NanoColorCompatible, MatrixExponentCompatible, UsesFileTransforms, and UsesLUTs—should determine compatibility and serialization support. Done means the compatibility checks and built-in color-space lookup have an agreed, testable behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.