Module mpeg2ts_reader::packet[][src]

A Packet struct and associated infrastructure to read an MPEG Transport Stream packet

Structs

AdaptationField

A collection of fields that may optionally appear within the header of a transport stream Packet.

AdaptationFieldExtension

Optional extensions within an AdaptationField.

ContinuityCounter

A counter value used within a transport stream to detect discontinuities in a sequence of packets. The continuity counter should increase by one for each packet with a given PID for which adaptation_control indicates that a payload should be present.

PCR

Program Clock Reference

Packet

A transport stream Packet is a wrapper around a byte slice which allows the bytes to be interpreted as a packet structure per ISO/IEC 13818-1, Section 2.4.3.3.

SeamlessSplice

Enums

AdaptationControl

the different values indicating whether a Packet's adaptation_field() and payload() methods will return Some or None.

AdaptationFieldError
TransportScramblingControl

Constants

PACKET_SIZE

The fixed 188 byte size of a transport stream packet.

SYNC_BYTE

The value 0x47, which must appear in the first byte of every transport stream packet.

Traits

PacketConsumer

trait for objects which process transport stream packets