alldevices.c File Reference

#include "config.h"
#include "libavformat/avformat.h"

Go to the source code of this file.

Defines

#define REGISTER_MUXER(X, x)
#define REGISTER_DEMUXER(X, x)
#define REGISTER_MUXDEMUX(X, x)   REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)

Functions

void avdevice_register_all (void)


Define Documentation

#define REGISTER_DEMUXER ( X,
 ) 

Value:

{ \
          extern AVInputFormat x##_demuxer; \
          if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }

Definition at line 27 of file alldevices.c.

Referenced by av_register_all(), and avdevice_register_all().

#define REGISTER_MUXDEMUX ( X,
 )     REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)

Definition at line 30 of file alldevices.c.

Referenced by av_register_all(), and avdevice_register_all().

#define REGISTER_MUXER ( X,
 ) 

Value:

{ \
          extern AVOutputFormat x##_muxer; \
          if(ENABLE_##X##_MUXER)   av_register_output_format(&x##_muxer); }

Definition at line 24 of file alldevices.c.

Referenced by av_register_all().


Function Documentation

void avdevice_register_all ( void   ) 

Initialize libavdevice and register all the input and output devices.

Warning:
This function is not thread safe.

Definition at line 32 of file alldevices.c.

References REGISTER_DEMUXER, and REGISTER_MUXDEMUX.

Referenced by main().

00033 {
00034     static int initialized;
00035 
00036     if (initialized)
00037         return;
00038     initialized = 1;
00039 
00040     /* devices */
00041     REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
00042     REGISTER_DEMUXER  (BKTR, bktr);
00043     REGISTER_DEMUXER  (DV1394, dv1394);
00044     REGISTER_MUXDEMUX (OSS, oss);
00045     REGISTER_DEMUXER  (V4L2, v4l2);
00046     REGISTER_DEMUXER  (V4L, v4l);
00047     REGISTER_DEMUXER  (VFWCAP, vfwcap);
00048     REGISTER_DEMUXER  (X11_GRAB_DEVICE, x11_grab_device);
00049 
00050     /* external libraries */
00051     REGISTER_DEMUXER  (LIBDC1394, libdc1394);
00052 }


Generated on Sat Oct 11 19:45:04 2008 for libextractor by  doxygen 1.5.1