pub struct Pts(pub u64);Expand description
Presentation Time Stamp (33-bit, 90 kHz units).
Tuple Fields§
§0: u64Implementations§
Source§impl Pts
impl Pts
Sourcepub fn to_field_bytes(self) -> [u8; 5]
pub fn to_field_bytes(self) -> [u8; 5]
Encode as a standalone 5-byte PTS field (prefix 0010, for PTS_DTS_flags = 10).
Sourcepub fn from_field_bytes(b: &[u8; 5]) -> Result<Self>
pub fn from_field_bytes(b: &[u8; 5]) -> Result<Self>
Decode from a 5-byte PTS-only field (prefix 0010).
Exact inverse of to_field_bytes.
Returns an error if the prefix or marker bits are wrong.
Sourcepub fn from_field_bytes_with_dts(b: &[u8; 5]) -> Result<Self>
pub fn from_field_bytes_with_dts(b: &[u8; 5]) -> Result<Self>
Decode from a 5-byte PTS field in a PTS+DTS pair (prefix 0011).
Trait Implementations§
impl Copy for Pts
impl Eq for Pts
Source§impl Ord for Pts
impl Ord for Pts
1.21.0 (const: unstable) · 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 PartialOrd for Pts
impl PartialOrd for Pts
impl StructuralPartialEq for Pts
Auto Trait Implementations§
impl Freeze for Pts
impl RefUnwindSafe for Pts
impl Send for Pts
impl Sync for Pts
impl Unpin for Pts
impl UnsafeUnpin for Pts
impl UnwindSafe for Pts
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