00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00027 #include "avcodec.h"
00028
00029 #define REGISTER_ENCODER(X,x) { \
00030 extern AVCodec x##_encoder; \
00031 if(CONFIG_##X##_ENCODER) avcodec_register(&x##_encoder); }
00032 #define REGISTER_DECODER(X,x) { \
00033 extern AVCodec x##_decoder; \
00034 if(CONFIG_##X##_DECODER) avcodec_register(&x##_decoder); }
00035 #define REGISTER_ENCDEC(X,x) REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x)
00036
00037 #define REGISTER_PARSER(X,x) { \
00038 extern AVCodecParser x##_parser; \
00039 if(CONFIG_##X##_PARSER) av_register_codec_parser(&x##_parser); }
00040 #define REGISTER_BSF(X,x) { \
00041 extern AVBitStreamFilter x##_bsf; \
00042 if(CONFIG_##X##_BSF) av_register_bitstream_filter(&x##_bsf); }
00043
00044 void avcodec_register_all(void)
00045 {
00046 static int initialized;
00047
00048 if (initialized)
00049 return;
00050 initialized = 1;
00051
00052
00053 REGISTER_DECODER (AASC, aasc);
00054 REGISTER_DECODER (AMV, amv);
00055 REGISTER_ENCDEC (ASV1, asv1);
00056 REGISTER_ENCDEC (ASV2, asv2);
00057 REGISTER_DECODER (AVS, avs);
00058 REGISTER_DECODER (BETHSOFTVID, bethsoftvid);
00059 REGISTER_DECODER (BFI, bfi);
00060 REGISTER_ENCDEC (BMP, bmp);
00061 REGISTER_DECODER (C93, c93);
00062 REGISTER_DECODER (CAVS, cavs);
00063 REGISTER_DECODER (CINEPAK, cinepak);
00064 REGISTER_DECODER (CLJR, cljr);
00065 REGISTER_DECODER (CSCD, cscd);
00066 REGISTER_DECODER (CYUV, cyuv);
00067 REGISTER_ENCDEC (DNXHD, dnxhd);
00068 REGISTER_DECODER (DSICINVIDEO, dsicinvideo);
00069 REGISTER_ENCDEC (DVVIDEO, dvvideo);
00070 REGISTER_DECODER (DXA, dxa);
00071 REGISTER_DECODER (EACMV, eacmv);
00072 REGISTER_DECODER (EATGQ, eatgq);
00073 REGISTER_DECODER (EATGV, eatgv);
00074 REGISTER_DECODER (EATQI, eatqi);
00075 REGISTER_DECODER (EIGHTBPS, eightbps);
00076 REGISTER_DECODER (EIGHTSVX_EXP, eightsvx_exp);
00077 REGISTER_DECODER (EIGHTSVX_FIB, eightsvx_fib);
00078 REGISTER_DECODER (ESCAPE124, escape124);
00079 REGISTER_ENCDEC (FFV1, ffv1);
00080 REGISTER_ENCDEC (FFVHUFF, ffvhuff);
00081 REGISTER_ENCDEC (FLASHSV, flashsv);
00082 REGISTER_DECODER (FLIC, flic);
00083 REGISTER_ENCDEC (FLV, flv);
00084 REGISTER_DECODER (FOURXM, fourxm);
00085 REGISTER_DECODER (FRAPS, fraps);
00086 REGISTER_ENCDEC (GIF, gif);
00087 REGISTER_ENCDEC (H261, h261);
00088 REGISTER_ENCDEC (H263, h263);
00089 REGISTER_DECODER (H263I, h263i);
00090 REGISTER_ENCODER (H263P, h263p);
00091 REGISTER_DECODER (H264, h264);
00092 REGISTER_DECODER (H264_VDPAU, h264_vdpau);
00093 REGISTER_ENCDEC (HUFFYUV, huffyuv);
00094 REGISTER_DECODER (IDCIN, idcin);
00095 REGISTER_DECODER (INDEO2, indeo2);
00096 REGISTER_DECODER (INDEO3, indeo3);
00097 REGISTER_DECODER (INTERPLAY_VIDEO, interplay_video);
00098 REGISTER_ENCDEC (JPEGLS, jpegls);
00099 REGISTER_DECODER (KMVC, kmvc);
00100 REGISTER_ENCODER (LJPEG, ljpeg);
00101 REGISTER_DECODER (LOCO, loco);
00102 REGISTER_DECODER (MDEC, mdec);
00103 REGISTER_DECODER (MIMIC, mimic);
00104 REGISTER_ENCDEC (MJPEG, mjpeg);
00105 REGISTER_DECODER (MJPEGB, mjpegb);
00106 REGISTER_DECODER (MMVIDEO, mmvideo);
00107 REGISTER_DECODER (MOTIONPIXELS, motionpixels);
00108 REGISTER_DECODER (MPEG_XVMC, mpeg_xvmc);
00109 REGISTER_ENCDEC (MPEG1VIDEO, mpeg1video);
00110 REGISTER_ENCDEC (MPEG2VIDEO, mpeg2video);
00111 REGISTER_ENCDEC (MPEG4, mpeg4);
00112 REGISTER_DECODER (MPEGVIDEO, mpegvideo);
00113 REGISTER_DECODER (MPEG_VDPAU, mpeg_vdpau);
00114 REGISTER_DECODER (MPEG1_VDPAU, mpeg1_vdpau);
00115 REGISTER_ENCDEC (MSMPEG4V1, msmpeg4v1);
00116 REGISTER_ENCDEC (MSMPEG4V2, msmpeg4v2);
00117 REGISTER_ENCDEC (MSMPEG4V3, msmpeg4v3);
00118 REGISTER_DECODER (MSRLE, msrle);
00119 REGISTER_DECODER (MSVIDEO1, msvideo1);
00120 REGISTER_DECODER (MSZH, mszh);
00121 REGISTER_DECODER (NUV, nuv);
00122 REGISTER_ENCODER (PAM, pam);
00123 REGISTER_ENCODER (PBM, pbm);
00124 REGISTER_DECODER (PCX, pcx);
00125 REGISTER_ENCODER (PGM, pgm);
00126 REGISTER_ENCODER (PGMYUV, pgmyuv);
00127 REGISTER_ENCDEC (PNG, png);
00128 REGISTER_ENCODER (PPM, ppm);
00129 REGISTER_DECODER (PTX, ptx);
00130 REGISTER_DECODER (QDRAW, qdraw);
00131 REGISTER_DECODER (QPEG, qpeg);
00132 REGISTER_ENCDEC (QTRLE, qtrle);
00133 REGISTER_ENCDEC (RAWVIDEO, rawvideo);
00134 REGISTER_DECODER (RL2, rl2);
00135 REGISTER_ENCDEC (ROQ, roq);
00136 REGISTER_DECODER (RPZA, rpza);
00137 REGISTER_ENCDEC (RV10, rv10);
00138 REGISTER_ENCDEC (RV20, rv20);
00139 REGISTER_DECODER (RV30, rv30);
00140 REGISTER_DECODER (RV40, rv40);
00141 REGISTER_ENCDEC (SGI, sgi);
00142 REGISTER_DECODER (SMACKER, smacker);
00143 REGISTER_DECODER (SMC, smc);
00144 REGISTER_ENCDEC (SNOW, snow);
00145 REGISTER_DECODER (SP5X, sp5x);
00146 REGISTER_DECODER (SUNRAST, sunrast);
00147 REGISTER_ENCDEC (SVQ1, svq1);
00148 REGISTER_DECODER (SVQ3, svq3);
00149 REGISTER_ENCDEC (TARGA, targa);
00150 REGISTER_DECODER (THEORA, theora);
00151 REGISTER_DECODER (THP, thp);
00152 REGISTER_DECODER (TIERTEXSEQVIDEO, tiertexseqvideo);
00153 REGISTER_ENCDEC (TIFF, tiff);
00154 REGISTER_DECODER (TRUEMOTION1, truemotion1);
00155 REGISTER_DECODER (TRUEMOTION2, truemotion2);
00156 REGISTER_DECODER (TSCC, tscc);
00157 REGISTER_DECODER (TXD, txd);
00158 REGISTER_DECODER (ULTI, ulti);
00159 REGISTER_DECODER (VB, vb);
00160 REGISTER_DECODER (VC1, vc1);
00161 REGISTER_DECODER (VC1_VDPAU, vc1_vdpau);
00162 REGISTER_DECODER (VCR1, vcr1);
00163 REGISTER_DECODER (VMDVIDEO, vmdvideo);
00164 REGISTER_DECODER (VMNC, vmnc);
00165 REGISTER_DECODER (VP3, vp3);
00166 REGISTER_DECODER (VP5, vp5);
00167 REGISTER_DECODER (VP6, vp6);
00168 REGISTER_DECODER (VP6A, vp6a);
00169 REGISTER_DECODER (VP6F, vp6f);
00170 REGISTER_DECODER (VQA, vqa);
00171 REGISTER_ENCDEC (WMV1, wmv1);
00172 REGISTER_ENCDEC (WMV2, wmv2);
00173 REGISTER_DECODER (WMV3, wmv3);
00174 REGISTER_DECODER (WMV3_VDPAU, wmv3_vdpau);
00175 REGISTER_DECODER (WNV1, wnv1);
00176 REGISTER_DECODER (XAN_WC3, xan_wc3);
00177 REGISTER_DECODER (XL, xl);
00178 REGISTER_ENCDEC (ZLIB, zlib);
00179 REGISTER_ENCDEC (ZMBV, zmbv);
00180
00181
00182 REGISTER_DECODER (AAC, aac);
00183 REGISTER_ENCDEC (AC3, ac3);
00184 REGISTER_ENCDEC (ALAC, alac);
00185 REGISTER_DECODER (APE, ape);
00186 REGISTER_DECODER (ATRAC3, atrac3);
00187 REGISTER_DECODER (COOK, cook);
00188 REGISTER_DECODER (DCA, dca);
00189 REGISTER_DECODER (DSICINAUDIO, dsicinaudio);
00190 REGISTER_DECODER (EAC3, eac3);
00191 REGISTER_ENCDEC (FLAC, flac);
00192 REGISTER_DECODER (IMC, imc);
00193 REGISTER_DECODER (MACE3, mace3);
00194 REGISTER_DECODER (MACE6, mace6);
00195 REGISTER_DECODER (MLP, mlp);
00196 REGISTER_DECODER (MP1, mp1);
00197 REGISTER_ENCDEC (MP2, mp2);
00198 REGISTER_DECODER (MP3, mp3);
00199 REGISTER_DECODER (MP3ADU, mp3adu);
00200 REGISTER_DECODER (MP3ON4, mp3on4);
00201 REGISTER_DECODER (MPC7, mpc7);
00202 REGISTER_DECODER (MPC8, mpc8);
00203 REGISTER_ENCDEC (NELLYMOSER, nellymoser);
00204 REGISTER_DECODER (QCELP, qcelp);
00205 REGISTER_DECODER (QDM2, qdm2);
00206 REGISTER_DECODER (RA_144, ra_144);
00207 REGISTER_DECODER (RA_288, ra_288);
00208 REGISTER_DECODER (SHORTEN, shorten);
00209 REGISTER_DECODER (SMACKAUD, smackaud);
00210 REGISTER_ENCDEC (SONIC, sonic);
00211 REGISTER_ENCODER (SONIC_LS, sonic_ls);
00212 REGISTER_DECODER (TRUESPEECH, truespeech);
00213 REGISTER_DECODER (TTA, tta);
00214 REGISTER_DECODER (VMDAUDIO, vmdaudio);
00215 REGISTER_ENCDEC (VORBIS, vorbis);
00216 REGISTER_DECODER (WAVPACK, wavpack);
00217 REGISTER_ENCDEC (WMAV1, wmav1);
00218 REGISTER_ENCDEC (WMAV2, wmav2);
00219 REGISTER_DECODER (WS_SND1, ws_snd1);
00220
00221
00222 REGISTER_ENCDEC (PCM_ALAW, pcm_alaw);
00223 REGISTER_DECODER (PCM_DVD, pcm_dvd);
00224 REGISTER_ENCDEC (PCM_F32BE, pcm_f32be);
00225 REGISTER_ENCDEC (PCM_F32LE, pcm_f32le);
00226 REGISTER_ENCDEC (PCM_F64BE, pcm_f64be);
00227 REGISTER_ENCDEC (PCM_F64LE, pcm_f64le);
00228 REGISTER_ENCDEC (PCM_MULAW, pcm_mulaw);
00229 REGISTER_ENCDEC (PCM_S8, pcm_s8);
00230 REGISTER_ENCDEC (PCM_S16BE, pcm_s16be);
00231 REGISTER_ENCDEC (PCM_S16LE, pcm_s16le);
00232 REGISTER_DECODER (PCM_S16LE_PLANAR, pcm_s16le_planar);
00233 REGISTER_ENCDEC (PCM_S24BE, pcm_s24be);
00234 REGISTER_ENCDEC (PCM_S24DAUD, pcm_s24daud);
00235 REGISTER_ENCDEC (PCM_S24LE, pcm_s24le);
00236 REGISTER_ENCDEC (PCM_S32BE, pcm_s32be);
00237 REGISTER_ENCDEC (PCM_S32LE, pcm_s32le);
00238 REGISTER_ENCDEC (PCM_U8, pcm_u8);
00239 REGISTER_ENCDEC (PCM_U16BE, pcm_u16be);
00240 REGISTER_ENCDEC (PCM_U16LE, pcm_u16le);
00241 REGISTER_ENCDEC (PCM_U24BE, pcm_u24be);
00242 REGISTER_ENCDEC (PCM_U24LE, pcm_u24le);
00243 REGISTER_ENCDEC (PCM_U32BE, pcm_u32be);
00244 REGISTER_ENCDEC (PCM_U32LE, pcm_u32le);
00245 REGISTER_ENCDEC (PCM_ZORK , pcm_zork);
00246
00247
00248 REGISTER_DECODER (INTERPLAY_DPCM, interplay_dpcm);
00249 REGISTER_ENCDEC (ROQ_DPCM, roq_dpcm);
00250 REGISTER_DECODER (SOL_DPCM, sol_dpcm);
00251 REGISTER_DECODER (XAN_DPCM, xan_dpcm);
00252
00253
00254 REGISTER_DECODER (ADPCM_4XM, adpcm_4xm);
00255 REGISTER_ENCDEC (ADPCM_ADX, adpcm_adx);
00256 REGISTER_DECODER (ADPCM_CT, adpcm_ct);
00257 REGISTER_DECODER (ADPCM_EA, adpcm_ea);
00258 REGISTER_DECODER (ADPCM_EA_MAXIS_XA, adpcm_ea_maxis_xa);
00259 REGISTER_DECODER (ADPCM_EA_R1, adpcm_ea_r1);
00260 REGISTER_DECODER (ADPCM_EA_R2, adpcm_ea_r2);
00261 REGISTER_DECODER (ADPCM_EA_R3, adpcm_ea_r3);
00262 REGISTER_DECODER (ADPCM_EA_XAS, adpcm_ea_xas);
00263 REGISTER_ENCDEC (ADPCM_G726, adpcm_g726);
00264 REGISTER_DECODER (ADPCM_IMA_AMV, adpcm_ima_amv);
00265 REGISTER_DECODER (ADPCM_IMA_DK3, adpcm_ima_dk3);
00266 REGISTER_DECODER (ADPCM_IMA_DK4, adpcm_ima_dk4);
00267 REGISTER_DECODER (ADPCM_IMA_EA_EACS, adpcm_ima_ea_eacs);
00268 REGISTER_DECODER (ADPCM_IMA_EA_SEAD, adpcm_ima_ea_sead);
00269 REGISTER_DECODER (ADPCM_IMA_ISS, adpcm_ima_iss);
00270 REGISTER_ENCDEC (ADPCM_IMA_QT, adpcm_ima_qt);
00271 REGISTER_DECODER (ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
00272 REGISTER_ENCDEC (ADPCM_IMA_WAV, adpcm_ima_wav);
00273 REGISTER_DECODER (ADPCM_IMA_WS, adpcm_ima_ws);
00274 REGISTER_ENCDEC (ADPCM_MS, adpcm_ms);
00275 REGISTER_DECODER (ADPCM_SBPRO_2, adpcm_sbpro_2);
00276 REGISTER_DECODER (ADPCM_SBPRO_3, adpcm_sbpro_3);
00277 REGISTER_DECODER (ADPCM_SBPRO_4, adpcm_sbpro_4);
00278 REGISTER_ENCDEC (ADPCM_SWF, adpcm_swf);
00279 REGISTER_DECODER (ADPCM_THP, adpcm_thp);
00280 REGISTER_DECODER (ADPCM_XA, adpcm_xa);
00281 REGISTER_ENCDEC (ADPCM_YAMAHA, adpcm_yamaha);
00282
00283
00284 REGISTER_ENCDEC (DVBSUB, dvbsub);
00285 REGISTER_ENCDEC (DVDSUB, dvdsub);
00286 REGISTER_DECODER (XSUB, xsub);
00287
00288
00289 REGISTER_ENCDEC (LIBAMR_NB, libamr_nb);
00290 REGISTER_ENCDEC (LIBAMR_WB, libamr_wb);
00291 REGISTER_ENCDEC (LIBDIRAC, libdirac);
00292 REGISTER_ENCODER (LIBFAAC, libfaac);
00293 REGISTER_DECODER (LIBFAAD, libfaad);
00294 REGISTER_ENCDEC (LIBGSM, libgsm);
00295 REGISTER_ENCDEC (LIBGSM_MS, libgsm_ms);
00296 REGISTER_ENCODER (LIBMP3LAME, libmp3lame);
00297 REGISTER_ENCDEC (LIBOPENCORE_AMRNB, libopencore_amrnb);
00298 REGISTER_DECODER (LIBOPENCORE_AMRWB, libopencore_amrwb);
00299 REGISTER_DECODER (LIBOPENJPEG, libopenjpeg);
00300 REGISTER_ENCDEC (LIBSCHROEDINGER, libschroedinger);
00301 REGISTER_DECODER (LIBSPEEX, libspeex);
00302 REGISTER_ENCODER (LIBTHEORA, libtheora);
00303 REGISTER_ENCODER (LIBVORBIS, libvorbis);
00304 REGISTER_ENCODER (LIBX264, libx264);
00305 REGISTER_ENCODER (LIBXVID, libxvid);
00306
00307
00308 REGISTER_PARSER (AAC, aac);
00309 REGISTER_PARSER (AC3, ac3);
00310 REGISTER_PARSER (CAVSVIDEO, cavsvideo);
00311 REGISTER_PARSER (DCA, dca);
00312 REGISTER_PARSER (DIRAC, dirac);
00313 REGISTER_PARSER (DNXHD, dnxhd);
00314 REGISTER_PARSER (DVBSUB, dvbsub);
00315 REGISTER_PARSER (DVDSUB, dvdsub);
00316 REGISTER_PARSER (H261, h261);
00317 REGISTER_PARSER (H263, h263);
00318 REGISTER_PARSER (H264, h264);
00319 REGISTER_PARSER (MJPEG, mjpeg);
00320 REGISTER_PARSER (MLP, mlp);
00321 REGISTER_PARSER (MPEG4VIDEO, mpeg4video);
00322 REGISTER_PARSER (MPEGAUDIO, mpegaudio);
00323 REGISTER_PARSER (MPEGVIDEO, mpegvideo);
00324 REGISTER_PARSER (PNM, pnm);
00325 REGISTER_PARSER (VC1, vc1);
00326 REGISTER_PARSER (VP3, vp3);
00327
00328
00329 REGISTER_BSF (DUMP_EXTRADATA, dump_extradata);
00330 REGISTER_BSF (H264_MP4TOANNEXB, h264_mp4toannexb);
00331 REGISTER_BSF (IMX_DUMP_HEADER, imx_dump_header);
00332 REGISTER_BSF (MJPEGA_DUMP_HEADER, mjpega_dump_header);
00333 REGISTER_BSF (MP3_HEADER_COMPRESS, mp3_header_compress);
00334 REGISTER_BSF (MP3_HEADER_DECOMPRESS, mp3_header_decompress);
00335 REGISTER_BSF (MOV2TEXTSUB, mov2textsub);
00336 REGISTER_BSF (NOISE, noise);
00337 REGISTER_BSF (REMOVE_EXTRADATA, remove_extradata);
00338 REGISTER_BSF (TEXT2MOVSUB, text2movsub);
00339 }
00340