Expand description
Forward packed-to-planar capture (PlanarCaptureSpec, PlanarCapturePlan,
CaptureScratch): strided interleaved pixels → multi-plane YCbCr / YCgCo /
Identity GBR / planar RGB / monochrome PlanarViewMut (U8, U16 8/10/12/16-bit
including P010 / U10_LSB, U32, and F32 planar RGB).
Two-stage execution guarantees identical color, transfer, HDR white/peak, HLG OOTF,
alpha matte, gamut, and CMS behavior with RowPlan:
- Stage 1 converts source rows into full-range
f32in the destination’s primaries, transfer, diffuse white, and alpha mode using a compiledRowPlanover an O(width) ring buffer of at most2 * max_vertical_subsampling + 1rows (5 rows for 4:2:0 — ~230 KiB at 4K instead of a full frame buffer). - Stage 2 evaluates exact
f64ITU-T H.273 matrix encoding, phase-exact chroma downsampling honoringPlanarCaptureSpec::chroma_sitingandPlanarCaptureSpec::visible_rectcrop origin (using local integer coordinates immune to large-offset float rounding), finalf64quantization (Round/Truncate/OrderedDither), andBitPacking::pack_code.
Structs§
- Capture
Scratch - Reusable caller-owned or budget-borrowed
f64scratch workspace forPlanarCapturePlan::execute. - Planar
Capture Options - Configuration for forward planar capture (
PlanarCapturePlan). - Planar
Capture Plan - Prepared, reusable, thread-safe forward planar capture plan.
- Planar
Capture Spec - Target planar geometry, plane layout, chroma siting, and true coded CICP signal
for
PlanarCapturePlan.
Enums§
- Chroma
Downsample - Chroma downsampling filter for subsampled YCbCr capture (
4:2:0,4:2:2,4:4:0,4:1:1).