Skip to main content

Module tonemap

Module tonemap 

Source
Expand description

HDR → SDR tone mapping and OKLch soft gamut compression.

Distinct namespace from zenpixels::hdr (which holds pure HDR metadata carriers DiffuseWhite, Nits, PeakSource, ContentLightLevel, MasteringDisplay, HlgRendering), eliminating the 0.4 module collision.

Re-exports§

pub use bt2446a::Bt2446A;
pub use bt2446a::Bt2446APipelineManaged;
pub use gamut_compress::SoftCompress;
pub use tone_mapper::PreparedMapper;
pub use tone_mapper::Requirements;
pub use tone_mapper::StripMapper;
pub use tone_mapper::ToneMapContext;
pub use tone_mapper::ToneMapper;

Modules§

bt2446a
BT.2446 Method A tone mapper — the ITU’s reference for graded HDR↔SDR conversion with psychophysically verified round-trip fidelity.
gamut_compress
Soft gamut compression in OKLch: reduces chroma near and past the boundary of a set of primaries, keeping hue and lightness.
tone_mapper
Pluggable HDR→SDR tone mapping for RowPlan and ImagePlan.

Constants§

BT2020_LB
ITU-R BT.2020 NCL blue luminance weight.
BT2020_LG
ITU-R BT.2020 NCL green luminance weight.
BT2020_LR
ITU-R BT.2020 NCL luminance weights (used by BT.2446A and measurement).