Struct aci_png::PngDecoder [−][src]
Decoder for PNG/APNG.
Trait Implementations
impl<T> Decoder<T> for PngDecoder<T> where
T: Read + Seek,
[src]
impl<T> Decoder<T> for PngDecoder<T> where
T: Read + Seek,
fn new(data: T, channels: ColorChannels) -> Option<PngDecoder<T>>
[src]
fn new(data: T, channels: ColorChannels) -> Option<PngDecoder<T>>
Create a new decoder for this format. None
is returned when the decoder can't handle data
's format: try a different decoder. Read more
fn run(
&mut self,
audio: &mut Option<Audio>,
video: &mut Option<Video>
) -> Option<bool>
[src]
fn run(
&mut self,
audio: &mut Option<Audio>,
video: &mut Option<Video>
) -> Option<bool>
Decode a frame. None
is returned if the file is corrupt, Some(true)
if it succeeded, and Some(false)
if it can't add anymore frames because the input file ended. audio
and video
should initially be set to None
. Read more
fn get(&self) -> Index
[src]
fn get(&self) -> Index
Get the frame number (24 frames per second).
fn set(&mut self, _index: Index)
[src]
fn set(&mut self, _index: Index)
Set the frame number to seek forward or backwards.
Auto Trait Implementations
impl<T> Send for PngDecoder<T> where
T: Send,
impl<T> Send for PngDecoder<T> where
T: Send,
impl<T> Sync for PngDecoder<T> where
T: Sync,
impl<T> Sync for PngDecoder<T> where
T: Sync,