diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 14:27:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 14:27:38 +0100 |
commit | 83d4a8442ca458ad77d77750f90a430040fd0f48 (patch) | |
tree | 7d2663aa0e9f5a97efef3fa90ed14ec516aaaa8a /libavdevice/alldevices.c | |
parent | 2a9443a110e1865523fee32404890097fb6d1d93 (diff) | |
parent | c73c87b41298ff81b5a86569b0f680a556fc1a21 (diff) | |
download | ffmpeg-streaming-83d4a8442ca458ad77d77750f90a430040fd0f48.zip ffmpeg-streaming-83d4a8442ca458ad77d77750f90a430040fd0f48.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
cosmetics: Prettyprint codec/format/filter registration files
Conflicts:
libavcodec/allcodecs.c
libavdevice/alldevices.c
libavfilter/allfilters.c
libavformat/allformats.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/alldevices.c')
-rw-r--r-- | libavdevice/alldevices.c | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c index 7789058..1abf21b 100644 --- a/libavdevice/alldevices.c +++ b/libavdevice/alldevices.c @@ -21,13 +21,23 @@ #include "config.h" #include "avdevice.h" -#define REGISTER_OUTDEV(X,x) { \ - extern AVOutputFormat ff_##x##_muxer; \ - if(CONFIG_##X##_OUTDEV) av_register_output_format(&ff_##x##_muxer); } -#define REGISTER_INDEV(X,x) { \ - extern AVInputFormat ff_##x##_demuxer; \ - if(CONFIG_##X##_INDEV) av_register_input_format(&ff_##x##_demuxer); } -#define REGISTER_INOUTDEV(X,x) REGISTER_OUTDEV(X,x); REGISTER_INDEV(X,x) +#define REGISTER_OUTDEV(X, x) \ + { \ + extern AVOutputFormat ff_##x##_muxer; \ + if (CONFIG_##X##_OUTDEV) \ + av_register_output_format(&ff_##x##_muxer); \ + } + +#define REGISTER_INDEV(X, x) \ + { \ + extern AVInputFormat ff_##x##_demuxer; \ + if (CONFIG_##X##_INDEV) \ + av_register_input_format(&ff_##x##_demuxer); \ + } + +#define REGISTER_INOUTDEV(X, x) \ + REGISTER_OUTDEV(X, x); \ + REGISTER_INDEV(X, x) void avdevice_register_all(void) { @@ -38,26 +48,26 @@ void avdevice_register_all(void) initialized = 1; /* devices */ - REGISTER_INOUTDEV (ALSA, alsa); - REGISTER_INDEV (BKTR, bktr); - REGISTER_OUTDEV (CACA, caca); - REGISTER_INDEV (DSHOW, dshow); - REGISTER_INDEV (DV1394, dv1394); - REGISTER_INDEV (FBDEV, fbdev); - REGISTER_INDEV (IEC61883, iec61883); - REGISTER_INDEV (JACK, jack); - REGISTER_INDEV (LAVFI, lavfi); - REGISTER_INDEV (OPENAL, openal); - REGISTER_INOUTDEV (OSS, oss); - REGISTER_INDEV (PULSE, pulse); - REGISTER_OUTDEV (SDL, sdl); - REGISTER_INOUTDEV (SNDIO, sndio); - REGISTER_INDEV (V4L2, v4l2); -// REGISTER_INDEV (V4L, v4l - REGISTER_INDEV (VFWCAP, vfwcap); - REGISTER_INDEV (X11GRAB, x11grab); + REGISTER_INOUTDEV(ALSA, alsa); + REGISTER_INDEV (BKTR, bktr); + REGISTER_OUTDEV (CACA, caca); + REGISTER_INDEV (DSHOW, dshow); + REGISTER_INDEV (DV1394, dv1394); + REGISTER_INDEV (FBDEV, fbdev); + REGISTER_INDEV (IEC61883, iec61883); + REGISTER_INDEV (JACK, jack); + REGISTER_INDEV (LAVFI, lavfi); + REGISTER_INDEV (OPENAL, openal); + REGISTER_INOUTDEV(OSS, oss); + REGISTER_INDEV (PULSE, pulse); + REGISTER_OUTDEV (SDL, sdl); + REGISTER_INOUTDEV(SNDIO, sndio); + REGISTER_INDEV (V4L2, v4l2); +// REGISTER_INDEV (V4L, v4l + REGISTER_INDEV (VFWCAP, vfwcap); + REGISTER_INDEV (X11GRAB, x11grab); /* external libraries */ - REGISTER_INDEV (LIBCDIO, libcdio); - REGISTER_INDEV (LIBDC1394, libdc1394); + REGISTER_INDEV (LIBCDIO, libcdio); + REGISTER_INDEV (LIBDC1394, libdc1394); } |