Skip to main content

Module pixel_types

Module pixel_types 

Source
Expand description

Full re-export of zenpixels core types (zero module name collisions!). Custom sample and pixel types (F16Sample and gray+alpha formats).

These types are #[repr(transparent)] or #[repr(C)] and derive Pod/Zeroable for sound, zero-cost byte/word reinterpretation via bytemuck under #![forbid(unsafe_code)].

Structsยง

F16Sample
IEEE 754 binary16 (half-precision float) interchange sample.
GrayAlpha8
Grayscale + alpha, 8-bit.
GrayAlpha16
Grayscale + alpha, 16-bit.
GrayAlphaF16
Grayscale + alpha, f16.
GrayAlphaF32
Grayscale + alpha, f32.