Lines Matching defs:MpegTSContext
170 struct MpegTSContext {
226 { "resync_size", "set size limit for looking up a new synchronization", offsetof(MpegTSContext, resync_size), AV_OPT_TYPE_INT, { .i64 = MAX_RESYNC_SIZE}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }
230 {"fix_teletext_pts", "try to fix pts values of dvb teletext streams", offsetof(MpegTSContext, fix_teletext_pts), AV_OPT_TYPE_BOOL,
232 {"ts_packetsize", "output option carrying the raw packet size", offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT,
234 {"scan_all_pmts", "scan and combine all PMTs", offsetof(MpegTSContext, scan_all_pmts), AV_OPT_TYPE_BOOL,
236 {"skip_unknown_pmt", "skip PMTs for programs not advertised in the PAT", offsetof(MpegTSContext, skip_unknown_pmt), AV_OPT_TYPE_BOOL,
238 {"merge_pmt_versions", "re-use streams when PMT's version/pids change", offsetof(MpegTSContext, merge_pmt_versions), AV_OPT_TYPE_BOOL,
240 {"skip_changes", "skip changing / adding streams / programs", offsetof(MpegTSContext, skip_changes), AV_OPT_TYPE_BOOL,
242 {"skip_clear", "skip clearing programs", offsetof(MpegTSContext, skip_clear), AV_OPT_TYPE_BOOL,
244 {"max_packet_size", "maximum size of emitted packet", offsetof(MpegTSContext, max_packet_size), AV_OPT_TYPE_INT,
259 offsetof(MpegTSContext, mpeg2ts_compute_pcr), AV_OPT_TYPE_BOOL,
262 offsetof(MpegTSContext, raw_packet_size), AV_OPT_TYPE_INT,
294 MpegTSContext *ts;
869 static struct Program * get_program(MpegTSContext *ts, unsigned int programid)
880 static void clear_avprogram(MpegTSContext *ts, unsigned int programid)
904 static void clear_programs(MpegTSContext *ts)
910 static struct Program * add_program(MpegTSContext *ts, unsigned int programid)
972 static int discard_pid(MpegTSContext *ts, unsigned int pid)
1013 static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
1080 static MpegTSFilter *mpegts_open_filter(MpegTSContext *ts, unsigned int pid,
1103 static MpegTSFilter *mpegts_open_section_filter(MpegTSContext *ts,
1130 static MpegTSFilter *mpegts_open_pes_filter(MpegTSContext *ts, unsigned int pid,
1146 static MpegTSFilter *mpegts_open_pcr_filter(MpegTSContext *ts, unsigned int pid)
1151 static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
1722 static AVBufferRef *buffer_pool_get(MpegTSContext *ts, int size)
1740 MpegTSContext *ts = pes->ts;
2023 static PESContext *add_pes_stream(MpegTSContext *ts, int pid, int pcr_pid)
2295 MpegTSContext *ts = filter->u.section_filter.opaque;
2361 MpegTSContext *ts = filter->u.section_filter.opaque;
2408 MpegTSContext *ts)
2853 static AVStream *find_matching_stream(MpegTSContext *ts, int pid, unsigned int programid,
2923 MpegTSContext *ts = filter->u.section_filter.opaque;
3170 MpegTSContext *ts = filter->u.section_filter.opaque;
3258 MpegTSContext *ts = filter->u.section_filter.opaque;
3312 MpegTSContext *ts = filter->u.section_filter.opaque;
3400 static int handle_packet(MpegTSContext *ts, const uint8_t *packet, int64_t pos)
3532 MpegTSContext *ts = s->priv_data;
3606 static int handle_packets(MpegTSContext *ts, int64_t nb_packets)
3739 MpegTSContext *ts = s->priv_data;
3842 MpegTSContext *ts = s->priv_data;
3889 MpegTSContext *ts = s->priv_data;
3925 static void mpegts_free(MpegTSContext *ts)
3941 MpegTSContext *ts = s->priv_data;
3949 MpegTSContext *ts = s->priv_data;
3983 MpegTSContext *ts = s->priv_data;
4021 MpegTSContext *avpriv_mpegts_parse_open(AVFormatContext *s)
4023 MpegTSContext *ts;
4025 ts = av_mallocz(sizeof(MpegTSContext));
4043 int avpriv_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,
4068 void avpriv_mpegts_parse_close(MpegTSContext *ts)
4077 .priv_data_size = sizeof(MpegTSContext),
4090 .priv_data_size = sizeof(MpegTSContext),