pub struct ProducerReferenceTimeBox {
pub version: u8,
pub flags: u32,
pub reference_track_id: u32,
pub ntp_timestamp: u64,
pub media_time: u64,
}Expand description
Producer Reference Time Box (prft) — ISO/IEC 14496-12:2015 §8.16.5.2.
Provides a UTC wall-clock anchor for the reference track.
Wire layout (FullBox header omitted):
reference_track_ID u(32)
ntp_timestamp u(64) — UTC time in NTP format
media_time u(32) if version == 0
u(64) if version == 1reference_track_ID identifies the track whose decoding timeline is anchored.
ntp_timestamp is the wall-clock time in NTP format corresponding to
media_time. media_time is in the timescale of the reference track.
Fields§
§version: u8FullBox version: 0 = media_time is u32; 1 = media_time is u64.
flags: u32FullBox flags [23:0].
reference_track_id: u32Track ID of the reference track (§8.16.5.3).
ntp_timestamp: u64UTC time in NTP format (§8.16.5.3).
media_time: u64Media time in the reference track’s timescale.
Stored as u64; for version 0 the upper 32 bits are zero on the wire.
Implementations§
Source§impl ProducerReferenceTimeBox
impl ProducerReferenceTimeBox
Sourcepub fn parse_body(body: &[u8]) -> Result<Self>
pub fn parse_body(body: &[u8]) -> Result<Self>
Parse the body of a prft box (after the 8-byte BoxHeader).
Trait Implementations§
Source§impl Clone for ProducerReferenceTimeBox
impl Clone for ProducerReferenceTimeBox
Source§fn clone(&self) -> ProducerReferenceTimeBox
fn clone(&self) -> ProducerReferenceTimeBox
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 ProducerReferenceTimeBox
Source§impl Debug for ProducerReferenceTimeBox
impl Debug for ProducerReferenceTimeBox
impl Eq for ProducerReferenceTimeBox
Source§impl<'a> Parse<'a> for ProducerReferenceTimeBox
impl<'a> Parse<'a> for ProducerReferenceTimeBox
Source§impl PartialEq for ProducerReferenceTimeBox
impl PartialEq for ProducerReferenceTimeBox
Source§impl Serialize for ProducerReferenceTimeBox
impl Serialize for ProducerReferenceTimeBox
Source§impl Serialize for ProducerReferenceTimeBox
impl Serialize for ProducerReferenceTimeBox
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for ProducerReferenceTimeBox
Auto Trait Implementations§
impl Freeze for ProducerReferenceTimeBox
impl RefUnwindSafe for ProducerReferenceTimeBox
impl Send for ProducerReferenceTimeBox
impl Sync for ProducerReferenceTimeBox
impl Unpin for ProducerReferenceTimeBox
impl UnsafeUnpin for ProducerReferenceTimeBox
impl UnwindSafe for ProducerReferenceTimeBox
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