zenpixels 0.5 · rust pixel interchange & color conversion

Copy-ready quick starts for real image pipelines

Start with the task you actually need: transcoding between codecs with matching CICP/ICC tags, turning arbitrary decoded images into 8-bit sRGB, tone-mapping HDR PQ/HLG, streaming rows with zero heap scratch, or encoding planar YCbCr. Every snippet below is compiled and executed against the live 0.5 workspace — click any type name to jump straight into the Interactive Data Structures Atlas.

01

Common tasks — ready to paste & run

Every type token in the code blocks links directly to its full definition, contracts, and gotchas in Data structures.

02

Interactive tools, guides & API exports

Go deeper into pixel memory layout, transfer math, HDR headroom, SIMD kernels, and full 0.5 API signatures.

Interactive Atlas Data Structures & Connections

Clickable 5-layer SVG architecture map of all 38 0.5 type families with contracts, gotchas, and syntax-highlighted examples.

Live WASM Specimen Pixel Format Byte Explorer

Inspect one pixel's exact bytes, stride padding, narrow range, and live zenpixels-convert 0.5 WASM conversions.

Practical Guide Complete 0.5 Walkthrough

End-to-end guide covering ownership, zero-copy crops, policies, negotiation, planar YCbCr, and error tracing.

Mermaid + Deep Dive Type Drilldown Reference

Long-form searchable architecture reference with rendered Mermaid diagrams and compiled Rust walkthroughs.

Interactive Plots Transfer Functions (EOTF / OETF)

Compare sRGB, BT.709, Gamma 2.2, PQ, and HLG curves, bit-allocation density, and live 0.5 Rust codegen.

CIE + Tone Map Primaries, HDR & CICP/ICC

Interactive CIE 1931/1976 gamut triangles, nit headroom ruler, BT.2446A curve, and CICP/ICC authority rules.

Live Source Catalog Conversion Kernel Browser

Inspect every 0.5 ByteFastPath, FastRow, StripBuf MicroOp, planar engine, and exact Accelerators preset coverage.

Performance & Budgets Speed & Light Builds

How the 1 KiB stack strip core and const Accelerators dead-strip unused SIMD to 0 B with 0-bit parity.

Upgrading Migration: 0.2 / 0.4 → 0.5

Side-by-side mapping from legacy PixelDescriptor / PixelSlice / RowConverter to 0.5.

Mental Model Plain-English ELI5

Short intuitive walkthrough of why pixel types, transfer curves, SampleClaims, and policies work this way.

API Reference Unified Rustdoc (3 Crates)

Zero-warning rustdoc for zenpixels, zenpixels-convert, and zenpsy-api built from this exact commit.

Diffable Signatures Public API Snapshots

Exact cargo public-api text exports: zenpixels.txt, zenpixels-convert.txt, and feature matrix.