pub enum Av1Error {
Size {
width: u32,
height: u32,
},
Planes,
IdentityNeeds444,
}Expand description
Why a picture cannot be encoded.
Variants§
Size
A side is zero or larger than MAX_SIDE.
Planes
The planes do not match the sampling: the wrong number of planes, or a plane of the wrong length.
IdentityNeeds444
sRGB colours stored as they are need 4:4:4 sampling.
Trait Implementations§
impl Eq for Av1Error
Source§impl Error for Av1Error
impl Error for Av1Error
1.30.0 · 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 Av1Error
Auto Trait Implementations§
impl Forget for Av1Error
impl Freeze for Av1Error
impl Move for Av1Error
impl RefUnwindSafe for Av1Error
impl Send for Av1Error
impl Sync for Av1Error
impl Unpin for Av1Error
impl UnsafeUnpin for Av1Error
impl UnwindSafe for Av1Error
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