pub struct AccessUnit {
pub pid: u16,
pub data: Bytes,
pub pts_90k: u64,
pub dts_90k: Option<u64>,
pub random_access: bool,
}Expand description
One demuxed, fully reassembled elementary-stream access unit (one PES packet’s payload).
Fields§
§pid: u16PID this access unit was carried on.
data: BytesAlready-encoded elementary-stream payload (e.g. Annex-B H.264 NAL units,
or an ADTS AAC frame) — this crate frames PES/TS structure only, the same
“frame, don’t encode” boundary as this workspace’s adts-core/mpeg-audio/
ogg/flv-core crates.
pts_90k: u64Presentation timestamp, 90 kHz clock (33-bit range).
dts_90k: Option<u64>Decode timestamp, 90 kHz clock, if present (None means DTS == PTS).
random_access: boolSet if the TS packet carrying the start of this access unit had
random_access_indicator set (typically: this access unit starts a
keyframe / is safely seekable to).
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