Skip to main content

Module measure

Module measure 

Source
Expand description

Streaming HDR content-light-level (MaxCLL / MaxFALL) measurement in O(1) row memory.

Operates directly over any PixelSource (PixelView, PixelBuf, BandedBuf) using a stack-resident 64-pixel tile — zero full-image F32 temporary buffer.

Structs§

LightLevelHistogram
1024-bin log2 histogram of per-pixel luminance in cd/m² over [0.005, 10_000] nits, tracking exact zero / non-positive counts separately from positive sub-bin samples.

Enums§

LightLevelMethod
Per-pixel reduction method for content-light-level measurement.

Functions§

measure_content_light_level
Measure ContentLightLevel (literal MaxCLL + MaxFALL) over any PixelSource in O(1) row memory.
measure_content_light_level_with_pulse
Measure ContentLightLevel (literal MaxCLL + MaxFALL) over any PixelSource with optional cooperative cancellation and row progress via pulse (pass None when not needed).
measure_histogram
Measure a full LightLevelHistogram over any PixelSource in O(1) row scratch memory.
measure_histogram_with_pulse
Measure a full LightLevelHistogram over any PixelSource in O(1) row scratch memory with optional cooperative cancellation and row progress via pulse (pass None when not needed).
measure_max_smoothed
Measure defect-tolerant ContentLightLevel using a 3-tap horizontal mirror-padded box filter on per-pixel light levels ((m[i-1] + m[i] + m[i+1]) / 3) in O(1) row memory.
measure_max_smoothed_with_pulse
Measure defect-tolerant ContentLightLevel using a 3-tap horizontal mirror-padded box filter with optional cooperative cancellation and row progress via pulse (pass None when not needed).
measure_peak
Fast zero-histogram streaming max-luminance peak scan in cd/m² (O(1) row scratch).
measure_peak_with_pulse
Fast zero-histogram streaming max-luminance peak scan in cd/m² with optional cooperative cancellation and row progress via pulse (pass None when not needed).