Skip to main content

Module resync

Module resync 

Source
Expand description

TS Byte-Stream Resynchroniser — ISO/IEC 13818-1 §2.4.3.2.

Recovers 188-byte MPEG-TS packet alignment from an arbitrary byte stream (file reads, UDP payloads) that may start mid-packet or contain junk. Also detects 204-byte packets (188-byte TS + 16 Reed-Solomon parity) and strips the parity bytes.

Structs§

ResyncStats
Counters accumulated during resynchronisation.
TsResync
TS byte-stream resynchroniser.

Enums§

PacketStride
Detected packet size after locking.

Constants§

RS_PACKET_SIZE
TS packet with 16-byte Reed-Solomon outer code (DVB).
SYNC_BYTE
Sync byte value (ISO/IEC 13818-1 §2.4.3.2).
TS_PACKET_SIZE
Transport Stream packet size (ISO/IEC 13818-1 §2.4.3.2).