Fig. 1: REDcolor 2 / REDlog Film — CIE 1931 xy.Fig. 2: REDcolor 2 / REDlog Film encoding curve, L = 0.18 × 2^stops. | x | y |
|---|
| Red | 0.8974 | 0.3308 |
| Green | 0.2960 | 0.6846 |
| Blue | 0.0998 | -0.0230 |
| White (D65) | 0.3127 | 0.3290 |
Transfer function
| Curve | Cineon-log |
|---|
| Black / white point (10-bit code values) | 95 / 685 |
|---|
| Linear 0 → code | 0.0927 |
|---|
| 18% grey → code | 0.4573 |
|---|
| Linear 1.0 → code | 0.6696 |
|---|
Encoding: convertFromLinear
vec4 convertFromLinear(vec4 val, int clip)
{
val.r = val.r < 0.0 ? val.r*11.68432+0.0926837 : 0.6682185+0.1273591*log(val.r+0.0109);
val.g = val.g < 0.0 ? val.g*11.68432+0.0926837 : 0.6682185+0.1273591*log(val.g+0.0109);
val.b = val.b < 0.0 ? val.b*11.68432+0.0926837 : 0.6682185+0.1273591*log(val.b+0.0109);
return val;
}Decoding: convertToLinear
vec4 convertToLinear(vec4 val)
{
val.r = val.r < 0.0926837 ? (val.r-0.0926837)/11.68432 : exp(min((val.r-0.6682185)/0.1273591,86.4))-0.0109;
val.g = val.g < 0.0926837 ? (val.g-0.0926837)/11.68432 : exp(min((val.g-0.6682185)/0.1273591,86.4))-0.0109;
val.b = val.b < 0.0926837 ? (val.b-0.0926837)/11.68432 : exp(min((val.b-0.6682185)/0.1273591,86.4))-0.0109;
return val;
}RGB → XYZ matrix
RGB → XYZ
[ 0.449576945135 0.373429639575 0.127449342342 ]
[ 0.165709943876 0.863663426096 -0.029373369972 ]
[ -0.114313590235 0.024399794909 1.178971546085 ]
Use this space
Gamut compare ↗
Transfer compare ↗