pub struct PesPacket {
pub pid: u16,
pub stream_type: StreamType,
pub pts: Option<u64>,
pub dts: Option<u64>,
pub payload: Vec<u8>,
}Expand description
One reassembled PES packet yielded by TsDemuxer::feed.
Fields§
§pid: u16§stream_type: StreamType§pts: Option<u64>Presentation timestamp in 90 kHz ticks. None when the
PES header does not carry a PTS (uncommon for video/audio).
dts: Option<u64>Decode timestamp in 90 kHz ticks. None when PTS == DTS
(most audio, non-B-frame video).
payload: Vec<u8>Raw elementary stream bytes (Annex B for video, raw AAC frame for audio after ADTS stripping if present).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PesPacket
impl RefUnwindSafe for PesPacket
impl Send for PesPacket
impl Sync for PesPacket
impl Unpin for PesPacket
impl UnsafeUnpin for PesPacket
impl UnwindSafe for PesPacket
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