pub struct SectionPacketiser { /* private fields */ }Expand description
Packetises PSI/SI sections into 188-byte TS packets.
This is the byte-exact inverse of
SectionReassembler::feed: packets
produced here, when fed back through the reassembler, yield the same
sections in order.
ISO/IEC 13818-1:2007 §2.4.4 (mpeg-ts/docs/tables/h222_0/psi_section.md).
Implementations§
Source§impl SectionPacketiser
impl SectionPacketiser
Sourcepub fn with_continuity(pid: u16, cc: u8) -> Self
pub fn with_continuity(pid: u16, cc: u8) -> Self
Start at a specific continuity_counter (0..=15) — for resuming a stream.
Sourcepub fn continuity_counter(&self) -> u8
pub fn continuity_counter(&self) -> u8
The continuity_counter for the next emitted packet.
Auto Trait Implementations§
impl Freeze for SectionPacketiser
impl RefUnwindSafe for SectionPacketiser
impl Send for SectionPacketiser
impl Sync for SectionPacketiser
impl Unpin for SectionPacketiser
impl UnsafeUnpin for SectionPacketiser
impl UnwindSafe for SectionPacketiser
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