pub trait AnimationDecoder<'a> {
// Required method
fn into_frames(self) -> Frames<'a> ⓘ;
// Provided method
fn loop_count(&self) -> LoopCount { ... }
}Expand description
AnimationDecoder trait
Required Methods§
Sourcefn into_frames(self) -> Frames<'a> ⓘ
fn into_frames(self) -> Frames<'a> ⓘ
Consume the decoder producing a series of frames.
Provided Methods§
Sourcefn loop_count(&self) -> LoopCount
fn loop_count(&self) -> LoopCount
Loop count of the animated image.
By default, indicates the animation should run once. Formats may implement other defaults and read such metadata from the file.
Implementors§
impl<'a, R: 'a + BufRead + Seek> AnimationDecoder<'a> for WebPDecoder<R>
Available on crate feature
webp only.impl<'a, R: BufRead + Seek + 'a> AnimationDecoder<'a> for GifDecoder<R>
Available on crate feature
gif only.impl<'a, R: BufRead + Seek + 'a> AnimationDecoder<'a> for ApngDecoder<R>
Available on crate feature
png only.