Skip to main content

Module ts

Module ts 

Source
Expand description

MPEG-TS packet parser + section reassembler. Feature-gated under ts.

Structs§

SectionReassembler
Reassembles PSI/SI sections from TS packets on a single PID.
TsHeader
Parsed TS header — the 4-byte transport header fields.
TsPacket
Borrowed view into one 188-byte TS packet.

Constants§

ADAPTATION_FLAG
ETSI EN 300 468 §3.2.3: byte 3 bit 4 = adaptation_field_control (bit 4 = 1 means adaptation present).
CC_MASK
ETSI EN 300 468 §3.2.3: byte 3 bits 3..=0 = 4-bit continuity_counter.
PAYLOAD_FLAG
ETSI EN 300 468 §3.2.3: byte 3 bit 3 = adaptation_field_control (bit 3 = 1 means payload present).
PID_MASK_HI
ETSI EN 300 468 §3.2.3: byte 1 bits 5..=1 = 13-bit PID (upper 5 bits).
SCRAMBLING_MASK
ETSI EN 300 468 §3.2.3: byte 3 bits 7..=6 = 2-bit scrambling control.
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.2).