pub struct AvifDecoder;Expand description
AVIF decoder.
AVIF is a modern image format based on AV1 video codec, offering excellent compression and quality.
Implementations§
Source§impl AvifDecoder
impl AvifDecoder
Trait Implementations§
Source§impl Default for AvifDecoder
impl Default for AvifDecoder
Source§impl ImageDecoder for AvifDecoder
impl ImageDecoder for AvifDecoder
Source§fn decode<R: Read>(&self, _reader: R) -> CodecResult<Image>
fn decode<R: Read>(&self, _reader: R) -> CodecResult<Image>
Decode an image from a reader. Read more
Source§fn format(&self) -> ImageFormat
fn format(&self) -> ImageFormat
Get the format this decoder handles.
Source§fn decode_bytes(&self, data: &[u8]) -> CodecResult<Image>
fn decode_bytes(&self, data: &[u8]) -> CodecResult<Image>
Decode an image from bytes. Read more
Source§fn can_decode(&self, data: &[u8]) -> bool
fn can_decode(&self, data: &[u8]) -> bool
Check if this decoder can handle the given data.
Auto Trait Implementations§
impl Freeze for AvifDecoder
impl RefUnwindSafe for AvifDecoder
impl Send for AvifDecoder
impl Sync for AvifDecoder
impl Unpin for AvifDecoder
impl UnsafeUnpin for AvifDecoder
impl UnwindSafe for AvifDecoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more