pub enum VideoDecodeError {
Decode(Error),
Convert(ConvertError),
PostCommitNeverResynced {
packets_lost: u64,
},
}Expand description
Error type for FfmpegVideoStreamDecoder.
Variants§
Decode(Error)
The wrapped decoder (HW or SW) reported an error.
Convert(ConvertError)
Frame conversion from FFmpeg’s native types to mediadecode’s types failed.
PostCommitNeverResynced
A post-commit HW->SW fallback degraded the stream (dropping the
bounded span up to the next keyframe) but the software decoder reached
EOF without ever producing a frame — it never resynced, so the entire
tail from the failure point was lost. The “bounded, logged gap” the
post-commit path promises did not materialise (no keyframe arrived before
EOF), so the loss is surfaced loudly here instead of being silently
swallowed as a clean end-of-stream. packets_lost is the number of
packets fed to SW across the unresolved gap.
Trait Implementations§
Source§impl Debug for VideoDecodeError
impl Debug for VideoDecodeError
Source§impl Display for VideoDecodeError
impl Display for VideoDecodeError
Source§impl Error for VideoDecodeError
impl Error for VideoDecodeError
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 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 VideoDecodeError
impl RefUnwindSafe for VideoDecodeError
impl Send for VideoDecodeError
impl Sync for VideoDecodeError
impl Unpin for VideoDecodeError
impl UnsafeUnpin for VideoDecodeError
impl UnwindSafe for VideoDecodeError
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