pub enum DecodeError {
Header(HeaderError),
CompressedHeader(CompressedHeaderError),
Tile(TileError),
TruncatedFrame,
MissingReferenceFrame,
}Expand description
Error type covering everything that can cause Decoder::decode_frame to fail.
Variants§
Header(HeaderError)
Failed to parse the uncompressed header (uncompressed_header). Two variants are
raised by the Decoder itself rather than the parser: FrameSizeTooLarge (a
signaled size the decoder refuses to allocate) and RefFrameFormatMismatch (an
inter frame whose reference doesn’t share its bit depth / subsampling).
CompressedHeader(CompressedHeaderError)
Failed to parse the compressed header (compressed_header).
Tile(TileError)
Failed to decode tiles, mode info, or tokens.
TruncatedFrame
Frame data is malformed, e.g. header_size_in_bytes exceeds the frame data length.
MissingReferenceFrame
The DPB slot referenced by show_existing_frame has no frame stored
(does not occur with normal conformance bitstreams).
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
impl Copy for DecodeError
Source§impl Debug for DecodeError
impl Debug for DecodeError
impl Eq for DecodeError
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeError
impl UnwindSafe for DecodeError
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