pub struct CodecDelay(pub u64);Expand description
The built-in delay for the codec, expressed in Matroska Ticks – i.e., in nanoseconds; see (#timestamp-ticks).
It represents the number of codec samples that will be discarded by the decoder during playback.
This timestamp value MUST be subtracted from each frame timestamp in order to get the timestamp that will be actually played.
The value SHOULD be small so the muxing of tracks with the same actual timestamp are in the same Cluster.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for CodecDelay
impl Clone for CodecDelay
Source§fn clone(&self) -> CodecDelay
fn clone(&self) -> CodecDelay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecDelay
impl Debug for CodecDelay
Source§impl Default for CodecDelay
impl Default for CodecDelay
Source§impl Deref for CodecDelay
impl Deref for CodecDelay
Source§impl Element for CodecDelay
impl Element for CodecDelay
Source§const HAS_DEFAULT_VALUE: bool = true
const HAS_DEFAULT_VALUE: bool = true
Whether the element has a default value, as per Matroska specification.
If true, and the element is missing in a master element, it should be treated as if it were present with the default value.
If false, and the element is missing in a master element, it should be treated as an error.
Source§fn decode_body(buf: &mut &[u8]) -> Result<Self>
fn decode_body(buf: &mut &[u8]) -> Result<Self>
Decode the body of the element from a buffer.
Source§impl Hash for CodecDelay
impl Hash for CodecDelay
Source§impl Ord for CodecDelay
impl Ord for CodecDelay
Source§fn cmp(&self, other: &CodecDelay) -> Ordering
fn cmp(&self, other: &CodecDelay) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodecDelay
impl PartialEq for CodecDelay
Source§impl PartialOrd for CodecDelay
impl PartialOrd for CodecDelay
impl Copy for CodecDelay
impl Eq for CodecDelay
impl StructuralPartialEq for CodecDelay
Auto Trait Implementations§
impl Freeze for CodecDelay
impl RefUnwindSafe for CodecDelay
impl Send for CodecDelay
impl Sync for CodecDelay
impl Unpin for CodecDelay
impl UnsafeUnpin for CodecDelay
impl UnwindSafe for CodecDelay
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteElement for Twhere
T: Element,
impl<T> AsyncWriteElement for Twhere
T: Element,
Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
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