Struct aci_png::PngDecoder
source · Expand description
Decoder for PNG/APNG.
Trait Implementations
sourceimpl<T> Decoder<T> for PngDecoder<T>where
T: Read + Seek,
impl<T> Decoder<T> for PngDecoder<T>where
T: Read + Seek,
sourcefn new(data: T, channels: ColorChannels) -> Option<PngDecoder<T>>
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 moresourcefn run(
&mut self,
audio: &mut Option<Audio>,
video: &mut Option<Video>
) -> Option<bool>
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 moreAuto Trait Implementations
impl<T> RefUnwindSafe for PngDecoder<T>where
T: RefUnwindSafe,
impl<T> Send for PngDecoder<T>where
T: Send,
impl<T> Sync for PngDecoder<T>where
T: Sync,
impl<T> Unpin for PngDecoder<T>where
T: Unpin,
impl<T> UnwindSafe for PngDecoder<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more