Lines Matching defs:fmt
56 const AVOutputFormat *fmt = NULL;
71 while ((fmt = av_muxer_iterate(&i))) {
73 if (fmt->name && short_name && av_match_name(short_name, fmt->name))
75 if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type))
77 if (filename && fmt->extensions &&
78 av_match_ext(filename, fmt->extensions)) {
83 fmt_found = fmt;
89 enum AVCodecID av_guess_codec(const AVOutputFormat *fmt, const char *short_name,
93 if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) {
96 fmt = fmt2;
103 if (!strcmp(fmt->name, "image2") || !strcmp(fmt->name, "image2pipe")) {
108 codec_id = fmt->video_codec;
111 return fmt->audio_codec;
113 return fmt->subtitle_codec;
115 return fmt->data_codec;
122 const AVInputFormat *fmt = NULL;
124 while ((fmt = av_demuxer_iterate(&i)))
125 if (av_match_name(short_name, fmt->name))
126 return fmt;
135 const AVInputFormat *fmt = NULL;
198 fmt = fmt1;
200 fmt = NULL;
206 return fmt;
213 const AVInputFormat *fmt = av_probe_input_format3(pd, is_opened, &score_ret);
216 return fmt;
227 int av_probe_input_buffer2(AVIOContext *pb, const AVInputFormat **fmt,
260 for (probe_size = PROBE_BUF_MIN; probe_size <= max_probe_size && !*fmt && !eof;
287 *fmt = av_probe_input_format2(&pd, 1, &score);
288 if (*fmt) {
293 "misdetection possible!\n", (*fmt)->name, score);
297 (*fmt)->name, probe_size, score);
300 fprintf(f, "probe_size:%d format:%s score:%d filename:%s\n", probe_size, (*fmt)->name, score, filename);
306 if (!*fmt)
319 int av_probe_input_buffer(AVIOContext *pb, const AVInputFormat **fmt,
323 int ret = av_probe_input_buffer2(pb, fmt, filename, logctx, offset, max_probe_size);