pub fn measure_peak<S: PixelSource + ?Sized>(
src: &S,
white: DiffuseWhite,
hlg_rendering: Option<HlgRendering>,
) -> Result<f32, At<ConvertError>>Expand description
Fast zero-histogram streaming max-luminance peak scan in cd/m² (O(1) row scratch).
Measures native-primaries MaxRgb peak luminance without building a log histogram,
allocating at most one fallibly-reserved f32 row (or zero bytes on unpremultiplied
Linear F32 / Full PQ U16 RGB sources).