ADX16
ADX16 is the 16-bit encoding of APD: the same density scale as ADX10 with 4 more bits of precision and 2 more bits of range, covering about 8.2 density units.
| x | y | |
|---|---|---|
| Red | 0.6637 | 0.3224 |
| Green | 0.1509 | 0.7451 |
| Blue | 0.1276 | 0.0635 |
| White (ACES D60) | 0.3217 | 0.3377 |
Transfer function
| Curve | ACES-ADX-log |
|---|---|
| Black / white point (10-bit code values) | 82 / 649 |
| Linear 0 → code | 0.0802 |
| 18% grey → code | 0.4346 |
| Linear 1.0 → code | 0.6344 |
Encoding: convertFromLinear
vec4 convertFromLinear(vec4 val, int clip)
{
vec3 c = val.rgb;
c.r = c.r<0.001301270 ? (c.r -0.001301270)/0.04911331 :
c.r<0.001897934 ? (log(c.r) +6.644415)/37.74261 :
c.r<0.1184280 ? log(c.r)*(0.02871031*log(c.r) +0.3839140) +1.288383 :
(log(c.r) +4.645361)/4.1865183;
c.g = c.g<0.001301270 ? (c.g -0.001301270)/0.04911331 :
c.g<0.001897934 ? (log(c.g) +6.644415)/37.74261 :
c.g<0.1184280 ? log(c.g)*(0.02871031*log(c.g) +0.3839140) +1.288383 :
(log(c.g) +4.645361)/4.1865183;
c.b = c.b<0.001301270 ? (c.b -0.001301270)/0.04911331 :
c.b<0.001897934 ? (log(c.b) +6.644415)/37.74261 :
c.b<0.1184280 ? log(c.b)*(0.02871031*log(c.b) +0.3839140) +1.288383 :
(log(c.b) +4.645361)/4.1865183;
c = c * mat3(
1.3580865, -0.3071140, -0.0509725,
-0.0907881, 1.0493158, 0.0414723,
-0.2777791, -0.0368331, 1.3146122);
return vec4((c + 0.19)/8.192, val.a);
}Decoding: convertToLinear
vec4 convertToLinear(vec4 val)
{
vec3 c = (val.rgb*8.192 - 0.19) * mat3(
0.75573, 0.22197, 0.02230,
0.05901, 0.96928, -0.02829,
0.16134, 0.07406, 0.76460);
c.r = c.r<0.0 ? 0.04911331*c.r +0.001301270 :
c.r<0.01 ? exp(37.74261*c.r -6.644415) :
c.r<0.6 ? exp(-6.685996 +2.3025850*pow(6.569476*c.r -0.03258072, 0.5)) :
exp(min(4.1865183*c.r -4.645361,86.4));
c.g = c.g<0.0 ? 0.04911331*c.g +0.001301270 :
c.g<0.01 ? exp(37.74261*c.g -6.644415) :
c.g<0.6 ? exp(-6.685996 +2.3025850*pow(6.569476*c.g -0.03258072, 0.5)) :
exp(min(4.1865183*c.g -4.645361, 86.4));
c.b = c.b<0.0 ? 0.04911331*c.b +0.001301270 :
c.b<0.01 ? exp(37.74261*c.b -6.644415) :
c.b<0.6 ? exp(-6.685996 +2.3025850*pow(6.569476*c.b -0.03258072, 0.5)) :
exp(min(4.1865183*c.b -4.645361, 86.4));
return vec4(c, val.a);
}Relative exposure RGB → XYZ
[ 0.688563361694 0.120315061426 0.143767650444 ] [ 0.334429500163 0.593968684274 0.071602536889 ] [ 0.014395935381 0.082854812395 0.911564348372 ]
Relation to ADX10 ¶
ST 2065-3 defines code values and their conversion only: it subtracts the sample’s Dmin from each APD channel and maps the result linearly to an integer.
ADX16_c = clamp(round(gain_c × (APD_c − Dmin_c) × 8000 + 1520), 0, 65535)
ADX10_c = clamp(round(gain_c × (APD_c − Dmin_c) × 500 + 95), 0, 1023)
gain_R = 1.00 gain_G = 0.92 gain_B = 0.95
16-bit is not a different scale: it is the 10-bit scale with 4 bits more precision and 2 bits more range — 95 × 16 = 1520, 500 × 16 = 8000. So ADX10 → ADX16 is ×16 (Equation 3); the reverse is not a plain division, Equation 4 first checks the parity of FLOOR(ADX16/16) — FLOOR((ADX16+7)/16) when even, FLOOR((ADX16+8)/16) when odd — then clamps to 1023.
| Channel | Gain | Density difference (APD − Dmin) covered by ADX16 | Density difference covered by ADX10 |
|---|---|---|---|
| R | 1.00 | −0.190 … 8.002 | −0.190 … 1.856 |
| G | 0.92 | −0.207 … 8.698 | −0.207 … 2.017 |
| B | 0.95 | −0.200 … 8.423 | −0.200 … 1.954 |
What the extra 8.2 density units are ¶
A typical colour negative covers roughly 2–3 density units. ADX10’s 2.05 matches that only just; ADX16’s 8.2 is far larger — film never reaches such densities, so the excess is headroom for scanning and calibration rather than picture information.
In other words, most of ADX16’s extra 2 bits are empty on real material. What they buy is finer quantisation in the shadows (16× the code values for the same density difference) and room for Dmin calibration error and high-density regions without saturation. ST 2065-3 itself says to use 16-bit wherever possible.
Curve and anchors ¶
The curve on this page is the code value divided by 16368 (16368 = 16 × 1023, the ADX10 full scale ×16), so it coincides exactly with the ADX10 page; values above 1 are still valid, up to code 65535 (4.0 on this axis).
The “black / white point (10-bit code value)” row lists 82 / 649 — the code values where relative exposure 0 and 1.0 land on the curve, expressed in 10-bit terms; in 16-bit they are 1312 / 10384. The ADX standard’s own anchor is Dmin = 95 (1520 in 16-bit). Do not mix the two conventions.
18% grey lands at code 7120 (16-bit), which is 0.435 on the ÷16368 axis — the same point as 445 in ADX10.
Chromaticity and the triangle ¶
Same as ADX10: the primaries and matrix are AP0 × EXP → ACES, describing the “relative exposure” layer rather than an ADX gamut. The full derivation, including the two ACESCentral explanations (Nick Shaw, Kevin Wheatley), is on the ADX10 page.
The whole code-value range passes through the same non-linear LUT, so the balance between channels is reshaped by the curve and the triangle cannot serve as a boundary. ACES also provides no ACES → ADX transform.