Expand description
Full re-export of zenpixels core types (zero module name collisions!).
HDR metadata and luminance anchor types.
Pure data types for HDR content description, diffuse white anchors, explicit HLG display rendering conditions, and peak luminance sources.
For tone mapping, gamut compression, and content light-level measurement,
see zenpixels_convert::tonemap and zenpixels_convert::measure.
Structs§
- Clli
Codes - Exact PNG 3 / ITU-T H.274
cLLIcontent light-level codes (0.0001 cd/m²precision). - Content
Light Level - HDR content light level metadata (CEA-861.3 / CTA-861-H / ITU-T H.274 §8.10).
- Diffuse
White - The absolute luminance, in cd/m² (nits), that a relative-linear sample
value of
1.0represents — the “diffuse white” (a.k.a. nominal diffuse white / SDR reference white) anchor that bridges relative-linear pixel data to absolute display light. - HlgRendering
- Explicit HLG display rendering conditions. No implicit default exists.
- HlgRendering
Params - Named parameter struct for
HlgRendering::new, preventing swappedblack_nitsandsystem_gamma. - Mastering
Display - Mastering display color volume metadata (SMPTE ST 2086).
- Nits
- A finite, strictly positive luminance in cd/m². Used for source/display peaks independently of the relative-linear white anchor.
- St2086
Codes - Exact mastering-display codes, separate from the lossy floating-point view. Chromaticities are in units of 0.00002; luminances in units of 0.0001 cd/m². Byte serialization uses RGB primary order, then white, maximum and minimum luminance, all big-endian. Adapters for formats with another primary order must reorder explicitly. No validation discards unknown or out-of-range codes.
Enums§
- Peak
Source - How an image-level conversion obtains the source peak for HDR tone mapping.