pub struct AccessUnit {
pub pid: u16,
pub pts: Option<u64>,
pub dts: Option<u64>,
pub data: Vec<u8>,
}Expand description
A reassembled PES access unit — the complete PES packet bytes with optional timing from the PES header.
The data field holds the full PES packet (from 0x00 0x00 0x01
packet_start_code_prefix through the last PES_packet_data_byte). No codec
parsing is performed; the bytes are opaque.
Fields§
§pid: u16PID this access unit was carried on.
pts: Option<u64>Presentation time stamp from the PES header, if present (33-bit, 90 kHz).
dts: Option<u64>Decoding time stamp from the PES header, if present (33-bit, 90 kHz).
data: Vec<u8>The reassembled PES packet bytes (00 00 01 stream_id ...).
Trait Implementations§
Source§impl Clone for AccessUnit
impl Clone for AccessUnit
Source§fn clone(&self) -> AccessUnit
fn clone(&self) -> AccessUnit
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 moreSource§impl Debug for AccessUnit
impl Debug for AccessUnit
impl Eq for AccessUnit
Source§impl PartialEq for AccessUnit
impl PartialEq for AccessUnit
impl StructuralPartialEq for AccessUnit
Auto Trait Implementations§
impl Freeze for AccessUnit
impl RefUnwindSafe for AccessUnit
impl Send for AccessUnit
impl Sync for AccessUnit
impl Unpin for AccessUnit
impl UnsafeUnpin for AccessUnit
impl UnwindSafe for AccessUnit
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