pub struct SoftwareDecoder;Expand description
SoftwareDecoder reads the formats this crate was built with, entirely on the CPU.
Register it after a platform decoder so it only sees what the platform declined, or alone on platforms without one.
Trait Implementations§
Source§impl Clone for SoftwareDecoder
impl Clone for SoftwareDecoder
impl Copy for SoftwareDecoder
Source§impl Debug for SoftwareDecoder
impl Debug for SoftwareDecoder
Source§impl Decoder for SoftwareDecoder
impl Decoder for SoftwareDecoder
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
name identifies this decoder in diagnostics when every decoder declines an image.Source§fn open<'a>(
&'a self,
request: &'a OpenRequest,
) -> Decoding<'a, Result<Box<dyn FrameReader>, OpenError>>
fn open<'a>( &'a self, request: &'a OpenRequest, ) -> Decoding<'a, Result<Box<dyn FrameReader>, OpenError>>
open reads enough of the bytes to know the image’s size and frame count. Read moreAuto Trait Implementations§
impl Forget for SoftwareDecoder
impl Freeze for SoftwareDecoder
impl RefUnwindSafe for SoftwareDecoder
impl Send for SoftwareDecoder
impl Sync for SoftwareDecoder
impl Unpin for SoftwareDecoder
impl UnsafeUnpin for SoftwareDecoder
impl UnwindSafe for SoftwareDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more