libavformat/mpegts.h File Reference

#include "avformat.h"

Go to the source code of this file.

Defines

#define TS_FEC_PACKET_SIZE   204
#define TS_DVHS_PACKET_SIZE   192
#define TS_PACKET_SIZE   188
#define NB_PID_MAX   8192
#define MAX_SECTION_SIZE   4096
#define PAT_PID   0x0000
#define SDT_PID   0x0011
#define PAT_TID   0x00
#define PMT_TID   0x02
#define SDT_TID   0x42
#define DVB_SUBT_DESCID   0x59
#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_VC1   0xea
#define STREAM_TYPE_VIDEO_DIRAC   0xd1
#define STREAM_TYPE_AUDIO_AC3   0x81
#define STREAM_TYPE_AUDIO_DTS   0x8a
#define STREAM_TYPE_AUDIO_HDMV_DTS   0x82
#define STREAM_TYPE_SUBTITLE_DVB   0x100

Typedefs

typedef struct MpegTSContext MpegTSContext

Functions

MpegTSContextmpegts_parse_open (AVFormatContext *s)
int mpegts_parse_packet (MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len)
void mpegts_parse_close (MpegTSContext *ts)


Define Documentation

#define DVB_SUBT_DESCID   0x59

Definition at line 43 of file mpegts.h.

Referenced by pmt_cb().

#define MAX_SECTION_SIZE   4096

Definition at line 31 of file mpegts.h.

Referenced by mpegts_open_section_filter().

#define NB_PID_MAX   8192

#define PAT_PID   0x0000

Definition at line 34 of file mpegts.h.

Referenced by mpegts_set_service(), and mpegts_write_header().

#define PAT_TID   0x00

Definition at line 38 of file mpegts.h.

Referenced by mpegts_write_pat(), and pat_cb().

#define PMT_TID   0x02

Definition at line 39 of file mpegts.h.

Referenced by mpegts_write_pmt(), and pmt_cb().

#define SDT_PID   0x0011

Definition at line 35 of file mpegts.h.

Referenced by mpegts_scan_sdt(), and mpegts_write_header().

#define SDT_TID   0x42

Definition at line 40 of file mpegts.h.

Referenced by mpegts_write_sdt(), and sdt_cb().

#define STREAM_TYPE_AUDIO_AAC   0x0f

Definition at line 51 of file mpegts.h.

#define STREAM_TYPE_AUDIO_AC3   0x81

Definition at line 57 of file mpegts.h.

#define STREAM_TYPE_AUDIO_DTS   0x8a

Definition at line 58 of file mpegts.h.

#define STREAM_TYPE_AUDIO_HDMV_DTS   0x82

Definition at line 59 of file mpegts.h.

Referenced by new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_AUDIO_MPEG1   0x03

Definition at line 47 of file mpegts.h.

#define STREAM_TYPE_AUDIO_MPEG2   0x04

Definition at line 48 of file mpegts.h.

#define STREAM_TYPE_PRIVATE_DATA   0x06

Definition at line 50 of file mpegts.h.

#define STREAM_TYPE_PRIVATE_SECTION   0x05

Definition at line 49 of file mpegts.h.

#define STREAM_TYPE_SUBTITLE_DVB   0x100

Definition at line 61 of file mpegts.h.

Referenced by new_pes_av_stream(), and pmt_cb().

#define STREAM_TYPE_VIDEO_DIRAC   0xd1

Definition at line 55 of file mpegts.h.

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

#define STREAM_TYPE_VIDEO_H264   0x1b

Definition at line 53 of file mpegts.h.

#define STREAM_TYPE_VIDEO_MPEG1   0x01

Definition at line 45 of file mpegts.h.

#define STREAM_TYPE_VIDEO_MPEG2   0x02

Definition at line 46 of file mpegts.h.

#define STREAM_TYPE_VIDEO_MPEG4   0x10

Definition at line 52 of file mpegts.h.

#define STREAM_TYPE_VIDEO_VC1   0xea

Definition at line 54 of file mpegts.h.

Referenced by new_pes_av_stream(), and pmt_cb().

#define TS_DVHS_PACKET_SIZE   192

Definition at line 28 of file mpegts.h.

Referenced by get_packet_size(), and mpegts_probe().

#define TS_FEC_PACKET_SIZE   204

Definition at line 27 of file mpegts.h.

Referenced by get_packet_size(), and mpegts_probe().

#define TS_PACKET_SIZE   188


Typedef Documentation

typedef struct MpegTSContext MpegTSContext

Definition at line 63 of file mpegts.h.


Function Documentation

void mpegts_parse_close ( MpegTSContext ts  ) 

Definition at line 1527 of file mpegts.c.

Referenced by rtp_parse_close().

MpegTSContext* mpegts_parse_open ( AVFormatContext s  ) 

Definition at line 1486 of file mpegts.c.

Referenced by rtp_parse_open().

int mpegts_parse_packet ( MpegTSContext ts,
AVPacket pkt,
const uint8_t *  buf,
int  len 
)

Definition at line 1502 of file mpegts.c.

Referenced by rtp_parse_packet().


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