pub struct TsPayload {
pub data: Bytes,
pub codec: CodecId,
pub kind: TsTrackKind,
pub pts_ms: i64,
pub keyframe: bool,
}Available on crate features
ingest and srt only.Expand description
One reassembled access unit demuxed from the TS stream.
Fields§
§data: BytesElementary-stream access unit (Annex-B framed for H.264/H.265 video, raw elementary bytes for audio).
codec: CodecIdCodec identified from the PMT stream_type.
kind: TsTrackKindWhether this is a video or audio access unit.
pts_ms: i64Presentation timestamp in milliseconds (PES PTS / 90).
keyframe: boolWhether the access unit holds a keyframe (IDR). Always false for audio.
Trait Implementations§
impl Eq for TsPayload
impl StructuralPartialEq for TsPayload
Auto Trait Implementations§
impl !Freeze for TsPayload
impl RefUnwindSafe for TsPayload
impl Send for TsPayload
impl Sync for TsPayload
impl Unpin for TsPayload
impl UnsafeUnpin for TsPayload
impl UnwindSafe for TsPayload
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