pub enum BitstreamError {
UnexpectedEnd(String),
InvalidData(String),
Unsupported(String),
}Expand description
Errors produced by the parsers in this crate.
We deliberately do not depend on oxideav_core::Error — keeping
this crate dep-free means oxideav-vdpau / oxideav-vaapi /
oxideav-vulkan-video can pull it in without tugging on the rest
of the framework.
Variants§
UnexpectedEnd(String)
The byte stream ended in the middle of a header we expected to be complete (NAL too short, OBU truncated, etc.).
InvalidData(String)
Syntax error inside an otherwise well-framed header (an Exp-Golomb code with too many leading zeros, an out-of-range field value, a forbidden bit set, …).
Unsupported(String)
The input parses successfully but uses a feature this crate deliberately does not handle (scaling lists, FMO, AV1 film grain, …). HW backends should reject the fixture rather than submit a partial parameter buffer.
Implementations§
Trait Implementations§
Source§impl Clone for BitstreamError
impl Clone for BitstreamError
Source§fn clone(&self) -> BitstreamError
fn clone(&self) -> BitstreamError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BitstreamError
impl Debug for BitstreamError
Source§impl Display for BitstreamError
impl Display for BitstreamError
Source§impl Error for BitstreamError
impl Error for BitstreamError
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()