#[non_exhaustive]pub enum ReorderError {
Depth {
reorder: u8,
max: u32,
codec: String,
},
Deepened {
declared: u8,
reorder: u8,
},
Reordered(usize),
Presentation,
Tie,
Undrained,
}Expand description
Video whose frames do not fit the reorder depth it declares, so no decode clock can be authored for it.
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.
Depth
The declared depth is deeper than the codec and level allow.
Fields
Deepened
A sequence header declares a deeper reorder than the track already declared.
Fields
Reordered(usize)
A frame presents earlier than the declared depth lets it.
Presentation
The presentation slots leave no decode time at or before a frame’s presentation.
Tie
Two frames present at one timestamp.
Undrained
A frame was read before the clock released the ones ahead of it.
Trait Implementations§
Source§impl Clone for ReorderError
impl Clone for ReorderError
Source§impl Debug for ReorderError
impl Debug for ReorderError
Source§impl Display for ReorderError
impl Display for ReorderError
impl Eq for ReorderError
Source§impl Error for ReorderError
impl Error for ReorderError
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<ReorderError> for Error
impl From<ReorderError> for Error
Source§fn from(source: ReorderError) -> Self
fn from(source: ReorderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReorderError
impl PartialEq for ReorderError
impl StructuralPartialEq for ReorderError
Auto Trait Implementations§
impl Freeze for ReorderError
impl RefUnwindSafe for ReorderError
impl Send for ReorderError
impl Sync for ReorderError
impl Unpin for ReorderError
impl UnsafeUnpin for ReorderError
impl UnwindSafe for ReorderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.