#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 | TS_MAX_PACKET_SIZE 204 |
#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 | 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_AUDIO_AAC_LATM 0x11 |
#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 |
Typedefs | |
typedef struct MpegTSContext | MpegTSContext |
Functions | |
MpegTSContext * | ff_mpegts_parse_open (AVFormatContext *s) |
int | ff_mpegts_parse_packet (MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len) |
void | ff_mpegts_parse_close (MpegTSContext *ts) |
int | ff_parse_mpeg2_descriptor (AVFormatContext *fc, AVStream *st, int stream_type, const uint8_t **pp, const uint8_t *desc_list_end, int mp4_dec_config_descr_len, int mp4_es_id, int pid, uint8_t *mp4_dec_config_descr) |
Parse an MPEG-2 descriptor. |
#define MAX_SECTION_SIZE 4096 |
#define NB_PID_MAX 8192 |
Definition at line 32 of file mpegts.h.
Referenced by ff_mpegts_parse_close(), mpegts_open_pes_filter(), mpegts_open_section_filter(), mpegts_read_close(), and mpegts_read_packet().
#define PAT_PID 0x0000 |
Definition at line 36 of file mpegts.h.
Referenced by mpegts_read_header(), and mpegts_write_header().
#define PAT_TID 0x00 |
#define PMT_TID 0x02 |
#define SDT_PID 0x0011 |
Definition at line 37 of file mpegts.h.
Referenced by mpegts_read_header(), and mpegts_write_header().
#define SDT_TID 0x42 |
Definition at line 42 of file mpegts.h.
Referenced by mpegts_write_sdt(), mpegts_write_section1(), and sdt_cb().
#define STREAM_TYPE_AUDIO_AAC_LATM 0x11 |
#define STREAM_TYPE_VIDEO_DIRAC 0xd1 |
#define TS_DVHS_PACKET_SIZE 192 |
#define TS_FEC_PACKET_SIZE 204 |
#define TS_PACKET_SIZE 188 |
Definition at line 29 of file mpegts.h.
Referenced by ff_mpegts_parse_open(), ff_mpegts_parse_packet(), get_packet_size(), handle_packet(), handle_packets(), mpegts_get_pcr(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_probe(), mpegts_raw_read_packet(), mpegts_read_header(), mpegts_write_header(), mpegts_write_pes(), mpegts_write_section(), read_packet(), read_seek(), and section_write_packet().
typedef struct MpegTSContext MpegTSContext |
void ff_mpegts_parse_close | ( | MpegTSContext * | ts | ) |
MpegTSContext* ff_mpegts_parse_open | ( | AVFormatContext * | s | ) |
int ff_mpegts_parse_packet | ( | MpegTSContext * | ts, | |
AVPacket * | pkt, | |||
const uint8_t * | buf, | |||
int | len | |||
) |
Definition at line 1863 of file mpegts.c.
Referenced by rtp_parse_one_packet(), and rtp_parse_packet_internal().
int ff_parse_mpeg2_descriptor | ( | AVFormatContext * | fc, | |
AVStream * | st, | |||
int | stream_type, | |||
const uint8_t ** | pp, | |||
const uint8_t * | desc_list_end, | |||
int | mp4_dec_config_descr_len, | |||
int | mp4_es_id, | |||
int | pid, | |||
uint8_t * | mp4_dec_config_descr | |||
) |
Parse an MPEG-2 descriptor.
[in] | fc | Format context (used for logging only) |
st | Stream | |
stream_type | STREAM_TYPE_xxx | |
pp | Descriptor buffer pointer | |
desc_list_end | End of buffer | |
mp4_dec_config_descr_len | Length of 'mp4_dec_config_descr', or zero if not present | |
mp4_es_id | ||
pid | ||
mp4_dec_config_descr |
Definition at line 912 of file mpegts.c.
Referenced by parse_chunks(), and pmt_cb().