Lines Matching defs:fmt
432 const AVInputFormat *fmt = av_find_input_format(name);
434 if (!fmt) {
439 printf("Demuxer %s [%s]:\n", fmt->name, fmt->long_name);
441 if (fmt->extensions)
442 printf(" Common extensions: %s.\n", fmt->extensions);
444 if (fmt->priv_class)
445 show_help_children(fmt->priv_class, AV_OPT_FLAG_DECODING_PARAM);
469 const AVOutputFormat *fmt = av_guess_format(name, NULL, NULL);
471 if (!fmt) {
476 printf("Muxer %s [%s]:\n", fmt->name, fmt->long_name);
478 if (fmt->extensions)
479 printf(" Common extensions: %s.\n", fmt->extensions);
480 if (fmt->mime_type)
481 printf(" Mime type: %s.\n", fmt->mime_type);
482 if (fmt->video_codec != AV_CODEC_ID_NONE &&
483 (desc = avcodec_descriptor_get(fmt->video_codec))) {
486 if (fmt->audio_codec != AV_CODEC_ID_NONE &&
487 (desc = avcodec_descriptor_get(fmt->audio_codec))) {
490 if (fmt->subtitle_codec != AV_CODEC_ID_NONE &&
491 (desc = avcodec_descriptor_get(fmt->subtitle_codec))) {
495 if (fmt->priv_class)
496 show_help_children(fmt->priv_class, AV_OPT_FLAG_ENCODING_PARAM);
1112 static void log_callback_report(void *ptr, int level, const char *fmt, va_list vl)
1119 av_log_default_callback(ptr, level, fmt, vl);
1120 av_log_format_line(ptr, level, fmt, vl2, line, sizeof(line), &print_prefix);
1328 static int print_device_sources(const AVInputFormat *fmt, AVDictionary *opts)
1333 if (!fmt || !fmt->priv_class || !AV_IS_INPUT_DEVICE(fmt->priv_class->category))
1336 printf("Auto-detected sources for %s:\n", fmt->name);
1337 if ((ret = avdevice_list_input_sources(fmt, NULL, opts, &device_list)) < 0) {
1349 static int print_device_sinks(const AVOutputFormat *fmt, AVDictionary *opts)
1354 if (!fmt || !fmt->priv_class || !AV_IS_OUTPUT_DEVICE(fmt->priv_class->category))
1357 printf("Auto-detected sinks for %s:\n", fmt->name);
1358 if ((ret = avdevice_list_output_sinks(fmt, NULL, opts, &device_list)) < 0) {
1394 const AVInputFormat *fmt = NULL;
1406 fmt = av_input_audio_device_next(fmt);
1407 if (fmt) {
1408 if (!strcmp(fmt->name, "lavfi"))
1410 if (dev && !av_match_name(dev, fmt->name))
1412 print_device_sources(fmt, opts);
1414 } while (fmt);
1416 fmt = av_input_video_device_next(fmt);
1417 if (fmt) {
1418 if (dev && !av_match_name(dev, fmt->name))
1420 print_device_sources(fmt, opts);
1422 } while (fmt);
1432 const AVOutputFormat *fmt = NULL;
1444 fmt = av_output_audio_device_next(fmt);
1445 if (fmt) {
1446 if (dev && !av_match_name(dev, fmt->name))
1448 print_device_sinks(fmt, opts);
1450 } while (fmt);
1452 fmt = av_output_video_device_next(fmt);
1453 if (fmt) {
1454 if (dev && !av_match_name(dev, fmt->name))
1456 print_device_sinks(fmt, opts);
1458 } while (fmt);