Function image::image::decoder_to_vec

source ·
pub(crate) fn decoder_to_vec<'a, T>(
    decoder: impl ImageDecoder<'a>
) -> ImageResult<Vec<T>>where
    T: Primitive + Pod,
Expand description

Reads all of the bytes of a decoder into a Vec. No particular alignment of the output buffer is guaranteed.

Panics if there isn’t enough memory to decode the image.