ColorSpace オブジェクト
-
primariesstring - 色空間のプライマリ(原色)。 以下のいずれかの値になります。bt709- BT709 (sRGB にも使用される)bt470m- BT470Mbt470bg- BT470BGsmpte170m- SMPTE170Msmpte240m- SMPTE240Mfilm- フィルムbt2020- BT2020smptest428-1- SMPTEST428-1smptest431-2- SMPTEST431-2p3- P3xyz-d50- XYZ D50adobe-rgb- Adobe RGBapple-generic-rgb- Apple Generic RGBwide-gamut-color-spin- Wide Gamut Color Spinebu-3213-e- EBU 3213-Ecustom- カスタムプライマリinvalid- 不正なプライマリ
-
transferstring - 色空間の伝達関数。 以下のいずれかの値になります。bt709- BT709 伝達関数bt709-apple- BT709 Apple 伝達関数gamma18- ガンマ 1.8 伝達関数gamma22- ガンマ 2.2 伝達関数gamma24- ガンマ 2.4 伝達関数gamma28- ガンマ 2.8 伝達関数smpte170m- SMPTE170M 伝達関数smpte240m- SMPTE240M 伝達関数linear- 線形伝達関数log- 対数転送関数log-sqrt- 対数平方伝達関数iec61966-2-4- IEC61966-2-4 伝達関数bt1361-ecg- BT1361 ECG 伝達関数srgb- sRGB 伝達関数bt202020-10- BT20-10 伝達関数bt2020-12- BT20-12 伝達関数pq- PQ(知覚量子化器)伝達関数smptest428-1- SMPTEST428-1 伝達関数hlg- HLG(ハイブリッド・ログ=ガンマ)伝達関数srgb-hdr- sRGB HDR 伝達関数linear-hdr- 線形 HDR 伝達関数custom- カスタム伝達関数custom-hdr- カスタム HDR 伝達関数scrgb-linear-80-nits- scRGB 線形 80 nits 伝達関数invalid- 不正な転送関数
-
matrixstring - 色空間の変換行列。 以下のいずれかの値になります。rgb- RGB 行列bt709- BT709 行列fcc- FCC 行列bt470bg- BT470BG 行列smpte170m- SMPTE170M 行列smpte240m- SMPTE240M 行列ycocg- YCoCg 行列bt2020-ncl- BT2020 NCL 行列ydzdx- YDzDx 行列gbr- GBR 行列invalid- 不正な行列
-
primariesstring - 色空間のレンジ。 以下のいずれかの値になります。limited- リミテッドレンジ(RGB 値は 16 から 235 まで)full- フルレンジ(0 から 255 の RGB 値)derived- 伝達関数と行列により定義されるレンジinvalid- 不正なレンジ
一般的な ColorSpace の定義
標準的な色空間
sRGB:
const cs = {
primaries: 'bt709',
transfer: 'srgb',
matrix: 'rgb',
range: 'full'
}
Display P3:
const cs = {
primaries: 'p3',
transfer: 'srgb',
matrix: 'rgb',
range: 'full'
}
XYZ D50:
const cs = {
primaries: 'xyz-d50',
transfer: 'linear',
matrix: 'rgb',
range: 'full'
}
HDR 色空間
拡張 sRGB (sRGB 値を全ての実数に拡張):
const cs = {
primaries: 'bt709',
transfer: 'srgb-hdr',
matrix: 'rgb',
range: 'full'
}
scRGB リニア (全ての実数値の線形伝達関数):
const cs = {
primaries: 'bt709',
transfer: 'linear-hdr',
matrix: 'rgb',
range: 'full'
}
scRGB リニア 80 nits (SDR の白が 80 nits):
const cs = {
primaries: 'bt709',
transfer: 'scrgb-linear-80-nits',
matrix: 'rgb',
range: 'full'
}
HDR10 (原色色度 BT.2020、伝達関数 PQ):
const cs = {
primaries: 'bt2020',
transfer: 'pq',
matrix: 'rgb',
range: 'full'
}
HLG (原色色度 BT.2020、伝達関数 HLG):
const cs = {
primaries: 'bt2020',
transfer: 'hlg',
matrix: 'rgb',
range: 'full'
}
ビデオ色空間
Rec. 601 (SDTV):
const cs = {
primaries: 'smpte170m',
transfer: 'smpte170m',
matrix: 'smpte170m',
range: 'limited'
}
Rec. 709 (HDTV):
const cs = {
primaries: 'bt709',
transfer: 'bt709',
matrix: 'bt709',
range: 'limited'
}
JPEG (JPEG 画像の典型的な色空間):
const cs = {
primaries: 'bt709',
transfer: 'srgb',
matrix: 'smpte170m',
range: 'full'
}