Apple Log 2 / Apple Wide Gamut

图 1:Apple Log 2 / Apple Wide Gamut — CIE 1931 xy。
图 2:Apple Log 2 / Apple Wide Gamut 编码曲线,L = 0.18 × 2^stops。
xy
Red0.72500.3010
Green0.22100.8140
Blue0.0680-0.0760
White (D65)0.31270.3290

传递函数

曲线Apple Log 2
黑点 / 白点(10-bit 码值)0 / 1023
线性 0 → 编码0.1505
18% 灰 → 编码0.4883
线性 1.0 → 编码0.6946

编码:convertFromLinear

P = f(R)
    γ·log2(R + β) + δ      R ≥ Rt
    c·(R − R0)²            R0 ≤ R < Rt
    0                      R < R0

R0 = -0.05641088
Rt =  0.01
c  = 47.28711236
β  =  0.00964052
γ  =  0.08550479
δ  =  0.69336945

解码:convertToLinear

R = f⁻¹(P)
    2^((P − δ)/γ) − β      P ≥ Pt
    √(P/c) + R0            0 ≤ P < Pt
    R0                     P < 0

Pt = c·(Rt − R0)²

RGB → XYZ 矩阵

RGB → XYZ
[ 0.651491480167 0.221553113294 0.077411333590 ]
[ 0.270481290387 0.816037258920 -0.086518549307 ]
[ -0.023363832392 -0.035087597128 1.147509180280 ]

用这个空间 色域比对 ↗ 传递函数比对 ↗

来源

  1. Apple:Apple Log 2 White Paper(Version 1.1,2025-09;Apple Developer Downloads)