#[non_exhaustive]pub enum DecodingOperationError {
Show 13 variants
FrameRefError(DecodingError),
FrameCopyPropsError(DecodingError),
DecodeSubtitleError(DecodingError),
CopySubtitleError(DecodingError),
SendPacketError(DecodingError),
ReceiveFrameError(DecodingError),
FrameAllocationError(DecodingError),
PacketAllocationError(DecodingError),
SubtitleAllocationError(DecodingError),
CorruptFrame,
ErrorRateExceeded,
HWRetrieveDataError(DecodingError),
CroppingError(DecodingError),
}Expand description
Errors from the decoder stage while turning packets into frames.
Variants carrying a DecodingError embed the mapped FFmpeg error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FrameRefError(DecodingError)
Returned when creating a new reference to a decoded frame fails
(av_frame_ref).
FrameCopyPropsError(DecodingError)
Returned when copying frame metadata fails (av_frame_copy_props).
DecodeSubtitleError(DecodingError)
Returned when decoding a subtitle packet fails
(avcodec_decode_subtitle2).
CopySubtitleError(DecodingError)
Returned when copying a decoded subtitle for delivery fails.
SendPacketError(DecodingError)
Returned when submitting a packet to the decoder fails
(avcodec_send_packet).
ReceiveFrameError(DecodingError)
Returned when receiving a decoded frame from the decoder fails
(avcodec_receive_frame).
FrameAllocationError(DecodingError)
Returned when allocating a frame during decoding fails.
PacketAllocationError(DecodingError)
Returned when allocating a packet during decoding fails.
SubtitleAllocationError(DecodingError)
Returned when allocating an AVSubtitle during decoding fails.
CorruptFrame
Returned when the decoder emits a frame flagged as corrupt and corrupt frames are treated as errors.
ErrorRateExceeded
Returned when the ratio of decode errors to decoded frames exceeds the maximum allowed rate.
HWRetrieveDataError(DecodingError)
Returned when downloading a hardware-decoded frame to system memory
fails (av_hwframe_transfer_data).
CroppingError(DecodingError)
Returned when applying codec cropping metadata to a decoded frame fails.
Trait Implementations§
Source§impl Debug for DecodingOperationError
impl Debug for DecodingOperationError
Source§impl Display for DecodingOperationError
impl Display for DecodingOperationError
Source§impl Error for DecodingOperationError
impl Error for DecodingOperationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()