Struct cuticula::image_crate::webp::WebpDecoder [] [src]

pub struct WebpDecoder<R> {
    // some fields omitted
}

A Representation of a Webp Image format decoder.

Methods

impl<R> WebpDecoder<R> where R: Read

fn new(r: R) -> WebpDecoder<R>

Create a new WebpDecoder from the Reader r. This function takes ownership of the Reader.

Trait Implementations

impl<R> ImageDecoder for WebpDecoder<R> where R: Read

fn dimensions(&mut self) -> Result<(u32, u32), ImageError>

fn colortype(&mut self) -> Result<ColorType, ImageError>

fn row_len(&mut self) -> Result<usize, ImageError>

fn read_scanline(&mut self, buf: &mut [u8]) -> Result<u32, ImageError>

fn read_image(&mut self) -> Result<DecodingResult, ImageError>

fn is_animated(&mut self) -> Result<bool, ImageError>

fn into_frames(self) -> Result<Frames, ImageError>

fn load_rect(&mut self, x: u32, y: u32, length: u32, width: u32) -> Result<Vec<u8>, ImageError>