AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Add function to check nanoColor compatibility of a color space

Ouverte
#2,007 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Feature Request
Langage dominant
C++
Étoiles
2.1k
Forks
503
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par examiner les signatures proposées de builtinConfigHasColorSpace et Config::colorSpaceCompatibility dans l’issue, ainsi que les fonctionnalités prises en charge par nanoColor. Définissez comment les profils listés — tels que NanoColorCompatible, MatrixExponentCompatible, UsesFileTransforms et UsesLUTs — doivent déterminer la compatibilité et la prise en charge de la sérialisation. Le travail est terminé lorsque les vérifications de compatibilité et la recherche intégrée d’espaces colorimétriques ont un comportement convenu et testable.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cpp
Domaine
computer-graphics
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.