Struct QoiDecoder
pub struct QoiDecoder<R> { /* private fields */ }
QOI decoder
Implementations
impl<R> QoiDecoder<R>
where
R: Read,
fn new(reader: R) -> ImageResult<Self>Creates a new decoder that decodes from the stream
reader
Trait Implementations
impl<R: Read> ImageDecoder for QoiDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>