pub enum ShortTermRefPicSetMaterializeError {
MissingSource,
SourceLengthMismatch {
expected: u32,
got_used: usize,
got_delta: usize,
},
}Expand description
Errors that can arise while running the §7.4.8 inter-RPS-prediction
derivation via [ShortTermRefPicSet::materialize].
Variants§
MissingSource
The RPS uses inter-RPS prediction
(inter_ref_pic_set_prediction_flag == 1) but the caller did
not supply a materialised source RPS.
SourceLengthMismatch
The on-wire used_by_curr_pic_flag / use_delta_flag arrays
did not match the source RPS’s NumDeltaPocs[RefRpsIdx] + 1
length. This indicates the parser and the materialiser saw
different source RPSes (most likely a RefRpsIdx mismatch).
Trait Implementations§
Source§impl Clone for ShortTermRefPicSetMaterializeError
impl Clone for ShortTermRefPicSetMaterializeError
Source§fn clone(&self) -> ShortTermRefPicSetMaterializeError
fn clone(&self) -> ShortTermRefPicSetMaterializeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShortTermRefPicSetMaterializeError
impl Eq for ShortTermRefPicSetMaterializeError
Source§impl Error for ShortTermRefPicSetMaterializeError
impl Error for ShortTermRefPicSetMaterializeError
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<ShortTermRefPicSetMaterializeError> for SequenceError
impl From<ShortTermRefPicSetMaterializeError> for SequenceError
Source§fn from(e: ShortTermRefPicSetMaterializeError) -> Self
fn from(e: ShortTermRefPicSetMaterializeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ShortTermRefPicSetMaterializeError
Auto Trait Implementations§
impl Freeze for ShortTermRefPicSetMaterializeError
impl RefUnwindSafe for ShortTermRefPicSetMaterializeError
impl Send for ShortTermRefPicSetMaterializeError
impl Sync for ShortTermRefPicSetMaterializeError
impl Unpin for ShortTermRefPicSetMaterializeError
impl UnsafeUnpin for ShortTermRefPicSetMaterializeError
impl UnwindSafe for ShortTermRefPicSetMaterializeError
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