pub enum SubtitleDecodeError {
Decode(Error),
Convert(ConvertError),
NoFrameReady,
FramePending,
}Expand description
Errors from FfmpegSubtitleStreamDecoder.
Variants§
Decode(Error)
The wrapped ffmpeg::decoder::Subtitle reported an error.
Convert(ConvertError)
Conversion from FFmpeg’s AVSubtitle to mediadecode’s
SubtitleFrame failed.
NoFrameReady
receive_frame was called with no buffered frame ready — caller
should send another packet.
FramePending
send_packet was called while a decoded frame from a previous
packet hasn’t been drained — the legacy decode() API can’t
queue, so the caller must drain via receive_frame first.
Trait Implementations§
Source§impl Debug for SubtitleDecodeError
impl Debug for SubtitleDecodeError
Source§impl Display for SubtitleDecodeError
impl Display for SubtitleDecodeError
Source§impl Error for SubtitleDecodeError
impl Error for SubtitleDecodeError
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 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.
Auto Trait Implementations§
impl Freeze for SubtitleDecodeError
impl RefUnwindSafe for SubtitleDecodeError
impl Send for SubtitleDecodeError
impl Sync for SubtitleDecodeError
impl Unpin for SubtitleDecodeError
impl UnsafeUnpin for SubtitleDecodeError
impl UnwindSafe for SubtitleDecodeError
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