#[non_exhaustive]pub enum ConvertError {
NullFrame,
UnsupportedPixelFormat(PixelFormat),
InvalidPlaneLayout {
plane: usize,
},
BufferAcquireFailed {
plane: usize,
},
}Expand description
Errors from av_frame_to_video_frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NullFrame
av_frame was null.
UnsupportedPixelFormat(PixelFormat)
The frame’s pixel format isn’t in the closed CPU-format set this crate supports for safe per-plane access.
InvalidPlaneLayout
A plane reported linesize <= 0 or otherwise inconsistent layout.
BufferAcquireFailed
Failed to acquire an AVBufferRef for a plane (out of memory, or
the frame’s data[i] pointer doesn’t lie inside any of buf[]).
Trait Implementations§
Source§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl Display for ConvertError
impl Display for ConvertError
Source§impl Error for ConvertError
impl Error for ConvertError
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()
Source§impl From<ConvertError> for AudioDecodeError
impl From<ConvertError> for AudioDecodeError
Source§fn from(source: ConvertError) -> Self
fn from(source: ConvertError) -> Self
Converts to this type from the input type.
Source§impl From<ConvertError> for SubtitleDecodeError
impl From<ConvertError> for SubtitleDecodeError
Source§fn from(source: ConvertError) -> Self
fn from(source: ConvertError) -> Self
Converts to this type from the input type.
Source§impl From<ConvertError> for VideoDecodeError
impl From<ConvertError> for VideoDecodeError
Source§fn from(source: ConvertError) -> Self
fn from(source: ConvertError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvertError
impl RefUnwindSafe for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnsafeUnpin for ConvertError
impl UnwindSafe for ConvertError
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