TSDuck v3.40-4034
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsPES.h File Reference

Common definitions for MPEG PES (Packetized Elementary Stream) layer. More...

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Enumerations

enum  : uint8_t {
  ts::SID_PSMAP = 0xBC ,
  ts::SID_PRIV1 = 0xBD ,
  ts::SID_PAD = 0xBE ,
  ts::SID_PRIV2 = 0xBF ,
  ts::SID_AUDIO = 0xC0 ,
  ts::SID_AUDIO_MASK = 0x1F ,
  ts::SID_VIDEO = 0xE0 ,
  ts::SID_VIDEO_MASK = 0x0F ,
  ts::SID_ECM = 0xF0 ,
  ts::SID_EMM = 0xF1 ,
  ts::SID_DSMCC = 0xF2 ,
  ts::SID_ISO13522 = 0xF3 ,
  ts::SID_H222_1_A = 0xF4 ,
  ts::SID_H222_1_B = 0xF5 ,
  ts::SID_H222_1_C = 0xF6 ,
  ts::SID_H222_1_D = 0xF7 ,
  ts::SID_H222_1_E = 0xF8 ,
  ts::SID_ANCILLARY = 0xF9 ,
  ts::SID_MP4_SLPACK = 0xFA ,
  ts::SID_MP4_M4MUX = 0xFB ,
  ts::SID_METADATA = 0xFC ,
  ts::SID_EXTENDED = 0xFD ,
  ts::SID_RESERVED = 0xFE ,
  ts::SID_PSDIR = 0xFF
}
 Stream id values, as used in PES header. More...
 

Functions

bool ts::IsAudioSID (uint8_t sid)
 Check if a stream id value indicates an audio stream.
 
bool ts::IsLongHeaderSID (uint8_t sid)
 Check if a stream id value indicates a PES packet with long header.
 
bool ts::IsVideoSID (uint8_t sid)
 Check if a stream id value indicates a video stream.
 

Variables

constexpr uint32_t ts::PES_START = 0x000001
 PES packet start code prefix (24 bits).
 

Detailed Description

Common definitions for MPEG PES (Packetized Elementary Stream) layer.