ARRI Wide Gamut 3 / LogC3

ARRI Wide Gamut 3 with Log C V3; Log C is a family of curves indexed by exposure index, and this page uses EI 800.

Fig. 1: ARRI Wide Gamut 3 / LogC3 — CIE 1931 xy.
Fig. 2: ARRI Wide Gamut 3 / LogC3 encoding curve, L = 0.18 × 2^stops.
xy
Red0.68400.3130
Green0.22100.8480
Blue0.0861-0.1020
White (D65)0.31270.3290

Transfer function

CurveARRI-log-C
Black / white point (10-bit code values)95 / 584
Linear 0 → code0.0926
18% grey → code0.3910
Linear 1.0 → code0.5706

Encoding: convertFromLinear

vec4 convertFromLinear(vec4 val, int clip)
{
    val.r = val.r < 0.0106232 ? val.r*5.3676533+0.0926363 : 0.5696259+0.1073531*log(val.r+0.00937677);
    val.g = val.g < 0.0106232 ? val.g*5.3676533+0.0926363 : 0.5696259+0.1073531*log(val.g+0.00937677);
    val.b = val.b < 0.0106232 ? val.b*5.3676533+0.0926363 : 0.5696259+0.1073531*log(val.b+0.00937677);
    return val;
}

Decoding: convertToLinear

vec4 convertToLinear(vec4 val)
{
    val.r = val.r < 0.1496582 ? (val.r-0.0926363)/5.3676533 : exp(min((val.r-0.5696259)/0.1073531,86.4))-0.00937677;
    val.g = val.g < 0.1496582 ? (val.g-0.0926363)/5.3676533 : exp(min((val.g-0.5696259)/0.1073531,86.4))-0.00937677;
    val.b = val.b < 0.1496582 ? (val.b-0.0926363)/5.3676533 : exp(min((val.b-0.5696259)/0.1073531,86.4))-0.00937677;
    return val;
}

Exposure index (EI)

Log C V3 is a family of curves rather than a single curve: each exposure index (EI 160–1600) has its own parameters. 18% grey encodes to 0.391 (400/1023) at every EI; what changes is the highlight ceiling — stepping down one stop records one more stop of highlights, so the code value at sensor saturation rises with EI.

The curve and anchors on this page use the EI 800 parameters (ARRI suggests EI 800 where this precision is not needed). The table lists the encoding parameters for each exposure index; the linear quantity is scene exposure and a is 5.555556 throughout.

Scroll the table horizontally.

EIcutbcdefCode at saturation
1600.0055610.0802160.2690360.3819915.8420370.0927780.8128
2000.0062080.0766210.2660070.3824785.7762650.0927820.8341
2500.0068710.0729410.2629780.3829665.7104940.0927860.8549
3200.0076220.0687680.2596270.3835085.6377320.0927910.8773
4000.0083180.0649010.2565980.3839995.5719600.0927950.8968
5000.0090310.0609390.2535690.3844935.5061880.0928000.9158
6400.0098400.0564430.2502190.3850405.4334260.0928050.9362
8000.0105910.0522720.2471900.3855375.3676550.0928090.9539
10000.0113610.0479960.2441610.3860365.3018830.0928140.9711
12800.0122350.0431370.2408100.3865905.2291210.0928190.9895
16000.0130470.0386250.2377810.3870935.1633500.0928241.0000

“Code at saturation” is the Log C value for a sensor signal of 1.0. Curves above EI 1600 add a shoulder and cannot be expressed by the same formula.

RGB → XYZ matrix

RGB → XYZ
[ 0.638007619284 0.214703856337 0.097744451431 ]
[ 0.291953779000 0.823841041511 -0.115794820510 ]
[ 0.002798279032 -0.067034235689 1.153293707417 ]

Use this space Gamut compare ↗ Transfer compare ↗

Sources

  1. ARRI: ALEXA LogC Curve — Usage in VFX (2017-03, PDF)