Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Unparameterized pixel buffers, zero-copy strided views, bands, planes, and dual-layer HDR.
PixelBufowns an alignment-exactPixelStorage, optionalHdrMetadata,ColorOrigin, and cachedSampleClaims(cleared automatically on&mut).PixelView<'a>andPixelViewMut<'a>borrow rectangular (possibly strided or cropped) subimages with lifetimes tied directly to'abacking storage.- Zero-copy typed pixel access is provided by methods (
row_as::<Rgb<u8>>,from_typed,into_vec_zero_copy) rather than a<P = ()>type parameter. BandedBufhandles gigapixel images in bounded-memory horizontal bands.PlanarBuf/PlanarViewhandle 1..=4 planes (YCbCr, NV12, P010, planar RGB+A) including N-bitBitPackingcode extraction.DualLayerHdrBufcarries ISO 21496-1 / UltraHDR base + gain map + headroom metadata.
Structs§
- BandMut
- Disjoint mutable handle to one horizontal band inside
BandedBuf, passed to the closure inBandedBuf::with_bands_mut. - Band
RowLocation - Band index and band-local row offset returned by
BandedBuf::locate_row. - Band
Views - Zero-allocation iterator over every band in a
BandedBufas a borrowedPixelView. - Banded
Buf - Gigapixel-safe image stored as compact bounded-size horizontal bands.
- Bgrx
- 4-byte BGR + unused padding pixel (
#[repr(C)],align = 1). - Dual
Layer HdrBuf - Container-agnostic dual-layer HDR image (base + numeric gain map + exact ISO 21496-1 metadata).
- Dual
Layer HdrBuf Parts - Complete decomposed parts of a
DualLayerHdrBufcarrier, preserving every field losslessly. - Dual
Layer HdrView - Borrowed validated ISO 21496-1 / UltraHDR dual-layer HDR view (zero copy).
- InPlace
Transform Input - Current buffer geometry and metadata passed to the closure in
PixelBuf::transform_in_place. - InPlace
Transform Output - Replacement stride and metadata returned by the closure in
PixelBuf::transform_in_place. - Pixel
Buf - Owned, unparameterized, alignment-exact pixel image buffer.
- Pixel
BufParts - Decomposed parts returned by
PixelBuf::into_parts. - Pixel
View - Zero-copy borrowed view of an interleaved image or rectangular crop.
- Pixel
View Mut - Zero-copy mutable view of an interleaved image or rectangular crop.
- Planar
Buf - Multi-plane image (YCbCr 4:2:0/4:2:2/4:4:4, NV12, P010, planar RGB+A, planar CMYKA, JXL/TIFF extra planes).
- Planar
View - Borrowed multi-plane view (zero heap allocation for
1..=4planes; spills cleanly for5..=64planes). - Planar
View Mut - Mutable borrowed multi-plane view (zero heap allocation for
1..=4disjoint planes; spills cleanly for5..=64planes). - Plane
Buf - Owned single plane inside a
PlanarBufwith validated geometry invariants. - Plane
View - Validated borrowed view of one plane inside a
PlanarView. - Plane
View Mut - Validated mutable borrowed view of one plane.
- Rgbx
- 4-byte RGB + unused padding pixel (
#[repr(C)],align = 1).
Enums§
- Band
Sizing - How
BandedBufpartitions image rows into horizontal bands. - BitPacking
Access - Policy controlling how zero-copy typed slice borrowing handles non-
BitPacking::Fulllayouts (e.g.U10_LSB,U12_LSB,P010,Shifted,RGB10A2,RGB565). - BitPacking
Read - Policy controlling how read-only row visiting (
PixelView::visit_rows_with_packing,PixelBuf::visit_rows_with_packing) handles non-BitPacking::Fulllayouts. - BitPacking
Transform - Policy controlling how scoped in-place row mutation
(
PixelBuf::mutate_rows_with_packing,PixelViewMut::mutate_rows_with_packing) handles non-BitPacking::Fulllayouts. - BufFill
- Initial pixel fill color for freshly allocated
PixelBufs (PixelBuf::new_with_fill,PixelBuf::new_signal_white). - Buffer
Error - Errors returned by pixel buffer, view, band, and plane operations.
- InPlace
Transform Decision - Outcome returned by the closure passed to
PixelBuf::transform_in_place. - Pixel
Cow - Borrowed-or-owned pixel image returned by zero-copy negotiation / adaptation helpers.
Constants§
- DEFAULT_
MAX_ BAND_ BYTES - Default per-band memory cap (
16 MiB) forBandedBuf.
Traits§
- Pixel
Sink - Uniform write interface across
PixelViewMut,PixelBuf, andBandedBuf. - Pixel
Source - Uniform read interface across
PixelView,PixelBuf, andBandedBuf. - Typed
Element - Sealed marker trait for Rust scalar, channel-array, or pixel types that carry a
known
SampleLayoutcompatibility contract.