Understanding ITU-T H.273 CICP nclx Tuples and HDR Tone-Mapping Guardrails
Why Matrix=0 Identity RGB and PQ/HLG Transfers Matter in AVIF Workflows
Inside an AVIF ipco property container, the colr box signals colorimetry either via an embedded ICC profile (rICC or prof) or via compact four-field nclx Coding-Independent Code Points defined in ITU-T H.273. A tuple of (1, 13, 0, full=1) denotes BT.709 primaries, IEC 61966-2-1 sRGB transfer, and Matrix 0 Identity RGB—meaning lossless GBR channel coding with zero YCbCr matrix rounding loss. By contrast, (9, 16, 9) signals wide-gamut BT.2020 with SMPTE ST 2084 PQ HDR luminance up to 10,000 nits.
Silently clamping PQ (transfer 16) or HLG (transfer 18) HDR pixels into an 8-bit SDR PNG washes highlights into flat gray or clips specular detail unpredictably. Our standard conversion presets fail closed on unmapped HDR transfers with an explicit UNSUPPORTED diagnostic, whereas this Color Profile Inspector safely decodes and reports every CICP field so engineers can audit color signaling before choosing a tone-mapping workflow.
- Decodes nclx primaries (BT.709, Display P3, BT.2020), transfer curves (sRGB, Linear, PQ, HLG), and studio vs full range.
- Reports embedded ICC profile byte lengths on rICC and prof containers.
- Protects downstream SDR conversions from silent HDR highlight clipping.