AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Add function to check nanoColor compatibility of a color space

オープン
#2,007 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Feature Request
主要言語
C++
スター
2.1k
フォーク
503
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue で提案されている builtinConfigHasColorSpace と Config::colorSpaceCompatibility のシグネチャを、nanoColor がサポートする機能と併せて確認します。NanoColorCompatible、MatrixExponentCompatible、UsesFileTransforms、UsesLUTs など、列挙されたプロファイルが互換性とシリアライズのサポートをどのように決定するべきかを定義します。互換性チェックと組み込みの色空間検索について、合意されたテスト可能な動作が定義されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
computer-graphics
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。