Struct image::codecs::gif::GifDecoder [−][src]
pub struct GifDecoder<R: Read> { /* fields omitted */ }
GIF decoder
Implementations
impl<R: Read> GifDecoder<R>
[src]
impl<R: Read> GifDecoder<R>
[src]pub fn new(r: R) -> ImageResult<GifDecoder<R>>
[src]
Creates a new decoder that decodes the input steam r
Trait Implementations
impl<'a, R: Read + 'a> AnimationDecoder<'a> for GifDecoder<R>
[src]
impl<'a, R: Read + 'a> AnimationDecoder<'a> for GifDecoder<R>
[src]fn into_frames(self) -> Frames<'a>ⓘ
[src]
impl<'a, R: 'a + Read> ImageDecoder<'a> for GifDecoder<R>
[src]
impl<'a, R: 'a + Read> ImageDecoder<'a> for GifDecoder<R>
[src]type Reader = GifReader<R>
The type of reader produced by into_reader
.
fn dimensions(&self) -> (u32, u32)
[src]
fn color_type(&self) -> ColorType
[src]
fn into_reader(self) -> ImageResult<Self::Reader>
[src]
fn read_image(self, buf: &mut [u8]) -> ImageResult<()>
[src]
fn original_color_type(&self) -> ExtendedColorType
[src]
fn total_bytes(&self) -> u64
[src]
fn scanline_bytes(&self) -> u64
[src]
fn read_image_with_progress<F: Fn(Progress)>(
self,
buf: &mut [u8],
progress_callback: F
) -> ImageResult<()>
[src]
self,
buf: &mut [u8],
progress_callback: F
) -> ImageResult<()>
Auto Trait Implementations
impl<R> !RefUnwindSafe for GifDecoder<R>
impl<R> Send for GifDecoder<R> where
R: Send,
R: Send,
impl<R> !Sync for GifDecoder<R>
impl<R> Unpin for GifDecoder<R> where
R: Unpin,
R: Unpin,