Skip to main content

Module source

Module source 

Source
Expand description

Zero-copy image source abstraction for zensim.

The ImageSource trait provides row-level access to pixel data with arbitrary stride, supporting multiple pixel formats without intermediate copies.

Structs§

RgbSlice
Wraps &[[u8; 3]] (contiguous sRGB pixels) with width and height.
RgbaSlice
Wraps &[[u8; 4]] (contiguous sRGBA pixels) with width and height.
StridedBytes
Wraps raw &[u8] bytes with explicit width, height, stride, and pixel format.

Enums§

AlphaMode
Alpha channel interpretation.
ColorPrimaries
Color primaries describing the RGB gamut of the image data.
PixelFormat
Pixel format describing the channel layout, bit depth, and transfer function.

Traits§

ImageSource
Zero-copy access to image pixel data, row by row.