pub struct Avif { /* private fields */ }Expand description
AVIF decoder + converter
Implementations§
Source§impl Avif
impl Avif
pub fn decode(data: &[u8], config: &Config) -> Result<Self>
pub fn convert(&mut self) -> Result<Image>
pub fn parse_avif(data: &[u8]) -> Result<ParsedAvifData>
pub fn from_parsed_avif_data( avif: ParsedAvifData, config: &Config, ) -> Result<Self>
pub fn raw_color_data(&mut self) -> Result<FrameTempRef<'_>>
pub fn raw_alpha_data(&mut self) -> Result<Option<FrameTempRef<'_>>>
Auto Trait Implementations§
impl !Send for Avif
impl !Sync for Avif
impl Freeze for Avif
impl RefUnwindSafe for Avif
impl Unpin for Avif
impl UnsafeUnpin for Avif
impl UnwindSafe for Avif
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