zenpixels-convert 0.5 · live-extracted architecture

0.5 conversion kernels & dead-stripping SIMD

Every valid native pixel pair runs in one compact 64-pixel stack strip loop (strip::exec_strip_row, 1 KiB L1 stack, 0 B heap scratch). On top of that universal core, zenpixels-convert 0.5 layers zero-float ByteFastPaths, direct FastRow passes, composable StripBuf MicroOps, planar YCbCr engines, and opt-in function-pointer Accelerators slots with verified 0-bit SIMD/scalar parity.

01

The 0.5 3-tier execution engine + specialized modules

1. Zero-float ByteFastPath

Channel swizzles, alpha add/drop/fill, U8↔U16 exact widening/rounding, integer premul, same-depth bit repacking, and BT.2100 narrow shifts bypass float completely — optionally accelerated by garb & strip_simd via LAYOUT.

2. Direct FastRow passes

Single-stage contiguous row transforms (F16↔F32, U8/U16↔F32, sRGB LUT/poly, fused P3↔sRGB U8 exact & opt-in Q14) skip the AoS↔SoA bounce completely.

3. 1 KiB stack SoA StripBuf

Arbitrary multi-stage pipelines run composable MicroOp steps on a 32-byte aligned 64-pixel [f32; 64]×4 stack tile with 0 B heap scratch and 0-bit parity between scalar and SIMD slots.

4. Planar, HDR, Oklab & GainMap

Multi-plane YCbCr/GBR decode (reconstruct_planar_*) and capture (PlanarCapturePlan, 5-row ring), plus dead-strippable PQ/HLG, Oklab/SoftCompress, and ISO 21496-1 gain-map SIMD.

5. Fast transposes & fused scans

In-register 8×8 / 16×16 transposes for 1/2/3/4/6/8/12/16-byte pixels (fast-transpose) plus read-only SIMD scans (measure_claims(), opaque / grayscale / u16-lossless) for compaction.

Live breakdown by family (click a bar to filter below)

02

Exact const Accelerators preset composition

Every SIMD slot is an Option<fn(...)> inside Accelerators. Without feature = "fast", Accelerators::default() is SCALAR (0 B linked SIMD); with feature = "fast", default is ROW_PIPELINE. Modern AVIF/JXL/UltraHDR web services can call Accelerators::WEB_HDR.install_global() (or use Accelerators::WEB_HDR) to link SDR + F16 + PQ/HLG + GainMap SIMD while dead-stripping BT.709, Gamma 2.2, and Oklab.

Preset / Helper Byte layout (garb + premul) Strip SIMD + U8/U16↔F32 sRGB + fused U8 matrix 3×3 gamut BT.709 / γ2.2 F16 + PQ / HLG Oklab / SoftCompress GainMap SIMD
SCALAR (default w/o fast)————————
LAYOUT✓———————
WEB_SDR✓✓✓✓————
WEB_HDR✓✓✓✓pow only*✓*—✓*
HDR—✓—✓—✓*——
OKLAB (feature = "oklab")—✓————✓—
GAINMAP (feature = "gainmap")————pow only——✓
ROW_PIPELINE (default w/ fast)✓✓✓✓✓✓✓*—
ALL✓✓✓✓✓✓✓*✓*

*Feature-gated slots: Oklab requires feature = "oklab", PQ/HLG requires feature = "hdr-transfers", and GainMap requires feature = "gainmap" (all enabled in default Cargo features, dead-stripped unless linked via Accelerators). Non-slot engines (measure_claims(), fast-transpose, bt2446a) are gated directly by their Cargo features and shown in "All catalog entries". See size & speed budgets →

03

Explore every kernel extracted from this checkout

Filter by exact Accelerators preset to see which kernels & steps are active or linked under each bundle — or search by name, slot, file, or backend.