TrueSpeech compatible audio decoder by Konstantin Shishkov
[ffmpeg.git] / libavcodec / allcodecs.c
1 /*
2  * Utils for libavcodec
3  * Copyright (c) 2002 Fabrice Bellard.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 /**
21  * @file allcodecs.c
22  * Utils for libavcodec.
23  */
24
25 #include "avcodec.h"
26
27 /* If you do not call this function, then you can select exactly which
28    formats you want to support */
29
30 /**
31  * simple call to register all the codecs.
32  */
33 void avcodec_register_all(void)
34 {
35     static int inited = 0;
36
37     if (inited != 0)
38         return;
39     inited = 1;
40
41     /* encoders */
42 #ifdef CONFIG_ENCODERS
43 #ifdef CONFIG_AC3_ENCODER
44     register_avcodec(&ac3_encoder);
45 #endif //CONFIG_AC3_ENCODER
46 #ifdef CONFIG_MP2_ENCODER
47     register_avcodec(&mp2_encoder);
48 #endif //CONFIG_MP2_ENCODER
49 #ifdef CONFIG_MP3LAME
50 #ifdef CONFIG_MP3LAME_ENCODER
51     register_avcodec(&mp3lame_encoder);
52 #endif //CONFIG_MP3LAME_ENCODER
53 #endif
54 #ifdef CONFIG_LIBVORBIS
55 #ifdef CONFIG_OGGVORBIS_ENCODER
56     register_avcodec(&oggvorbis_encoder);
57 #endif //CONFIG_OGGVORBIS_ENCODER
58 #if (defined CONFIG_OGGVORBIS_DECODER && !defined CONFIG_VORBIS_DECODER)
59     register_avcodec(&oggvorbis_decoder);
60 #endif //CONFIG_OGGVORBIS_DECODER
61 #endif
62 #ifdef CONFIG_LIBTHEORA
63 #ifdef CONFIG_OGGTHEORA_ENCODER
64 //    register_avcodec(&oggtheora_encoder);
65 #endif //CONFIG_OGGTHEORA_ENCODER
66 #ifdef CONFIG_OGGTHEORA_DECODER
67     register_avcodec(&oggtheora_decoder);
68 #endif //CONFIG_OGGTHEORA_DECODER
69 #endif
70 #ifdef CONFIG_FAAC
71 #ifdef CONFIG_FAAC_ENCODER
72     register_avcodec(&faac_encoder);
73 #endif //CONFIG_FAAC_ENCODER
74 #endif
75 #ifdef CONFIG_XVID
76 #ifdef CONFIG_XVID_ENCODER
77     register_avcodec(&xvid_encoder);
78 #endif //CONFIG_XVID_ENCODER
79 #endif
80 #ifdef CONFIG_MPEG1VIDEO_ENCODER
81     register_avcodec(&mpeg1video_encoder);
82 #endif //CONFIG_MPEG1VIDEO_ENCODER
83 #ifdef CONFIG_H264_ENCODER
84 //    register_avcodec(&h264_encoder);
85 #endif //CONFIG_H264_ENCODER
86 #ifdef CONFIG_MPEG2VIDEO_ENCODER
87     register_avcodec(&mpeg2video_encoder);
88 #endif //CONFIG_MPEG2VIDEO_ENCODER
89 #ifdef CONFIG_H261_ENCODER
90     register_avcodec(&h261_encoder);
91 #endif //CONFIG_H261_ENCODER
92 #ifdef CONFIG_H263_ENCODER
93     register_avcodec(&h263_encoder);
94 #endif //CONFIG_H263_ENCODER
95 #ifdef CONFIG_H263P_ENCODER
96     register_avcodec(&h263p_encoder);
97 #endif //CONFIG_H263P_ENCODER
98 #ifdef CONFIG_FLV_ENCODER
99     register_avcodec(&flv_encoder);
100 #endif //CONFIG_FLV_ENCODER
101 #ifdef CONFIG_RV10_ENCODER
102     register_avcodec(&rv10_encoder);
103 #endif //CONFIG_RV10_ENCODER
104 #ifdef CONFIG_RV20_ENCODER
105     register_avcodec(&rv20_encoder);
106 #endif //CONFIG_RV20_ENCODER
107 #ifdef CONFIG_MPEG4_ENCODER
108     register_avcodec(&mpeg4_encoder);
109 #endif //CONFIG_MPEG4_ENCODER
110 #ifdef CONFIG_MSMPEG4V1_ENCODER
111     register_avcodec(&msmpeg4v1_encoder);
112 #endif //CONFIG_MSMPEG4V1_ENCODER
113 #ifdef CONFIG_MSMPEG4V2_ENCODER
114     register_avcodec(&msmpeg4v2_encoder);
115 #endif //CONFIG_MSMPEG4V2_ENCODER
116 #ifdef CONFIG_MSMPEG4V3_ENCODER
117     register_avcodec(&msmpeg4v3_encoder);
118 #endif //CONFIG_MSMPEG4V3_ENCODER
119 #ifdef CONFIG_WMV1_ENCODER
120     register_avcodec(&wmv1_encoder);
121 #endif //CONFIG_WMV1_ENCODER
122 #ifdef CONFIG_WMV2_ENCODER
123     register_avcodec(&wmv2_encoder);
124 #endif //CONFIG_WMV2_ENCODER
125 #ifdef CONFIG_SVQ1_ENCODER
126     register_avcodec(&svq1_encoder);
127 #endif //CONFIG_SVQ1_ENCODER
128 #ifdef CONFIG_MJPEG_ENCODER
129     register_avcodec(&mjpeg_encoder);
130 #endif //CONFIG_MJPEG_ENCODER
131 #ifdef CONFIG_LJPEG_ENCODER
132     register_avcodec(&ljpeg_encoder);
133 #endif //CONFIG_LJPEG_ENCODER
134 #ifdef CONFIG_JPEGLS_ENCODER
135     register_avcodec(&jpegls_encoder);
136 #endif //CONFIG_JPEGLS_ENCODER
137 #ifdef CONFIG_ZLIB
138 #ifdef CONFIG_PNG_ENCODER
139     register_avcodec(&png_encoder);
140 #endif //CONFIG_PNG_ENCODER
141 #endif
142 #ifdef CONFIG_PPM_ENCODER
143     register_avcodec(&ppm_encoder);
144 #endif //CONFIG_PPM_ENCODER
145 #ifdef CONFIG_PGM_ENCODER
146     register_avcodec(&pgm_encoder);
147 #endif //CONFIG_PGM_ENCODER
148 #ifdef CONFIG_PGMYUV_ENCODER
149     register_avcodec(&pgmyuv_encoder);
150 #endif //CONFIG_PGMYUV_ENCODER
151 #ifdef CONFIG_PBM_ENCODER
152     register_avcodec(&pbm_encoder);
153 #endif //CONFIG_PBM_ENCODER
154 #ifdef CONFIG_PAM_ENCODER
155     register_avcodec(&pam_encoder);
156 #endif //CONFIG_PAM_ENCODER
157 #ifdef CONFIG_HUFFYUV_ENCODER
158     register_avcodec(&huffyuv_encoder);
159 #endif //CONFIG_HUFFYUV_ENCODER
160 #ifdef CONFIG_FFVHUFF_ENCODER
161     register_avcodec(&ffvhuff_encoder);
162 #endif //CONFIG_FFVHUFF_ENCODER
163 #ifdef CONFIG_ASV1_ENCODER
164     register_avcodec(&asv1_encoder);
165 #endif //CONFIG_ASV1_ENCODER
166 #ifdef CONFIG_ASV2_ENCODER
167     register_avcodec(&asv2_encoder);
168 #endif //CONFIG_ASV2_ENCODER
169 #ifdef CONFIG_FFV1_ENCODER
170     register_avcodec(&ffv1_encoder);
171 #endif //CONFIG_FFV1_ENCODER
172 #ifdef CONFIG_SNOW_ENCODER
173     register_avcodec(&snow_encoder);
174 #endif //CONFIG_SNOW_ENCODER
175 #ifdef CONFIG_ZLIB_ENCODER
176     register_avcodec(&zlib_encoder);
177 #endif //CONFIG_ZLIB_ENCODER
178 #ifdef CONFIG_DVVIDEO_ENCODER
179     register_avcodec(&dvvideo_encoder);
180 #endif //CONFIG_DVVIDEO_ENCODER
181 #ifdef CONFIG_SONIC_ENCODER
182     register_avcodec(&sonic_encoder);
183 #endif //CONFIG_SONIC_ENCODER
184 #ifdef CONFIG_SONIC_LS_ENCODER
185     register_avcodec(&sonic_ls_encoder);
186 #endif //CONFIG_SONIC_LS_ENCODER
187 #ifdef CONFIG_X264
188 #ifdef CONFIG_X264_ENCODER
189     register_avcodec(&x264_encoder);
190 #endif //CONFIG_X264_ENCODER
191 #endif
192 #ifdef CONFIG_LIBGSM
193     register_avcodec(&libgsm_encoder);
194 #endif //CONFIG_LIBGSM
195 #ifdef CONFIG_RAWVIDEO_ENCODER
196     register_avcodec(&rawvideo_encoder);
197 #endif //CONFIG_RAWVIDEO_ENCODER
198 #endif /* CONFIG_ENCODERS */
199
200     /* decoders */
201 #ifdef CONFIG_DECODERS
202 #ifdef CONFIG_H263_DECODER
203     register_avcodec(&h263_decoder);
204 #endif //CONFIG_H263_DECODER
205 #ifdef CONFIG_H261_DECODER
206     register_avcodec(&h261_decoder);
207 #endif //CONFIG_H261_DECODER
208 #ifdef CONFIG_MPEG4_DECODER
209     register_avcodec(&mpeg4_decoder);
210 #endif //CONFIG_MPEG4_DECODER
211 #ifdef CONFIG_MSMPEG4V1_DECODER
212     register_avcodec(&msmpeg4v1_decoder);
213 #endif //CONFIG_MSMPEG4V1_DECODER
214 #ifdef CONFIG_MSMPEG4V2_DECODER
215     register_avcodec(&msmpeg4v2_decoder);
216 #endif //CONFIG_MSMPEG4V2_DECODER
217 #ifdef CONFIG_MSMPEG4V3_DECODER
218     register_avcodec(&msmpeg4v3_decoder);
219 #endif //CONFIG_MSMPEG4V3_DECODER
220 #ifdef CONFIG_WMV1_DECODER
221     register_avcodec(&wmv1_decoder);
222 #endif //CONFIG_WMV1_DECODER
223 #ifdef CONFIG_WMV2_DECODER
224     register_avcodec(&wmv2_decoder);
225 #endif //CONFIG_WMV2_DECODER
226 #ifdef CONFIG_VC9_DECODER
227     register_avcodec(&vc9_decoder);
228 #endif //CONFIG_VC9_DECODER
229 #ifdef CONFIG_WMV3_DECODER
230     register_avcodec(&wmv3_decoder);
231 #endif //CONFIG_WMV3_DECODER
232 #ifdef CONFIG_H263I_DECODER
233     register_avcodec(&h263i_decoder);
234 #endif //CONFIG_H263I_DECODER
235 #ifdef CONFIG_FLV_DECODER
236     register_avcodec(&flv_decoder);
237 #endif //CONFIG_FLV_DECODER
238 #ifdef CONFIG_RV10_DECODER
239     register_avcodec(&rv10_decoder);
240 #endif //CONFIG_RV10_DECODER
241 #ifdef CONFIG_RV20_DECODER
242     register_avcodec(&rv20_decoder);
243 #endif //CONFIG_RV20_DECODER
244 #ifdef CONFIG_SVQ1_DECODER
245     register_avcodec(&svq1_decoder);
246 #endif //CONFIG_SVQ1_DECODER
247 #ifdef CONFIG_SVQ3_DECODER
248     register_avcodec(&svq3_decoder);
249 #endif //CONFIG_SVQ3_DECODER
250 #ifdef CONFIG_WMAV1_DECODER
251     register_avcodec(&wmav1_decoder);
252 #endif //CONFIG_WMAV1_DECODER
253 #ifdef CONFIG_WMAV2_DECODER
254     register_avcodec(&wmav2_decoder);
255 #endif //CONFIG_WMAV2_DECODER
256 #ifdef CONFIG_INDEO2_DECODER
257     register_avcodec(&indeo2_decoder);
258 #endif //CONFIG_INDEO2_DECODER
259 #ifdef CONFIG_INDEO3_DECODER
260     register_avcodec(&indeo3_decoder);
261 #endif //CONFIG_INDEO3_DECODER
262 #ifdef CONFIG_TSCC_DECODER
263     register_avcodec(&tscc_decoder);
264 #endif //CONFIG_TSCC_DECODER
265 #ifdef CONFIG_ULTI_DECODER
266     register_avcodec(&ulti_decoder);
267 #endif //CONFIG_ULTI_DECODER
268 #ifdef CONFIG_QDRAW_DECODER
269     register_avcodec(&qdraw_decoder);
270 #endif //CONFIG_QDRAW_DECODER
271 #ifdef CONFIG_XL_DECODER
272     register_avcodec(&xl_decoder);
273 #endif //CONFIG_XL_DECODER
274 #ifdef CONFIG_QPEG_DECODER
275     register_avcodec(&qpeg_decoder);
276 #endif //CONFIG_QPEG_DECODER
277 #ifdef CONFIG_LOCO_DECODER
278     register_avcodec(&loco_decoder);
279 #endif //CONFIG_LOCO_DECODER
280 #ifdef CONFIG_WNV1_DECODER
281     register_avcodec(&wnv1_decoder);
282 #endif //CONFIG_WNV1_DECODER
283 #ifdef CONFIG_AASC_DECODER
284     register_avcodec(&aasc_decoder);
285 #endif //CONFIG_AASC_DECODER
286 #ifdef CONFIG_FRAPS_DECODER
287     register_avcodec(&fraps_decoder);
288 #endif //CONFIG_FRAPS_DECODER
289 #ifdef CONFIG_FAAD
290 #ifdef CONFIG_AAC_DECODER
291     register_avcodec(&aac_decoder);
292 #endif //CONFIG_AAC_DECODER
293 #ifdef CONFIG_MPEG4AAC_DECODER
294     register_avcodec(&mpeg4aac_decoder);
295 #endif //CONFIG_MPEG4AAC_DECODER
296 #endif
297 #ifdef CONFIG_MPEG1VIDEO_DECODER
298     register_avcodec(&mpeg1video_decoder);
299 #endif //CONFIG_MPEG1VIDEO_DECODER
300 #ifdef CONFIG_MPEG2VIDEO_DECODER
301     register_avcodec(&mpeg2video_decoder);
302 #endif //CONFIG_MPEG2VIDEO_DECODER
303 #ifdef CONFIG_MPEGVIDEO_DECODER
304     register_avcodec(&mpegvideo_decoder);
305 #endif //CONFIG_MPEGVIDEO_DECODER
306 #ifdef HAVE_XVMC
307 #ifdef CONFIG_MPEG_XVMC_DECODER
308     register_avcodec(&mpeg_xvmc_decoder);
309 #endif //CONFIG_MPEG_XVMC_DECODER
310 #endif
311 #ifdef CONFIG_DVVIDEO_DECODER
312     register_avcodec(&dvvideo_decoder);
313 #endif //CONFIG_DVVIDEO_DECODER
314 #ifdef CONFIG_MJPEG_DECODER
315     register_avcodec(&mjpeg_decoder);
316 #endif //CONFIG_MJPEG_DECODER
317 #ifdef CONFIG_MJPEGB_DECODER
318     register_avcodec(&mjpegb_decoder);
319 #endif //CONFIG_MJPEGB_DECODER
320 #ifdef CONFIG_SP5X_DECODER
321     register_avcodec(&sp5x_decoder);
322 #endif //CONFIG_SP5X_DECODER
323 #ifdef CONFIG_ZLIB
324 #ifdef CONFIG_PNG_DECODER
325     register_avcodec(&png_decoder);
326 #endif //CONFIG_PNG_DECODER
327 #endif
328 #ifdef CONFIG_MP2_DECODER
329     register_avcodec(&mp2_decoder);
330 #endif //CONFIG_MP2_DECODER
331 #ifdef CONFIG_MP3_DECODER
332     register_avcodec(&mp3_decoder);
333 #endif //CONFIG_MP3_DECODER
334 #ifdef CONFIG_MP3ADU_DECODER
335     register_avcodec(&mp3adu_decoder);
336 #endif //CONFIG_MP3ADU_DECODER
337 #ifdef CONFIG_MP3ON4_DECODER
338     register_avcodec(&mp3on4_decoder);
339 #endif //CONFIG_MP3ON4_DECODER
340 #ifdef CONFIG_MACE3_DECODER
341     register_avcodec(&mace3_decoder);
342 #endif //CONFIG_MACE3_DECODER
343 #ifdef CONFIG_MACE6_DECODER
344     register_avcodec(&mace6_decoder);
345 #endif //CONFIG_MACE6_DECODER
346 #ifdef CONFIG_HUFFYUV_DECODER
347     register_avcodec(&huffyuv_decoder);
348 #endif //CONFIG_HUFFYUV_DECODER
349 #ifdef CONFIG_FFVHUFF_DECODER
350     register_avcodec(&ffvhuff_decoder);
351 #endif //CONFIG_FFVHUFF_DECODER
352 #ifdef CONFIG_FFV1_DECODER
353     register_avcodec(&ffv1_decoder);
354 #endif //CONFIG_FFV1_DECODER
355 #ifdef CONFIG_SNOW_DECODER
356     register_avcodec(&snow_decoder);
357 #endif //CONFIG_SNOW_DECODER
358 #ifdef CONFIG_CYUV_DECODER
359     register_avcodec(&cyuv_decoder);
360 #endif //CONFIG_CYUV_DECODER
361 #ifdef CONFIG_H264_DECODER
362     register_avcodec(&h264_decoder);
363 #endif //CONFIG_H264_DECODER
364 #ifdef CONFIG_VP3_DECODER
365     register_avcodec(&vp3_decoder);
366 #endif //CONFIG_VP3_DECODER
367 #if (defined CONFIG_THEORA_DECODER && !defined CONFIG_LIBTHEORA)
368     register_avcodec(&theora_decoder);
369 #endif //CONFIG_THEORA_DECODER
370 #ifdef CONFIG_ASV1_DECODER
371     register_avcodec(&asv1_decoder);
372 #endif //CONFIG_ASV1_DECODER
373 #ifdef CONFIG_ASV2_DECODER
374     register_avcodec(&asv2_decoder);
375 #endif //CONFIG_ASV2_DECODER
376 #ifdef CONFIG_VCR1_DECODER
377     register_avcodec(&vcr1_decoder);
378 #endif //CONFIG_VCR1_DECODER
379 #ifdef CONFIG_CLJR_DECODER
380     register_avcodec(&cljr_decoder);
381 #endif //CONFIG_CLJR_DECODER
382 #ifdef CONFIG_FOURXM_DECODER
383     register_avcodec(&fourxm_decoder);
384 #endif //CONFIG_FOURXM_DECODER
385 #ifdef CONFIG_MDEC_DECODER
386     register_avcodec(&mdec_decoder);
387 #endif //CONFIG_MDEC_DECODER
388 #ifdef CONFIG_ROQ_DECODER
389     register_avcodec(&roq_decoder);
390 #endif //CONFIG_ROQ_DECODER
391 #ifdef CONFIG_INTERPLAY_VIDEO_DECODER
392     register_avcodec(&interplay_video_decoder);
393 #endif //CONFIG_INTERPLAY_VIDEO_DECODER
394 #ifdef CONFIG_XAN_WC3_DECODER
395     register_avcodec(&xan_wc3_decoder);
396 #endif //CONFIG_XAN_WC3_DECODER
397 #ifdef CONFIG_RPZA_DECODER
398     register_avcodec(&rpza_decoder);
399 #endif //CONFIG_RPZA_DECODER
400 #ifdef CONFIG_CINEPAK_DECODER
401     register_avcodec(&cinepak_decoder);
402 #endif //CONFIG_CINEPAK_DECODER
403 #ifdef CONFIG_MSRLE_DECODER
404     register_avcodec(&msrle_decoder);
405 #endif //CONFIG_MSRLE_DECODER
406 #ifdef CONFIG_MSVIDEO1_DECODER
407     register_avcodec(&msvideo1_decoder);
408 #endif //CONFIG_MSVIDEO1_DECODER
409 #ifdef CONFIG_VQA_DECODER
410     register_avcodec(&vqa_decoder);
411 #endif //CONFIG_VQA_DECODER
412 #ifdef CONFIG_IDCIN_DECODER
413     register_avcodec(&idcin_decoder);
414 #endif //CONFIG_IDCIN_DECODER
415 #ifdef CONFIG_EIGHTBPS_DECODER
416     register_avcodec(&eightbps_decoder);
417 #endif //CONFIG_EIGHTBPS_DECODER
418 #ifdef CONFIG_SMC_DECODER
419     register_avcodec(&smc_decoder);
420 #endif //CONFIG_SMC_DECODER
421 #ifdef CONFIG_FLIC_DECODER
422     register_avcodec(&flic_decoder);
423 #endif //CONFIG_FLIC_DECODER
424 #ifdef CONFIG_TRUEMOTION1_DECODER
425     register_avcodec(&truemotion1_decoder);
426 #endif //CONFIG_TRUEMOTION1_DECODER
427 #ifdef CONFIG_TRUEMOTION2_DECODER
428     register_avcodec(&truemotion2_decoder);
429 #endif //CONFIG_TRUEMOTION2_DECODER
430 #ifdef CONFIG_VMDVIDEO_DECODER
431     register_avcodec(&vmdvideo_decoder);
432 #endif //CONFIG_VMDVIDEO_DECODER
433 #ifdef CONFIG_VMDAUDIO_DECODER
434     register_avcodec(&vmdaudio_decoder);
435 #endif //CONFIG_VMDAUDIO_DECODER
436 #ifdef CONFIG_MSZH_DECODER
437     register_avcodec(&mszh_decoder);
438 #endif //CONFIG_MSZH_DECODER
439 #ifdef CONFIG_ZLIB_DECODER
440     register_avcodec(&zlib_decoder);
441 #endif //CONFIG_ZLIB_DECODER
442 #ifdef CONFIG_SONIC_DECODER
443     register_avcodec(&sonic_decoder);
444 #endif //CONFIG_SONIC_DECODER
445 #ifdef CONFIG_AC3
446 #ifdef CONFIG_AC3_DECODER
447     register_avcodec(&ac3_decoder);
448 #endif //CONFIG_AC3_DECODER
449 #endif
450 #ifdef CONFIG_DTS
451 #ifdef CONFIG_DTS_DECODER
452     register_avcodec(&dts_decoder);
453 #endif //CONFIG_DTS_DECODER
454 #endif
455 #ifdef CONFIG_RA_144_DECODER
456     register_avcodec(&ra_144_decoder);
457 #endif //CONFIG_RA_144_DECODER
458 #ifdef CONFIG_RA_288_DECODER
459     register_avcodec(&ra_288_decoder);
460 #endif //CONFIG_RA_288_DECODER
461 #ifdef CONFIG_ROQ_DPCM_DECODER
462     register_avcodec(&roq_dpcm_decoder);
463 #endif //CONFIG_ROQ_DPCM_DECODER
464 #ifdef CONFIG_INTERPLAY_DPCM_DECODER
465     register_avcodec(&interplay_dpcm_decoder);
466 #endif //CONFIG_INTERPLAY_DPCM_DECODER
467 #ifdef CONFIG_XAN_DPCM_DECODER
468     register_avcodec(&xan_dpcm_decoder);
469 #endif //CONFIG_XAN_DPCM_DECODER
470 #ifdef CONFIG_SOL_DPCM_DECODER
471     register_avcodec(&sol_dpcm_decoder);
472 #endif //CONFIG_SOL_DPCM_DECODER
473 #ifdef CONFIG_QTRLE_DECODER
474     register_avcodec(&qtrle_decoder);
475 #endif //CONFIG_QTRLE_DECODER
476 #ifdef CONFIG_FLAC_DECODER
477     register_avcodec(&flac_decoder);
478 #endif //CONFIG_FLAC_DECODER
479 #ifdef CONFIG_SHORTEN_DECODER
480     register_avcodec(&shorten_decoder);
481 #endif //CONFIG_SHORTEN_DECODER
482 #ifdef CONFIG_ALAC_DECODER
483     register_avcodec(&alac_decoder);
484 #endif //CONFIG_ALAC_DECODER
485 #ifdef CONFIG_WS_SND1_DECODER
486     register_avcodec(&ws_snd1_decoder);
487 #endif //CONFIG_WS_SND1_DECODER
488 #ifdef CONFIG_VORBIS_DECODER
489     register_avcodec(&vorbis_decoder);
490 #endif
491 #ifdef CONFIG_LIBGSM
492     register_avcodec(&libgsm_decoder);
493 #endif //CONFIG_LIBGSM
494 #ifdef CONFIG_QDM2_DECODER
495     register_avcodec(&qdm2_decoder);
496 #endif //CONFIG_QDM2_DECODER
497 #ifdef CONFIG_COOK_DECODER
498     register_avcodec(&cook_decoder);
499 #endif //CONFIG_COOK_DECODER
500 #ifdef CONFIG_TRUESPEECH_DECODER
501     register_avcodec(&truespeech_decoder);
502 #endif //CONFIG_TRUESPEECH_DECODER
503 #ifdef CONFIG_RAWVIDEO_DECODER
504     register_avcodec(&rawvideo_decoder);
505 #endif //CONFIG_RAWVIDEO_DECODER
506 #endif /* CONFIG_DECODERS */
507
508 #ifdef AMR_NB
509 #ifdef CONFIG_AMR_NB_DECODER
510     register_avcodec(&amr_nb_decoder);
511 #endif //CONFIG_AMR_NB_DECODER
512 #ifdef CONFIG_ENCODERS
513 #ifdef CONFIG_AMR_NB_ENCODER
514     register_avcodec(&amr_nb_encoder);
515 #endif //CONFIG_AMR_NB_ENCODER
516 #endif //CONFIG_ENCODERS
517 #endif /* AMR_NB */
518
519 #ifdef AMR_WB
520 #ifdef CONFIG_AMR_WB_DECODER
521     register_avcodec(&amr_wb_decoder);
522 #endif //CONFIG_AMR_WB_DECODER
523 #ifdef CONFIG_ENCODERS
524 #ifdef CONFIG_AMR_WB_ENCODER
525     register_avcodec(&amr_wb_encoder);
526 #endif //CONFIG_AMR_WB_ENCODER
527 #endif //CONFIG_ENCODERS
528 #endif /* AMR_WB */
529
530 #ifdef CONFIG_BMP_DECODER
531     register_avcodec(&bmp_decoder);
532 #endif
533
534     /* pcm codecs */
535 #if defined (CONFIG_ENCODERS) && defined (CONFIG_DECODERS)
536     #define PCM_CODEC(id, name) \
537         register_avcodec(& name ## _encoder); \
538         register_avcodec(& name ## _decoder);
539 #elif defined (CONFIG_ENCODERS)
540     #define PCM_CODEC(id, name) \
541         register_avcodec(& name ## _encoder);
542 #elif defined (CONFIG_DECODERS)
543     #define PCM_CODEC(id, name) \
544         register_avcodec(& name ## _decoder);
545 #endif
546
547 PCM_CODEC(CODEC_ID_PCM_S32LE, pcm_s32le);
548 PCM_CODEC(CODEC_ID_PCM_S32BE, pcm_s32be);
549 PCM_CODEC(CODEC_ID_PCM_U32LE, pcm_u32le);
550 PCM_CODEC(CODEC_ID_PCM_U32BE, pcm_u32be);
551 PCM_CODEC(CODEC_ID_PCM_S24LE, pcm_s24le);
552 PCM_CODEC(CODEC_ID_PCM_S24BE, pcm_s24be);
553 PCM_CODEC(CODEC_ID_PCM_U24LE, pcm_u24le);
554 PCM_CODEC(CODEC_ID_PCM_U24BE, pcm_u24be);
555 PCM_CODEC(CODEC_ID_PCM_S24DAUD, pcm_s24daud);
556 PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
557 PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
558 PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
559 PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
560 PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
561 PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
562 PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
563 PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
564
565     /* adpcm codecs */
566 PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
567 PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
568 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3);
569 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4);
570 PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws);
571 PCM_CODEC(CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
572 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
573 PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);
574 PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa);
575 PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx);
576 PCM_CODEC(CODEC_ID_ADPCM_EA, adpcm_ea);
577 PCM_CODEC(CODEC_ID_ADPCM_G726, adpcm_g726);
578 PCM_CODEC(CODEC_ID_ADPCM_CT, adpcm_ct);
579 PCM_CODEC(CODEC_ID_ADPCM_SWF, adpcm_swf);
580 PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha);
581 #undef PCM_CODEC
582
583     /* subtitles */
584 #ifdef CONFIG_DVDSUB_DECODER
585     register_avcodec(&dvdsub_decoder);
586 #endif
587 #ifdef CONFIG_DVDSUB_ENCODER
588     register_avcodec(&dvdsub_encoder);
589 #endif
590
591 #ifdef CONFIG_DVBSUB_DECODER
592     register_avcodec(&dvbsub_decoder);
593 #endif
594 #ifdef CONFIG_DVBSUB_ENCODER
595     register_avcodec(&dvbsub_encoder);
596 #endif
597
598     /* parsers */
599     av_register_codec_parser(&mpegvideo_parser);
600     av_register_codec_parser(&mpeg4video_parser);
601 #if defined(CONFIG_H261_DECODER) || defined(CONFIG_H261_ENCODER)
602     av_register_codec_parser(&h261_parser);
603 #endif
604     av_register_codec_parser(&h263_parser);
605 #ifdef CONFIG_H264_DECODER
606     av_register_codec_parser(&h264_parser);
607 #endif
608     av_register_codec_parser(&mjpeg_parser);
609     av_register_codec_parser(&pnm_parser);
610
611     av_register_codec_parser(&mpegaudio_parser);
612 #ifdef CONFIG_AC3
613     av_register_codec_parser(&ac3_parser);
614 #endif
615
616 #ifdef CONFIG_DVDSUB_DECODER
617     av_register_codec_parser(&dvdsub_parser);
618 #endif
619 #ifdef CONFIG_DVBSUB_DECODER
620     av_register_codec_parser(&dvbsub_parser);
621 #endif
622 }
623