Skip to main content

Module layout

Module layout 

Source
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§

PixelRect
Rectangular pixel region specified by top-left origin (x, y) and (width, height) in pixels.
PlaneFormat
Storage specification for one plane in a multi-plane image (16 B, zero invalid arity or zero subsampling).
SampleLayout
Complete interleaved storage description for a single plane of pixels.
SampleStride
Row stride measured in scalar samples (not bytes).

Enums§

BitPacking
Bit-level packing of integer codes inside storage words.
ChannelOrder
Memory order of interleaved channels within a single pixel.
InteropTarget
Downstream container contract for PixelBuf::new_for_interop.
LayoutError
Layout validation or stride computation error.
PlaneComponents
Validated interleaved component count (1..=4) for variable-arity plane roles (PlaneRole::Packed and PlaneRole::Extra).
PlaneRole
Role of a single plane inside a multi-plane image (PlanarBuf).
RowAlign
Row-start alignment policy for allocated buffers.
SampleType
Native numeric type of each stored channel sample.