pub enum AvifError {
Size {
width: u32,
height: u32,
},
DataLength,
Quality(u8),
Av1(Av1Error),
}Expand description
Why pixels could not be encoded as AVIF.
Variants§
Size
A side is zero, or the picture is larger than libavif decodes
(MAX_SIDE, MAX_PIXELS).
DataLength
The pixel data does not hold width × height × 4 bytes.
Quality(u8)
The quality is above 100.
Av1(Av1Error)
The AV1 encoder refused the picture.
Trait Implementations§
impl Eq for AvifError
Source§impl Error for AvifError
impl Error for AvifError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for AvifError
Auto Trait Implementations§
impl Forget for AvifError
impl Freeze for AvifError
impl Move for AvifError
impl RefUnwindSafe for AvifError
impl Send for AvifError
impl Sync for AvifError
impl Unpin for AvifError
impl UnsafeUnpin for AvifError
impl UnwindSafe for AvifError
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