pub enum DecoderError {
EndOfFile,
FileReadError {
cause: String,
},
GenericDecodeError {
cause: String,
},
NoVideoStream,
NoDecoder,
UnsupportedDecoder,
VariableFormat,
VariableResolution,
VariableFramerate,
UnsupportedChromaSubsampling {
x: usize,
y: usize,
},
UnsupportedFormat {
fmt: String,
},
}Expand description
Errors that can occur during video decoding operations.
Variants§
EndOfFile
End of video stream reached (not necessarily an error).
FileReadError
Failed to open or read the input file.
GenericDecodeError
Catch-all for decoding problems not covered by other variants.
NoVideoStream
No decodeable video stream found in the input file.
NoDecoder
No suitable decoder available; consider enabling ffmpeg or vapoursynth.
UnsupportedDecoder
The active decoder backend does not support the called function.
VariableFormat
Variable-format streams are not supported.
VariableResolution
Variable-resolution streams are not supported.
VariableFramerate
Variable-framerate streams are not supported.
UnsupportedChromaSubsampling
Unsupported chroma subsampling (x, y are horizontal/vertical factors).
UnsupportedFormat
Unsupported pixel format or codec.
Trait Implementations§
Source§impl Clone for DecoderError
impl Clone for DecoderError
Source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
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()
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnsafeUnpin for DecoderError
impl UnwindSafe for DecoderError
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