FFmpeg: libavdevice/alldevices.c Source File
Go to the documentation of this file. 1 /*
2 * Register all the grabbing devices.
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
27
29 /* devices */
58
59 /* external libraries */
63
64 #include "libavdevice/outdev_list.c"
65 #include "libavdevice/indev_list.c"
66
68 {
70 }
71
73 {
79
80 while (prev && (fmt = indev_list[
i])) {
83 break;
84 }
85
86 do {
87 fmt = indev_list[
i++];
88 if (!fmt)
89 break;
91 if (!pc)
92 continue;
95 return fmt;
96 }
97
99 {
105
106 while (prev && (fmt = outdev_list[
i])) {
109 break;
110 }
111
112 do {
113 fmt = outdev_list[
i++];
114 if (!fmt)
115 break;
117 if (!pc)
118 continue;
121 return fmt;
122 }
123
125 {
127 }
128
130 {
132 }
133
135 {
137 }
138
140 {
142 }
#define FF_VISIBILITY_PUSH_HIDDEN
const FFOutputFormat ff_pulse_muxer
const FFOutputFormat ff_decklink_muxer
const FFInputFormat ff_sndio_demuxer
const av_cold AVInputFormat * av_input_audio_device_next(const AVInputFormat *d)
Audio input devices iterator.
const FFOutputFormat ff_xv_muxer
const FFInputFormat ff_vfwcap_demuxer
static const av_cold void * next_output(const AVOutputFormat *prev, AVClassCategory c2)
const FFInputFormat ff_gdigrab_demuxer
gdi grabber device demuxer declaration
@ AV_CLASS_CATEGORY_DEVICE_INPUT
const FFOutputFormat ff_oss_muxer
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT
const FFInputFormat ff_lavfi_demuxer
const FFInputFormat ff_dshow_demuxer
const FFInputFormat ff_xcbgrab_demuxer
const FFOutputFormat ff_v4l2_muxer
const FFOutputFormat ff_sndio_muxer
const FFInputFormat ff_iec61883_demuxer
Describe the class of an AVClass context structure.
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
const FFOutputFormat ff_fbdev_muxer
const FFOutputFormat ff_alsa_muxer
AVClassCategory category
Category used for visualization (like color).
const av_cold AVOutputFormat * av_output_video_device_next(const AVOutputFormat *d)
Video output devices iterator.
static const av_cold void * next_input(const AVInputFormat *prev, AVClassCategory c2)
#define FF_VISIBILITY_POP_HIDDEN
#define i(width, name, range_min, range_max)
@ AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT
const FFOutputFormat ff_caca_muxer
const FFInputFormat ff_fbdev_demuxer
const FFInputFormat ff_libdc1394_demuxer
const FFInputFormat ff_v4l2_demuxer
const FFInputFormat ff_libcdio_demuxer
@ AV_CLASS_CATEGORY_DEVICE_OUTPUT
const FF_VISIBILITY_PUSH_HIDDEN FFInputFormat ff_alsa_demuxer
const FFInputFormat ff_openal_demuxer
const av_cold AVOutputFormat * av_output_audio_device_next(const AVOutputFormat *d)
Audio output devices iterator.
const FFInputFormat ff_oss_demuxer
const FFInputFormat ff_decklink_demuxer
const FFInputFormat ff_avfoundation_demuxer
const FFInputFormat ff_kmsgrab_demuxer
const av_cold AVInputFormat * av_input_video_device_next(const AVInputFormat *d)
Video input devices iterator.
const FFInputFormat ff_jack_demuxer
const FFInputFormat ff_android_camera_demuxer
const FFOutputFormat ff_audiotoolbox_muxer
const FFInputFormat ff_pulse_demuxer
FF_VISIBILITY_POP_HIDDEN av_cold void avdevice_register_all(void)
Initialize libavdevice and register all the input and output devices.
Generated on Thu Oct 16 2025 19:22:55 for FFmpeg by
doxygen
1.8.17