• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavdevice/

Lines Matching refs:avctx

246 dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
249 struct dshow_ctx *ctx = avctx->priv_data;
265 av_log(avctx, AV_LOG_ERROR, "Could not enumerate %s devices.\n",
293 av_log(avctx, AV_LOG_INFO, " \"%s\"\n", buf);
308 av_log(avctx, AV_LOG_ERROR, "Could not find %s device.\n",
325 dshow_cycle_formats(AVFormatContext *avctx, enum dshowDeviceType devtype,
328 struct dshow_ctx *ctx = avctx->priv_data;
375 av_log(avctx, AV_LOG_INFO, " unknown compression type 0x%X", (int) bih->biCompression);
377 av_log(avctx, AV_LOG_INFO, " vcodec=%s", codec->name);
380 av_log(avctx, AV_LOG_INFO, " pixel_format=%s", av_get_pix_fmt_name(pix_fmt));
382 av_log(avctx, AV_LOG_INFO, " min s=%ldx%ld fps=%g max s=%ldx%ld fps=%g\n",
426 av_log(avctx, AV_LOG_INFO, " min ch=%lu bits=%lu rate=%6lu max ch=%lu bits=%lu rate=%6lu\n",
471 dshow_set_audio_buffer_size(AVFormatContext *avctx, IPin *pin)
473 struct dshow_ctx *ctx = avctx->priv_data;
518 dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
521 struct dshow_ctx *ctx = avctx->priv_data;
539 av_log(avctx, AV_LOG_ERROR, "Could not enumerate pins.\n");
544 av_log(avctx, AV_LOG_INFO, "DirectShow %s device options\n",
570 av_log(avctx, AV_LOG_INFO, " Pin \"%s\"\n", buf);
572 dshow_cycle_formats(avctx, devtype, pin, NULL);
576 dshow_cycle_formats(avctx, devtype, pin, &format_set);
582 if (dshow_set_audio_buffer_size(avctx, pin) < 0) {
583 av_log(avctx, AV_LOG_ERROR, "unable to set audio buffer size %d to pin, using pin anyway...", ctx->audio_buffer_size);
612 av_log(avctx, AV_LOG_ERROR, "Could not set %s options\n", devtypename);
616 av_log(avctx, AV_LOG_ERROR,
632 dshow_list_device_options(AVFormatContext *avctx, ICreateDevEnum *devenum,
635 struct dshow_ctx *ctx = avctx->priv_data;
639 if ((r = dshow_cycle_devices(avctx, devenum, devtype, &device_filter)) < 0)
642 if ((r = dshow_cycle_pins(avctx, devtype, device_filter, NULL)) < 0)
649 dshow_open_device(AVFormatContext *avctx, ICreateDevEnum *devenum,
652 struct dshow_ctx *ctx = avctx->priv_data;
663 if ((r = dshow_cycle_devices(avctx, devenum, devtype, &device_filter)) < 0) {
672 av_log(avctx, AV_LOG_ERROR, "Could not add device filter to graph.\n");
676 if ((r = dshow_cycle_pins(avctx, devtype, device_filter, &device_pin)) < 0) {
682 capture_filter = libAVFilter_Create(avctx, callback, devtype);
684 av_log(avctx, AV_LOG_ERROR, "Could not create grabber filter.\n");
692 av_log(avctx, AV_LOG_ERROR, "Could not add capture filter to graph\n");
702 av_log(avctx, AV_LOG_ERROR, "Could not connect pins\n");
733 dshow_add_device(AVFormatContext *avctx,
736 struct dshow_ctx *ctx = avctx->priv_data;
742 st = avformat_new_stream(avctx, NULL);
768 av_log(avctx, AV_LOG_ERROR, "Could not get media type.\n");
779 av_log(avctx, AV_LOG_DEBUG, "attempt to use full range for HDYC...\n");
785 av_log(avctx, AV_LOG_ERROR, "Unknown compression type. "
808 av_log(avctx, AV_LOG_ERROR, "Could not get media type.\n");
827 static int parse_device_name(AVFormatContext *avctx)
829 struct dshow_ctx *ctx = avctx->priv_data;
831 char *name = av_strdup(avctx->filename);
864 static int dshow_read_header(AVFormatContext *avctx)
866 struct dshow_ctx *ctx = avctx->priv_data;
878 if (!ctx->list_devices && !parse_device_name(avctx)) {
879 av_log(avctx, AV_LOG_ERROR, "Malformed dshow input string.\n");
883 ctx->video_codec_id = avctx->video_codec_id ? avctx->video_codec_id
887 av_log(avctx, AV_LOG_ERROR, "Pixel format may only be set when "
896 av_log(avctx, AV_LOG_ERROR, "Could not parse framerate '%s'.\n", ctx->framerate);
904 av_log(avctx, AV_LOG_ERROR, "Could not create capture graph.\n");
912 av_log(avctx, AV_LOG_ERROR, "Could not enumerate system devices.\n");
917 av_log(avctx, AV_LOG_INFO, "DirectShow video devices\n");
918 dshow_cycle_devices(avctx, devenum, VideoDevice, NULL);
919 av_log(avctx, AV_LOG_INFO, "DirectShow audio devices\n");
920 dshow_cycle_devices(avctx, devenum, AudioDevice, NULL);
926 dshow_list_device_options(avctx, devenum, VideoDevice);
928 dshow_list_device_options(avctx, devenum, AudioDevice);
934 if ((r = dshow_open_device(avctx, devenum, VideoDevice)) < 0 ||
935 (r = dshow_add_device(avctx, VideoDevice)) < 0) {
941 if ((r = dshow_open_device(avctx, devenum, AudioDevice)) < 0 ||
942 (r = dshow_add_device(avctx, AudioDevice)) < 0) {
951 av_log(avctx, AV_LOG_ERROR, "Could not create Mutex\n");
956 av_log(avctx, AV_LOG_ERROR, "Could not create Event\n");
962 av_log(avctx, AV_LOG_ERROR, "Could not get media control.\n");
969 av_log(avctx, AV_LOG_ERROR, "Could not get media event.\n");
976 av_log(avctx, AV_LOG_ERROR, "Could not get media event handle.\n");
983 av_log(avctx, AV_LOG_ERROR, "Could not duplicate media event handle.\n");
993 av_log(avctx, AV_LOG_ERROR, "Could not run filter\n");
1005 dshow_read_close(avctx);