summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-12-25 15:29:39 +0100
committerDiego Biurrun <diego@biurrun.de>2012-12-28 19:18:13 +0100
commitc73c87b41298ff81b5a86569b0f680a556fc1a21 (patch)
tree68dc64acf4fa6d56f28132f383fc261eabba94b2 /libavdevice
parent69583bd3b1eba471366141c945030c163e073e02 (diff)
downloadffmpeg-c73c87b41298ff81b5a86569b0f680a556fc1a21.tar.gz
cosmetics: Prettyprint codec/format/filter registration files
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/alldevices.c50
1 files changed, 30 insertions, 20 deletions
diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c
index 9ec9fdfc49..5d419b0f40 100644
--- a/libavdevice/alldevices.c
+++ b/libavdevice/alldevices.c
@@ -22,13 +22,23 @@
#include "libavformat/avformat.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)
{
@@ -39,19 +49,19 @@ void avdevice_register_all(void)
initialized = 1;
/* devices */
- REGISTER_INOUTDEV (ALSA, alsa);
- REGISTER_INDEV (BKTR, bktr);
- REGISTER_INDEV (DV1394, dv1394);
- REGISTER_INDEV (FBDEV, fbdev);
- REGISTER_INDEV (JACK, jack);
- REGISTER_INOUTDEV (OSS, oss);
- REGISTER_INDEV (PULSE, pulse);
- REGISTER_INOUTDEV (SNDIO, sndio);
- REGISTER_INDEV (V4L2, v4l2);
- REGISTER_INDEV (VFWCAP, vfwcap);
- REGISTER_INDEV (X11GRAB, x11grab);
+ REGISTER_INOUTDEV(ALSA, alsa);
+ REGISTER_INDEV (BKTR, bktr);
+ REGISTER_INDEV (DV1394, dv1394);
+ REGISTER_INDEV (FBDEV, fbdev);
+ REGISTER_INDEV (JACK, jack);
+ REGISTER_INOUTDEV(OSS, oss);
+ REGISTER_INDEV (PULSE, pulse);
+ REGISTER_INOUTDEV(SNDIO, sndio);
+ REGISTER_INDEV (V4L2, v4l2);
+ 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);
}