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. - Rgba
Slice - Wraps
&[[u8; 4]](contiguous sRGBA pixels) with width and height. - Strided
Bytes - Wraps raw
&[u8]bytes with explicit width, height, stride, and pixel format.
Enums§
- Alpha
Mode - Alpha channel interpretation.
- Color
Primaries - Color primaries describing the RGB gamut of the image data.
- Pixel
Format - Pixel format describing the channel layout, bit depth, and transfer function.
Traits§
- Image
Source - Zero-copy access to image pixel data, row by row.