Lines Matching defs:device

454  * Cycle through available devices using the device enumerator devenum,
455 * retrieve the device with type specified by devtype and return the
457 * If pfilter is NULL, list all device names.
459 * outputting device names to log
497 AVDeviceInfo *device = NULL;
544 // get media types exposed by pins of device
551 device = av_mallocz(sizeof(AVDeviceInfo));
552 if (!device)
555 device->device_name = av_strdup(unique_name);
556 device->device_description = av_strdup(friendly_name);
557 if (!device->device_name || !device->device_description)
560 // make space in device_list for this new device
566 // attach media_types to device
567 device->nb_media_types = nb_media_types;
568 device->media_types = media_types;
572 // store device in list
573 (*device_list)->devices[(*device_list)->nb_devices] = device;
575 device = NULL; // copied into array, make sure not freed below
597 if (device) {
598 av_freep(&device->device_name);
599 av_freep(&device->device_description);
600 // NB: no need to av_freep(&device->media_types), its only moved to device once nothing can fail anymore
601 av_free(device);
618 av_log(avctx, AV_LOG_ERROR, "Could not find %s device with name [%s] among source devices of type %s.\n",
832 * If we should open the device with the default format,
834 * 1. check what the format of the default device is, and
1050 // default format returned by device apparently was not contained
1051 // in the capabilities of any of the formats returned by the device
1074 * Set audio device buffer size in milliseconds (which can directly impact
1075 * latency, depending on the device).
1166 * Cycle through available pins using the device_filter device, of type
1198 av_log(avctx, AV_LOG_INFO, "DirectShow %s device options (from %s devices)\n",
1284 "Could not find output pin from %s capture device.\n", devtypename);
1294 * List options for device with type devtype, source filter type sourcetype
1296 * @param devenum device enumerator used for accessing the device
1373 // avoid adding add two instances of the same device to the graph, one for video, one for audio
1390 av_log(avctx, AV_LOG_ERROR, "Could not add device filter to graph.\n");
1760 av_log(avctx, AV_LOG_INFO, "Searching for audio device within video devices for %s\n", ctx->device_name[AudioDevice]);
1820 av_log(avctx, AV_LOG_ERROR, "Could not run graph (sometimes caused by a device already in use by other application)\n");
1896 { "audio_buffer_size", "set audio device buffer latency size in milliseconds (default is the device's default)", OFFSET(audio_buffer_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
1898 { "list_options", "list available options for specified device", OFFSET(list_options), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, DEC },
1899 { "video_device_number", "set video device number for devices with same name (starts at 0)", OFFSET(video_device_number), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
1900 { "audio_device_number", "set audio device number for devices with same name (starts at 0)", OFFSET(audio_device_number), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
1903 { "crossbar_video_input_pin_number", "set video input pin number for crossbar device", OFFSET(crossbar_video_input_pin_number), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, DEC },
1904 { "crossbar_audio_input_pin_number", "set audio input pin number for crossbar device", OFFSET(crossbar_audio_input_pin_number), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, DEC },
1905 { "show_video_device_dialog", "display property dialog for video capture device", OFFSET(show_video_device_dialog), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
1906 { "show_audio_device_dialog", "display property dialog for audio capture device", OFFSET(show_audio_device_dialog), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
1907 { "show_video_crossbar_connection_dialog", "display property dialog for crossbar connecting pins filter on video device", OFFSET(show_video_crossbar_connection_dialog), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
1908 { "show_audio_crossbar_connection_dialog", "display property dialog for crossbar connecting pins filter on audio device", OFFSET(show_audio_crossbar_connection_dialog), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
1911 { "audio_device_load", "load audio capture filter device (and properties) from file", OFFSET(audio_filter_load_file), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
1912 { "audio_device_save", "save audio capture filter device (and properties) to file", OFFSET(audio_filter_save_file), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
1913 { "video_device_load", "load video capture filter device (and properties) from file", OFFSET(video_filter_load_file), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
1914 { "video_device_save", "save video capture filter device (and properties) to file", OFFSET(video_filter_save_file), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
1915 { "use_video_device_timestamps", "use device instead of wallclock timestamps for video frames", OFFSET(use_video_device_timestamps), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DEC },