pub struct HlgRendering { /* private fields */ }Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Explicit HLG display rendering conditions. No implicit default exists.
system_gamma includes the caller’s surround adjustment. The reference
preset assumes a 5 cd/m² surround and an ideal zero-black 1000-nit display.
CICP, mastering metadata and MaxCLL do not select these conditions.
Implementations§
Source§impl HlgRendering
impl HlgRendering
Sourcepub const REFERENCE_1000_NIT: HlgRendering
pub const REFERENCE_1000_NIT: HlgRendering
Explicit ideal-black reference rendering: 1000 nits, gamma 1.2, reference surround (5 cd/m²). Opt in; never inferred from an HLG tag.
Sourcepub const fn new(params: HlgRenderingParams) -> Option<HlgRendering>
pub const fn new(params: HlgRenderingParams) -> Option<HlgRendering>
Supply resolved display peak, black luminance, and surround-adjusted gamma via
HlgRenderingParams.
Supports finite system_gamma in 0.5..=3.0 and black_nits in 0.0..=0.01 * peak.
Other conditions return None rather than applying an unqualified extrapolation.
Sourcepub const fn peak(self) -> Nits
pub const fn peak(self) -> Nits
Target/reference display peak, not a measurement of source content.
Sourcepub const fn black_nits(self) -> f32
pub const fn black_nits(self) -> f32
Display black luminance in cd/m².
Sourcepub const fn system_gamma(self) -> f32
pub const fn system_gamma(self) -> f32
Effective gamma including the explicitly selected surround assumption.
Trait Implementations§
Source§impl Clone for HlgRendering
impl Clone for HlgRendering
Source§fn clone(&self) -> HlgRendering
fn clone(&self) -> HlgRendering
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more