Expand description
TS byte-stream resynchronisation helpers for dvb-stream.
Thin wrappers over mpeg_ts::resync::TsResync — the shared stateful
resynchroniser lives in mpeg-ts (feature ts). This module keeps
the public surface that section_stream and t2mi_stream use (the
stateless resync + aligned_packets pair and the size/sync constants).
Constants§
- TS_
PACKET_ SIZE - Size of one MPEG-TS packet (ETSI EN 300 468 §3.2, ISO/IEC 13818-1 §2.4.3.2).
- TS_
SYNC_ BYTE - Sync byte that every TS packet starts with (ISO/IEC 13818-1 §2.4.3.3).
Functions§
- aligned_
packets - Return an iterator over aligned 188-byte TS packet slices in
buf. - resync
- Find the byte offset of the first confirmed 0x47 sync byte in
buf.