Convert wide-gamut RGB color values to YCbCr color values
This function does not support the full data range of 10-bit and 12-bit RGB values, [0, 1023] and [0, 4095] respectively. The table shows the data ranges of the YCbCr values for the BT.2020 and BT.2100 color spaces.
| Component | 10-bit | 12-bit |
|---|---|---|
| Y | [64, 940] | [256, 3760] |
| Cb, Cr | [64, 960] | [256, 3840] |
[1]
[2]