Struct WebPDecoder
pub struct WebPDecoder<R> { /* private fields */ }
WebP Image format decoder.
Supports both lossless and lossy WebP images.
Implementations
impl<R: BufRead + Seek> WebPDecoder<R>
fn new(r: R) -> ImageResult<Self>Create a new
WebPDecoderfrom the Readerr.fn has_animation(&self) -> boolReturns true if the image as described by the bitstream is animated.
fn set_background_color(&mut self, color: Rgba<u8>) -> ImageResult<()>Sets the background color if the image is an extended and animated webp.
Trait Implementations
impl<'a, R: 'a + BufRead + Seek> AnimationDecoder<'a> for WebPDecoder<R>
fn loop_count(&self) -> LoopCountfn into_frames(self) -> Frames<'a>
impl<R: BufRead + Seek> ImageDecoder for WebPDecoder<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<()>fn icc_profile(&mut self) -> ImageResult<Option<Vec<u8>>>fn exif_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>fn xmp_metadata(&mut self) -> ImageResult<Option<Vec<u8>>>fn orientation(&mut self) -> ImageResult<Orientation>