Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Pure memory layout and bit-packing geometry for pixel storage.
Layout describes how bytes and bits sit in memory without making any
claim about color space, transfer curve, or primaries. Pair a
SampleLayout with a ColorSpace in an
PixelFormat to describe real pixels.
Structs§
- Pixel
Rect - Rectangular pixel region specified by top-left origin
(x, y)and(width, height)in pixels. - Plane
Format - Storage specification for one plane in a multi-plane image (
16 B, zero invalid arity or zero subsampling). - Sample
Layout - Complete interleaved storage description for a single plane of pixels.
- Sample
Stride - Row stride measured in scalar samples (not bytes).
Enums§
- BitPacking
- Bit-level packing of integer codes inside storage words.
- Channel
Order - Memory order of interleaved channels within a single pixel.
- Interop
Target - Downstream container contract for
PixelBuf::new_for_interop. - Layout
Error - Layout validation or stride computation error.
- Plane
Components - Validated interleaved component count (
1..=4) for variable-arity plane roles (PlaneRole::PackedandPlaneRole::Extra). - Plane
Role - Role of a single plane inside a multi-plane image (
PlanarBuf). - RowAlign
- Row-start alignment policy for allocated buffers.
- Sample
Type - Native numeric type of each stored channel sample.