#[non_exhaustive]pub enum VideoError {
MixedCodebookParts,
PaletteSize,
WrongPointerFormat,
PointerTableSize,
BlockIndexOutOfRange,
TruncatedPointerStream,
UnknownPointerCommand,
PointerStreamOverrun,
}Expand description
How the video data in an ErrorKind::Video error is malformed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MixedCodebookParts
Codebook parts mix uncompressed (CBP0) and compressed (CBPZ)
ones.
PaletteSize
A palette isn’t a whole number of colors, or holds more than 256.
WrongPointerFormat
A pointer chunk for the other pixel format: a VPT? table in a
HiColor movie, or a VPTR/VPRZ stream in an 8-bit one.
PointerTableSize
An 8-bit pointer table doesn’t hold one entry per block.
BlockIndexOutOfRange
An 8-bit pointer table points past the end of the codebook. HiColor pointer streams never fail this way: retail movies contain the occasional stray block index, and those blocks keep their pixels.
TruncatedPointerStream
A HiColor pointer stream ends in the middle of a command.
UnknownPointerCommand
A HiColor pointer stream holds a command that doesn’t exist.
PointerStreamOverrun
A HiColor pointer stream writes more blocks than the frame has.
Trait Implementations§
Source§impl Clone for VideoError
impl Clone for VideoError
impl Copy for VideoError
Source§impl Debug for VideoError
impl Debug for VideoError
Source§impl Display for VideoError
impl Display for VideoError
impl Eq for VideoError
Source§impl Hash for VideoError
impl Hash for VideoError
Source§impl PartialEq for VideoError
impl PartialEq for VideoError
impl StructuralPartialEq for VideoError
Auto Trait Implementations§
impl Freeze for VideoError
impl RefUnwindSafe for VideoError
impl Send for VideoError
impl Sync for VideoError
impl Unpin for VideoError
impl UnsafeUnpin for VideoError
impl UnwindSafe for VideoError
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