00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "avformat.h"
00022 #include "rtp.h"
00023 #include "rdt.h"
00024
00025 #define REGISTER_MUXER(X,x) { \
00026 extern AVOutputFormat x##_muxer; \
00027 if(CONFIG_##X##_MUXER) av_register_output_format(&x##_muxer); }
00028
00029 #define REGISTER_DEMUXER(X,x) { \
00030 extern AVInputFormat x##_demuxer; \
00031 if(CONFIG_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }
00032
00033 #define REGISTER_MUXDEMUX(X,x) REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
00034
00035 #define REGISTER_PROTOCOL(X,x) { \
00036 extern URLProtocol x##_protocol; \
00037 if(CONFIG_##X##_PROTOCOL) av_register_protocol(&x##_protocol); }
00038
00039 void av_register_all(void)
00040 {
00041 static int initialized;
00042
00043 if (initialized)
00044 return;
00045 initialized = 1;
00046
00047 avcodec_register_all();
00048
00049
00050 REGISTER_DEMUXER (AAC, aac);
00051 REGISTER_MUXDEMUX (AC3, ac3);
00052 REGISTER_MUXER (ADTS, adts);
00053 REGISTER_MUXDEMUX (AIFF, aiff);
00054 REGISTER_MUXDEMUX (AMR, amr);
00055 REGISTER_DEMUXER (APC, apc);
00056 REGISTER_DEMUXER (APE, ape);
00057 REGISTER_MUXDEMUX (ASF, asf);
00058 REGISTER_MUXDEMUX (ASS, ass);
00059 REGISTER_MUXER (ASF_STREAM, asf_stream);
00060 REGISTER_MUXDEMUX (AU, au);
00061 REGISTER_MUXDEMUX (AVI, avi);
00062 REGISTER_DEMUXER (AVISYNTH, avisynth);
00063 REGISTER_MUXER (AVM2, avm2);
00064 REGISTER_DEMUXER (AVS, avs);
00065 REGISTER_DEMUXER (BETHSOFTVID, bethsoftvid);
00066 REGISTER_DEMUXER (BFI, bfi);
00067 REGISTER_DEMUXER (C93, c93);
00068 REGISTER_DEMUXER (CAVSVIDEO, cavsvideo);
00069 REGISTER_MUXER (CRC, crc);
00070 REGISTER_MUXDEMUX (DAUD, daud);
00071 REGISTER_MUXDEMUX (DIRAC, dirac);
00072 REGISTER_MUXDEMUX (DNXHD, dnxhd);
00073 REGISTER_DEMUXER (DSICIN, dsicin);
00074 REGISTER_MUXDEMUX (DTS, dts);
00075 REGISTER_MUXDEMUX (DV, dv);
00076 REGISTER_DEMUXER (DXA, dxa);
00077 REGISTER_DEMUXER (EA, ea);
00078 REGISTER_DEMUXER (EA_CDATA, ea_cdata);
00079 REGISTER_MUXDEMUX (EAC3, eac3);
00080 REGISTER_MUXDEMUX (FFM, ffm);
00081 REGISTER_MUXDEMUX (FLAC, flac);
00082 REGISTER_DEMUXER (FLIC, flic);
00083 REGISTER_MUXDEMUX (FLV, flv);
00084 REGISTER_DEMUXER (FOURXM, fourxm);
00085 REGISTER_MUXER (FRAMECRC, framecrc);
00086 REGISTER_MUXER (GIF, gif);
00087 REGISTER_DEMUXER (GSM, gsm);
00088 REGISTER_MUXDEMUX (GXF, gxf);
00089 REGISTER_MUXDEMUX (H261, h261);
00090 REGISTER_MUXDEMUX (H263, h263);
00091 REGISTER_MUXDEMUX (H264, h264);
00092 REGISTER_DEMUXER (IDCIN, idcin);
00093 REGISTER_DEMUXER (IFF, iff);
00094 REGISTER_MUXDEMUX (IMAGE2, image2);
00095 REGISTER_MUXDEMUX (IMAGE2PIPE, image2pipe);
00096 REGISTER_DEMUXER (INGENIENT, ingenient);
00097 REGISTER_DEMUXER (IPMOVIE, ipmovie);
00098 REGISTER_MUXER (IPOD, ipod);
00099 REGISTER_DEMUXER (ISS, iss);
00100 REGISTER_DEMUXER (LMLM4, lmlm4);
00101 REGISTER_MUXDEMUX (M4V, m4v);
00102 REGISTER_MUXDEMUX (MATROSKA, matroska);
00103 REGISTER_MUXER (MATROSKA_AUDIO, matroska_audio);
00104 REGISTER_MUXDEMUX (MJPEG, mjpeg);
00105 REGISTER_DEMUXER (MLP, mlp);
00106 REGISTER_DEMUXER (MM, mm);
00107 REGISTER_MUXDEMUX (MMF, mmf);
00108 REGISTER_MUXDEMUX (MOV, mov);
00109 REGISTER_MUXER (MP2, mp2);
00110 REGISTER_MUXDEMUX (MP3, mp3);
00111 REGISTER_MUXER (MP4, mp4);
00112 REGISTER_DEMUXER (MPC, mpc);
00113 REGISTER_DEMUXER (MPC8, mpc8);
00114 REGISTER_MUXER (MPEG1SYSTEM, mpeg1system);
00115 REGISTER_MUXER (MPEG1VCD, mpeg1vcd);
00116 REGISTER_MUXER (MPEG1VIDEO, mpeg1video);
00117 REGISTER_MUXER (MPEG2DVD, mpeg2dvd);
00118 REGISTER_MUXER (MPEG2SVCD, mpeg2svcd);
00119 REGISTER_MUXER (MPEG2VIDEO, mpeg2video);
00120 REGISTER_MUXER (MPEG2VOB, mpeg2vob);
00121 REGISTER_DEMUXER (MPEGPS, mpegps);
00122 REGISTER_MUXDEMUX (MPEGTS, mpegts);
00123 REGISTER_DEMUXER (MPEGTSRAW, mpegtsraw);
00124 REGISTER_DEMUXER (MPEGVIDEO, mpegvideo);
00125 REGISTER_MUXER (MPJPEG, mpjpeg);
00126 REGISTER_DEMUXER (MSNWC_TCP, msnwc_tcp);
00127 REGISTER_DEMUXER (MTV, mtv);
00128 REGISTER_DEMUXER (MVI, mvi);
00129 REGISTER_MUXDEMUX (MXF, mxf);
00130 REGISTER_MUXER (MXF_D10, mxf_d10);
00131 REGISTER_DEMUXER (NC, nc);
00132 REGISTER_DEMUXER (NSV, nsv);
00133 REGISTER_MUXER (NULL, null);
00134 REGISTER_MUXDEMUX (NUT, nut);
00135 REGISTER_DEMUXER (NUV, nuv);
00136 REGISTER_MUXDEMUX (OGG, ogg);
00137 REGISTER_DEMUXER (OMA, oma);
00138 REGISTER_MUXDEMUX (PCM_ALAW, pcm_alaw);
00139 REGISTER_MUXDEMUX (PCM_MULAW, pcm_mulaw);
00140 REGISTER_MUXDEMUX (PCM_F64BE, pcm_f64be);
00141 REGISTER_MUXDEMUX (PCM_F64LE, pcm_f64le);
00142 REGISTER_MUXDEMUX (PCM_F32BE, pcm_f32be);
00143 REGISTER_MUXDEMUX (PCM_F32LE, pcm_f32le);
00144 REGISTER_MUXDEMUX (PCM_S32BE, pcm_s32be);
00145 REGISTER_MUXDEMUX (PCM_S32LE, pcm_s32le);
00146 REGISTER_MUXDEMUX (PCM_S24BE, pcm_s24be);
00147 REGISTER_MUXDEMUX (PCM_S24LE, pcm_s24le);
00148 REGISTER_MUXDEMUX (PCM_S16BE, pcm_s16be);
00149 REGISTER_MUXDEMUX (PCM_S16LE, pcm_s16le);
00150 REGISTER_MUXDEMUX (PCM_S8, pcm_s8);
00151 REGISTER_MUXDEMUX (PCM_U32BE, pcm_u32be);
00152 REGISTER_MUXDEMUX (PCM_U32LE, pcm_u32le);
00153 REGISTER_MUXDEMUX (PCM_U24BE, pcm_u24be);
00154 REGISTER_MUXDEMUX (PCM_U24LE, pcm_u24le);
00155 REGISTER_MUXDEMUX (PCM_U16BE, pcm_u16be);
00156 REGISTER_MUXDEMUX (PCM_U16LE, pcm_u16le);
00157 REGISTER_MUXDEMUX (PCM_U8, pcm_u8);
00158 REGISTER_MUXER (PSP, psp);
00159 REGISTER_DEMUXER (PVA, pva);
00160 REGISTER_DEMUXER (R3D, r3d);
00161 REGISTER_MUXDEMUX (RAWVIDEO, rawvideo);
00162 REGISTER_DEMUXER (REDIR, redir);
00163 REGISTER_DEMUXER (RL2, rl2);
00164 REGISTER_MUXDEMUX (RM, rm);
00165 REGISTER_MUXDEMUX (ROQ, roq);
00166 REGISTER_DEMUXER (RPL, rpl);
00167 REGISTER_MUXER (RTP, rtp);
00168 REGISTER_DEMUXER (RTSP, rtsp);
00169 REGISTER_DEMUXER (SDP, sdp);
00170 #if CONFIG_SDP_DEMUXER
00171 av_register_rtp_dynamic_payload_handlers();
00172 av_register_rdt_dynamic_payload_handlers();
00173 #endif
00174 REGISTER_DEMUXER (SEGAFILM, segafilm);
00175 REGISTER_DEMUXER (SHORTEN, shorten);
00176 REGISTER_DEMUXER (SIFF, siff);
00177 REGISTER_DEMUXER (SMACKER, smacker);
00178 REGISTER_DEMUXER (SOL, sol);
00179 REGISTER_DEMUXER (STR, str);
00180 REGISTER_MUXDEMUX (SWF, swf);
00181 REGISTER_MUXER (TG2, tg2);
00182 REGISTER_MUXER (TGP, tgp);
00183 REGISTER_DEMUXER (THP, thp);
00184 REGISTER_DEMUXER (TIERTEXSEQ, tiertexseq);
00185 REGISTER_DEMUXER (TTA, tta);
00186 REGISTER_DEMUXER (TXD, txd);
00187 REGISTER_DEMUXER (VC1, vc1);
00188 REGISTER_MUXDEMUX (VC1T, vc1t);
00189 REGISTER_DEMUXER (VMD, vmd);
00190 REGISTER_MUXDEMUX (VOC, voc);
00191 REGISTER_MUXDEMUX (WAV, wav);
00192 REGISTER_DEMUXER (WC3, wc3);
00193 REGISTER_DEMUXER (WSAUD, wsaud);
00194 REGISTER_DEMUXER (WSVQA, wsvqa);
00195 REGISTER_DEMUXER (WV, wv);
00196 REGISTER_DEMUXER (XA, xa);
00197 REGISTER_MUXDEMUX (YUV4MPEGPIPE, yuv4mpegpipe);
00198
00199
00200 REGISTER_MUXDEMUX (LIBNUT, libnut);
00201
00202
00203 REGISTER_PROTOCOL (FILE, file);
00204 REGISTER_PROTOCOL (GOPHER, gopher);
00205 REGISTER_PROTOCOL (HTTP, http);
00206 REGISTER_PROTOCOL (PIPE, pipe);
00207 REGISTER_PROTOCOL (RTP, rtp);
00208 REGISTER_PROTOCOL (TCP, tcp);
00209 REGISTER_PROTOCOL (UDP, udp);
00210 }