On this page |
int ocio_import(string space, string property, int &value)
int ocio_import(string space, string property, vector &value)
int ocio_import(string space, string property, string &value)
この関数は、カラー空間に関連したデータを照会します。
この関数が失敗すれば、value変数が変更されず、初期化されないままになります。
照会可能なアトリビュート
以下のプロパティのリストは、OCIO設定ファイルに定義されているほとんどのプロパティを含んでいます:
string name
カラー空間の名前。
string family
カラー空間ファミリー。
string equalitygroup
カラー空間の等価グループ。
string description
カラー空間の説明。
int isdata
カラー空間が非カラーピクセルデータ(例えば、法線、ポイント位置など)に適していればTrue。
string bitdepth
カラー空間ビット深度を表現した文字列。
string allocation
uniform
またはlg2
(log2)。
vector allocationvars
割り当て変数(min, max, offset)。
Examples
cvex test() { string token; string sval; int ival; vector vval; // カラー空間は、名前または役割で指定することができます。 foreach(space; { "sRGB", "color_picker" }) { foreach(token; { "name", "description", "isdata", "allocation", "allocationvars", "description", } ) { printf("----------------- %s ---------------------\n", token); if (teximport(map, token, sval)) fprintf(stderr, "'%s' = %s\n", token, sval); if (teximport(map, token, ival)) fprintf(stderr, "'%s' = %d\n", token, ival); else if (teximport(map, token, vval)) fprintf(stderr, "'%s' = %g\n", token, vval); } }
See also | |
color | |
ocio |