pub enum SpsError {
Truncated,
ValueOutOfRange {
field: &'static str,
got: u32,
},
ScalingList(ScalingListError),
Bitstream(BitReaderError),
Ptl(VpsError),
Vui(VuiError),
}Expand description
Errors that can arise while parsing an SPS RBSP.
Variants§
Truncated
The RBSP ran out of bits before the SPS was fully parsed.
ValueOutOfRange
A syntax element’s parsed value was outside the legal range specified for it in §7.4.3.2.
Fields
ScalingList(ScalingListError)
A scaling_list_data() parse (§7.3.4) from the SPS failed.
Bitstream(BitReaderError)
An unexpected bitstream-level error surfaced from the reader.
Ptl(VpsError)
A profile_tier_level() parse from the §7.3.3 walk failed.
Vui(VuiError)
A vui_parameters() parse (§E.2.1) from the SPS failed.
Trait Implementations§
impl Copy for SpsError
impl Eq for SpsError
Source§impl Error for SpsError
impl Error for SpsError
1.30.0 · 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<SpsError> for SequenceError
impl From<SpsError> for SequenceError
Source§impl From<SpsError> for SliceError
impl From<SpsError> for SliceError
impl StructuralPartialEq for SpsError
Auto Trait Implementations§
impl Freeze for SpsError
impl RefUnwindSafe for SpsError
impl Send for SpsError
impl Sync for SpsError
impl Unpin for SpsError
impl UnsafeUnpin for SpsError
impl UnwindSafe for SpsError
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