22 #ifndef AVFORMAT_MPEGTS_H 23 #define AVFORMAT_MPEGTS_H 27 #define TS_FEC_PACKET_SIZE 204 28 #define TS_DVHS_PACKET_SIZE 192 29 #define TS_PACKET_SIZE 188 30 #define TS_MAX_PACKET_SIZE 204 32 #define NB_PID_MAX 8192 33 #define USUAL_SECTION_SIZE 1024 34 #define MAX_SECTION_SIZE 4096 37 #define PAT_PID 0x0000 38 #define CAT_PID 0x0001 39 #define TSDT_PID 0x0002 40 #define IPMP_PID 0x0003 42 #define NIT_PID 0x0010 43 #define SDT_PID 0x0011 44 #define BAT_PID 0x0011 45 #define EIT_PID 0x0012 46 #define RST_PID 0x0013 47 #define TDT_PID 0x0014 48 #define TOT_PID 0x0014 49 #define NET_SYNC_PID 0x0015 50 #define RNT_PID 0x0016 55 #define LINK_LOCAL_PID 0x001C 56 #define MEASUREMENT_PID 0x001D 57 #define DIT_PID 0x001E 58 #define SIT_PID 0x001F 61 #define FIRST_OTHER_PID 0x0020 62 #define LAST_OTHER_PID 0x1FFA 66 #define NULL_PID 0x1FFF 69 #define M2TS_PMT_PID 0x0100 70 #define M2TS_PCR_PID 0x1001 71 #define M2TS_VIDEO_PID 0x1011 72 #define M2TS_AUDIO_START_PID 0x1100 73 #define M2TS_PGSSUB_START_PID 0x1200 74 #define M2TS_TEXTSUB_PID 0x1800 75 #define M2TS_SECONDARY_AUDIO_START_PID 0x1A00 76 #define M2TS_SECONDARY_VIDEO_START_PID 0x1B00 97 #define EITS_START_TID 0x50 98 #define EITS_END_TID 0x5F 99 #define OEITS_START_TID 0x60 100 #define OEITS_END_TID 0x6F 109 #define MPE_FEC_TID 0x78 110 #define RPNT_TID 0x79 111 #define MPE_IFEC_TID 0x7A 112 #define PROTMT_TID 0x7B 119 #define STREAM_TYPE_VIDEO_MPEG1 0x01 120 #define STREAM_TYPE_VIDEO_MPEG2 0x02 121 #define STREAM_TYPE_AUDIO_MPEG1 0x03 122 #define STREAM_TYPE_AUDIO_MPEG2 0x04 123 #define STREAM_TYPE_PRIVATE_SECTION 0x05 124 #define STREAM_TYPE_PRIVATE_DATA 0x06 125 #define STREAM_TYPE_AUDIO_AAC 0x0f 126 #define STREAM_TYPE_AUDIO_AAC_LATM 0x11 127 #define STREAM_TYPE_VIDEO_MPEG4 0x10 128 #define STREAM_TYPE_METADATA 0x15 129 #define STREAM_TYPE_VIDEO_H264 0x1b 130 #define STREAM_TYPE_VIDEO_HEVC 0x24 131 #define STREAM_TYPE_VIDEO_CAVS 0x42 132 #define STREAM_TYPE_VIDEO_VC1 0xea 133 #define STREAM_TYPE_VIDEO_DIRAC 0xd1 135 #define STREAM_TYPE_AUDIO_AC3 0x81 136 #define STREAM_TYPE_AUDIO_DTS 0x82 137 #define STREAM_TYPE_AUDIO_TRUEHD 0x83 138 #define STREAM_TYPE_AUDIO_EAC3 0x87 141 #define STREAM_ID_PRIVATE_STREAM_1 0xbd 142 #define STREAM_ID_AUDIO_STREAM_0 0xc0 143 #define STREAM_ID_VIDEO_STREAM_0 0xe0 144 #define STREAM_ID_METADATA_STREAM 0xfc 145 #define STREAM_ID_EXTENDED_STREAM_ID 0xfd 148 #define VIDEO_STREAM_DESCRIPTOR 0x02 149 #define REGISTRATION_DESCRIPTOR 0x05 150 #define ISO_639_LANGUAGE_DESCRIPTOR 0x0a 151 #define IOD_DESCRIPTOR 0x1d 152 #define SL_DESCRIPTOR 0x1e 153 #define FMC_DESCRIPTOR 0x1f 154 #define METADATA_DESCRIPTOR 0x26 155 #define METADATA_STD_DESCRIPTOR 0x27 215 Mp4Descr *mp4_descr,
int mp4_descr_count,
int pid,
void avpriv_mpegts_parse_close(MpegTSContext *ts)
#define fc(width, name, range_min, range_max)
int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type, const uint8_t **pp, const uint8_t *desc_list_end, Mp4Descr *mp4_descr, int mp4_descr_count, int pid, MpegTSContext *ts)
Parse an MPEG-2 descriptor.
int ff_check_h264_startcode(AVFormatContext *s, const AVStream *st, const AVPacket *pkt)
Check presence of H264 startcode.
MpegTSContext * avpriv_mpegts_parse_open(AVFormatContext *s)
uint8_t component_type_flag
uint8_t * dec_config_descr
int avpriv_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len)
This structure stores compressed data.