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

Basic definitions for MPEG-2 video coding standard. More...

Namespaces

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

Enumerations

enum  : uint8_t {
  ts::PST_PICTURE = 0x00 ,
  ts::PST_SLICE_MIN = 0x01 ,
  ts::PST_SLICE_MAX = 0xAF ,
  ts::PST_RESERVED_B0 = 0xB0 ,
  ts::PST_RESERVED_B1 = 0xB1 ,
  ts::PST_USER_DATA = 0xB2 ,
  ts::PST_SEQUENCE_HEADER = 0xB3 ,
  ts::PST_SEQUENCE_ERROR = 0xB4 ,
  ts::PST_EXTENSION = 0xB5 ,
  ts::PST_RESERVED_B6 = 0xB6 ,
  ts::PST_SEQUENCE_END = 0xB7 ,
  ts::PST_GROUP = 0xB8 ,
  ts::PST_SYSTEM_MIN = 0xB9 ,
  ts::PST_SYSTEM_MAX = 0xFF
}
 PES start code values (after start code prefix 00 00 01) More...
 
enum  {
  ts::FPS_23_976 = 0x01 ,
  ts::FPS_24 = 0x02 ,
  ts::FPS_25 = 0x03 ,
  ts::FPS_29_97 = 0x04 ,
  ts::FPS_30 = 0x05 ,
  ts::FPS_50 = 0x06 ,
  ts::FPS_59_94 = 0x07 ,
  ts::FPS_60 = 0x08
}
 Frame rate values (in MPEG-1/2 video sequence). More...
 
enum  {
  ts::AR_SQUARE = 1 ,
  ts::AR_4_3 = 2 ,
  ts::AR_16_9 = 3 ,
  ts::AR_221 = 4
}
 Aspect ratio values (in MPEG-1/2 video sequence header). More...
 
enum  {
  ts::CHROMA_MONO = 0 ,
  ts::CHROMA_420 = 1 ,
  ts::CHROMA_422 = 2 ,
  ts::CHROMA_444 = 3
}
 Chroma format values (in MPEG-1/2 video sequence header). More...
 

Variables

constexpr size_t ts::MACROBLOCK_HEIGHT = 16
 Video macroblock height in pixels.
 
constexpr size_t ts::MACROBLOCK_WIDTH = 16
 Video macroblock width in pixels.
 

Detailed Description

Basic definitions for MPEG-2 video coding standard.

See also
ISO/IEC 113818-2, H.262