Skip to main content

Module plan

Module plan 

Source
Expand description

Type-safe row-level (RowPlan) and image-level (ImagePlan) conversion plans.

  • RowPlan::build accepts hdr_peak: Option<Nits> — a compile-time known peak luminance. Passing PeakSource::Measured to a single-row converter is impossible at compile time. Executing a RowPlan allocates zero heap scratch (uses a 1 KiB stack 64-pixel SoA tile).
  • ImagePlan::build accepts peak: PeakSource (Measured, Declared, or Fixed(Nits)), streams HDR peak measurement in O(1) row memory, runs uniformly over any PixelSource → PixelSink (PixelView, PixelBuf, BandedBuf), caches invariant row plans, and propagates proven SampleClaims.

Structs§

ImagePlan
Whole-image conversion plan supporting streaming HDR peak measurement (PeakSource::Measured), container metadata peaks (PeakSource::Declared), and uniform execution across PixelView, PixelBuf, and BandedBuf.
RowPlan
Compiled, reusable, thread-safe single-row pixel converter.

Traits§

PixelConvertExt
Ergonomic one-shot conversion methods directly on any PixelSource (PixelBuf, PixelView, BandedBuf, or dyn PixelSource).