Skip to main content

Module hdr

Module hdr 

Source
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§

ClliCodes
Exact PNG 3 / ITU-T H.274 cLLI content light-level codes (0.0001 cd/m² precision).
ContentLightLevel
HDR content light level metadata (CEA-861.3 / CTA-861-H / ITU-T H.274 §8.10).
DiffuseWhite
The absolute luminance, in cd/m² (nits), that a relative-linear sample value of 1.0 represents — 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.
HlgRenderingParams
Named parameter struct for HlgRendering::new, preventing swapped black_nits and system_gamma.
MasteringDisplay
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.
St2086Codes
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§

PeakSource
How an image-level conversion obtains the source peak for HDR tone mapping.