libavformat/mpeg.h File Reference

#include <stdint.h>
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Defines

#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 AC3_ID   0x80
#define DTS_ID   0x8a
#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_AUDIO_AC3   0x81
#define STREAM_TYPE_AUDIO_DTS   0x8a

Functions

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

Variables

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


Define Documentation

#define AC3_ID   0x80

Definition at line 43 of file mpeg.h.

Referenced by mpeg_mux_init().

#define AUDIO_ID   0xc0

Definition at line 41 of file mpeg.h.

Referenced by flush_packet(), mpeg_mux_init(), mpegps_probe(), and put_system_header().

#define DTS_ID   0x8a

Definition at line 44 of file mpeg.h.

Referenced by mpeg_mux_init().

#define ISO_11172_END_CODE   ((unsigned int)0x000001b9)

Definition at line 33 of file mpeg.h.

#define LPCM_ID   0xa0

Definition at line 45 of file mpeg.h.

Referenced by mpeg_mux_init().

#define PACK_START_CODE   ((unsigned int)0x000001ba)

Definition at line 28 of file mpeg.h.

Referenced by mpegps_probe(), mpegps_read_pes_header(), and put_pack_header().

#define PACKET_START_CODE_MASK   ((unsigned int)0xffffff00)

Definition at line 31 of file mpeg.h.

#define PACKET_START_CODE_PREFIX   ((unsigned int)0x00000100)

Definition at line 32 of file mpeg.h.

#define PADDING_STREAM   0x1be

Definition at line 38 of file mpeg.h.

Referenced by mpegps_read_pes_header(), and put_padding_packet().

#define PRIVATE_STREAM_1   0x1bd

Definition at line 37 of file mpeg.h.

Referenced by flush_packet(), mpegps_probe(), and mpegps_read_pes_header().

#define PRIVATE_STREAM_2   0x1bf

Definition at line 39 of file mpeg.h.

Referenced by flush_packet(), and mpegps_read_pes_header().

#define PROGRAM_STREAM_MAP   0x1bc

Definition at line 36 of file mpeg.h.

Referenced by mpegps_read_pes_header().

#define SEQUENCE_END_CODE   ((unsigned int)0x000001b7)

Definition at line 30 of file mpeg.h.

#define STREAM_TYPE_AUDIO_AAC   0x0f

Definition at line 54 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_AUDIO_AC3   0x81

Definition at line 58 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_AUDIO_DTS   0x8a

Definition at line 59 of file mpeg.h.

Referenced by new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_AUDIO_MPEG1   0x03

Definition at line 50 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_AUDIO_MPEG2   0x04

Definition at line 51 of file mpeg.h.

Referenced by mpegps_read_packet(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_PRIVATE_DATA   0x06

Definition at line 53 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), and pmt_cb().

#define STREAM_TYPE_PRIVATE_SECTION   0x05

Definition at line 52 of file mpeg.h.

#define STREAM_TYPE_VIDEO_H264   0x1b

Definition at line 56 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_VIDEO_MPEG1   0x01

Definition at line 48 of file mpeg.h.

Referenced by mpegps_read_packet(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_VIDEO_MPEG2   0x02

Definition at line 49 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_VIDEO_MPEG4   0x10

Definition at line 55 of file mpeg.h.

Referenced by mpegps_read_packet(), mpegts_write_pmt(), new_pes_av_stream(), and pmt_cb().

#define SUB_ID   0x20

Definition at line 46 of file mpeg.h.

Referenced by mpeg_mux_init().

#define SYSTEM_HEADER_START_CODE   ((unsigned int)0x000001bb)

Definition at line 29 of file mpeg.h.

Referenced by mpegps_probe(), mpegps_read_pes_header(), and put_system_header().

#define VIDEO_ID   0xe0

Definition at line 42 of file mpeg.h.

Referenced by mpeg_mux_init(), mpegps_probe(), put_system_header(), and swf_write_video().


Function Documentation

static int64_t ff_parse_pes_pts ( uint8_t *  buf  )  [inline, static]

Parse MPEG-PES five-byte timestamp.

Definition at line 66 of file mpeg.h.

Referenced by get_pts(), and read_part_of_packet().


Variable Documentation

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

Definition at line 61 of file mpeg.h.

Referenced by mpeg_mux_init(), and mpegps_read_packet().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8