Skip to main content

Module image

Module image 

Source
Expand description

Decoded pixel storage.

Modules§

zeroable
Marker for types whose all-zero bit pattern is a valid value.

Structs§

Limits
Safety limits applied while decoding untrusted input.
RawImage
A decoded image buffer: width x height pixels of cpp interleaved samples.

Enums§

PixelData
Sample storage for a decoded image.

Functions§

alloc_zeroed
Allocate a zero-initialised vector without aborting on allocation failure.
max_nonneg_bits
Largest non-negative, non-NaN value of v as IEEE bits (0 when there is none). For such values bit patterns order like integers, so this runs on integer lanes (vectorisable, unlike f32::max); NaN patterns (above +inf) are masked out.