FFmpeg
Macros | Functions | Variables
mpeg.h File Reference
#include <stdint.h>
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define PACK_START_CODE   ((unsigned int)0x000001ba)
 
#define SYSTEM_HEADER_START_CODE   ((unsigned int)0x000001bb)
 
#define SEQUENCE_END_CODE   ((unsigned int)0x000001b7)
 
#define PACKET_START_CODE_MASK   ((unsigned int)0xffffff00)
 
#define PACKET_START_CODE_PREFIX   ((unsigned int)0x00000100)
 
#define ISO_11172_END_CODE   ((unsigned int)0x000001b9)
 
#define PROGRAM_STREAM_MAP   0x1bc
 
#define PRIVATE_STREAM_1   0x1bd
 
#define PADDING_STREAM   0x1be
 
#define PRIVATE_STREAM_2   0x1bf
 
#define AUDIO_ID   0xc0
 
#define VIDEO_ID   0xe0
 
#define H264_ID   0xe2
 
#define AC3_ID   0x80
 
#define DTS_ID   0x88
 
#define LPCM_ID   0xa0
 
#define SUB_ID   0x20
 
#define STREAM_TYPE_VIDEO_MPEG1   0x01
 
#define STREAM_TYPE_VIDEO_MPEG2   0x02
 
#define STREAM_TYPE_AUDIO_MPEG1   0x03
 
#define STREAM_TYPE_AUDIO_MPEG2   0x04
 
#define STREAM_TYPE_PRIVATE_SECTION   0x05
 
#define STREAM_TYPE_PRIVATE_DATA   0x06
 
#define STREAM_TYPE_AUDIO_AAC   0x0f
 
#define STREAM_TYPE_VIDEO_MPEG4   0x10
 
#define STREAM_TYPE_VIDEO_H264   0x1b
 
#define STREAM_TYPE_VIDEO_HEVC   0x24
 
#define STREAM_TYPE_VIDEO_CAVS   0x42
 
#define STREAM_TYPE_AUDIO_AC3   0x81
 

Functions

static int64_t ff_parse_pes_pts (const uint8_t *buf)
 Parse MPEG-PES five-byte timestamp. More...
 

Variables

static const int lpcm_freq_tab [4] = { 48000, 96000, 44100, 32000 }
 

Macro Definition Documentation

◆ PACK_START_CODE

#define PACK_START_CODE   ((unsigned int)0x000001ba)

Definition at line 28 of file mpeg.h.

◆ SYSTEM_HEADER_START_CODE

#define SYSTEM_HEADER_START_CODE   ((unsigned int)0x000001bb)

Definition at line 29 of file mpeg.h.

◆ SEQUENCE_END_CODE

#define SEQUENCE_END_CODE   ((unsigned int)0x000001b7)

Definition at line 30 of file mpeg.h.

◆ PACKET_START_CODE_MASK

#define PACKET_START_CODE_MASK   ((unsigned int)0xffffff00)

Definition at line 31 of file mpeg.h.

◆ PACKET_START_CODE_PREFIX

#define PACKET_START_CODE_PREFIX   ((unsigned int)0x00000100)

Definition at line 32 of file mpeg.h.

◆ ISO_11172_END_CODE

#define ISO_11172_END_CODE   ((unsigned int)0x000001b9)

Definition at line 33 of file mpeg.h.

◆ PROGRAM_STREAM_MAP

#define PROGRAM_STREAM_MAP   0x1bc

Definition at line 36 of file mpeg.h.

◆ PRIVATE_STREAM_1

#define PRIVATE_STREAM_1   0x1bd

Definition at line 37 of file mpeg.h.

◆ PADDING_STREAM

#define PADDING_STREAM   0x1be

Definition at line 38 of file mpeg.h.

◆ PRIVATE_STREAM_2

#define PRIVATE_STREAM_2   0x1bf

Definition at line 39 of file mpeg.h.

◆ AUDIO_ID

#define AUDIO_ID   0xc0

Definition at line 41 of file mpeg.h.

◆ VIDEO_ID

#define VIDEO_ID   0xe0

Definition at line 42 of file mpeg.h.

◆ H264_ID

#define H264_ID   0xe2

Definition at line 43 of file mpeg.h.

◆ AC3_ID

#define AC3_ID   0x80

Definition at line 44 of file mpeg.h.

◆ DTS_ID

#define DTS_ID   0x88

Definition at line 45 of file mpeg.h.

◆ LPCM_ID

#define LPCM_ID   0xa0

Definition at line 46 of file mpeg.h.

◆ SUB_ID

#define SUB_ID   0x20

Definition at line 47 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_MPEG1

#define STREAM_TYPE_VIDEO_MPEG1   0x01

Definition at line 49 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_MPEG2

#define STREAM_TYPE_VIDEO_MPEG2   0x02

Definition at line 50 of file mpeg.h.

◆ STREAM_TYPE_AUDIO_MPEG1

#define STREAM_TYPE_AUDIO_MPEG1   0x03

Definition at line 51 of file mpeg.h.

◆ STREAM_TYPE_AUDIO_MPEG2

#define STREAM_TYPE_AUDIO_MPEG2   0x04

Definition at line 52 of file mpeg.h.

◆ STREAM_TYPE_PRIVATE_SECTION

#define STREAM_TYPE_PRIVATE_SECTION   0x05

Definition at line 53 of file mpeg.h.

◆ STREAM_TYPE_PRIVATE_DATA

#define STREAM_TYPE_PRIVATE_DATA   0x06

Definition at line 54 of file mpeg.h.

◆ STREAM_TYPE_AUDIO_AAC

#define STREAM_TYPE_AUDIO_AAC   0x0f

Definition at line 55 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_MPEG4

#define STREAM_TYPE_VIDEO_MPEG4   0x10

Definition at line 56 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_H264

#define STREAM_TYPE_VIDEO_H264   0x1b

Definition at line 57 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_HEVC

#define STREAM_TYPE_VIDEO_HEVC   0x24

Definition at line 58 of file mpeg.h.

◆ STREAM_TYPE_VIDEO_CAVS

#define STREAM_TYPE_VIDEO_CAVS   0x42

Definition at line 59 of file mpeg.h.

◆ STREAM_TYPE_AUDIO_AC3

#define STREAM_TYPE_AUDIO_AC3   0x81

Definition at line 61 of file mpeg.h.

Function Documentation

◆ ff_parse_pes_pts()

static int64_t ff_parse_pes_pts ( const uint8_t *  buf)
inlinestatic

Parse MPEG-PES five-byte timestamp.

Definition at line 68 of file mpeg.h.

Referenced by check_sync_pes(), demux_audio(), demux_video(), get_pts(), mpegts_push_data(), and read_part_of_packet().

Variable Documentation

◆ lpcm_freq_tab

const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 }
static

Definition at line 63 of file mpeg.h.

Referenced by mpeg_mux_init().