Skip to main content

Module resync

Module resync 

Source
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.