allcodecs.c 20.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * Utils for libavcodec
 * Copyright (c) 2002 Fabrice Bellard.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
 */
Michael Niedermayer's avatar
Michael Niedermayer committed
19 20 21 22 23 24

/**
 * @file allcodecs.c
 * Utils for libavcodec.
 */

25 26 27 28 29 30
#include "avcodec.h"

/* If you do not call this function, then you can select exactly which
   formats you want to support */

/**
31
 * simple call to register all the codecs.
32 33 34 35
 */
void avcodec_register_all(void)
{
    static int inited = 0;
36

37
    if (inited != 0)
38
        return;
39 40 41 42
    inited = 1;

    /* encoders */
#ifdef CONFIG_ENCODERS
43
#ifdef CONFIG_AC3_ENCODER
44
    register_avcodec(&ac3_encoder);
45 46
#endif //CONFIG_AC3_ENCODER
#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
Nilesh Bansal's avatar
Nilesh Bansal committed
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)
Mark Hills's avatar
Mark Hills committed
59
    register_avcodec(&oggvorbis_decoder);
60
#endif //CONFIG_OGGVORBIS_DECODER
61
#endif
Nilesh Bansal's avatar
Nilesh Bansal committed
62
#ifdef CONFIG_LIBTHEORA
63
#ifdef CONFIG_OGGTHEORA_ENCODER
64
//    register_avcodec(&oggtheora_encoder);
65 66
#endif //CONFIG_OGGTHEORA_ENCODER
#ifdef CONFIG_OGGTHEORA_DECODER
Nilesh Bansal's avatar
Nilesh Bansal committed
67
    register_avcodec(&oggtheora_decoder);
68
#endif //CONFIG_OGGTHEORA_DECODER
Nilesh Bansal's avatar
Nilesh Bansal committed
69
#endif
70
#ifdef CONFIG_FAAC
71
#ifdef CONFIG_FAAC_ENCODER
72
    register_avcodec(&faac_encoder);
73
#endif //CONFIG_FAAC_ENCODER
74
#endif
75 76 77
#ifdef CONFIG_FLAC_ENCODER
    register_avcodec(&flac_encoder);
#endif
78
#ifdef CONFIG_XVID
79
#ifdef CONFIG_XVID_ENCODER
80
    register_avcodec(&xvid_encoder);
81
#endif //CONFIG_XVID_ENCODER
82
#endif
83
#ifdef CONFIG_MPEG1VIDEO_ENCODER
84
    register_avcodec(&mpeg1video_encoder);
85 86
#endif //CONFIG_MPEG1VIDEO_ENCODER
#ifdef CONFIG_H264_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
87
//    register_avcodec(&h264_encoder);
88 89
#endif //CONFIG_H264_ENCODER
#ifdef CONFIG_MPEG2VIDEO_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
90
    register_avcodec(&mpeg2video_encoder);
91 92
#endif //CONFIG_MPEG2VIDEO_ENCODER
#ifdef CONFIG_H261_ENCODER
93
    register_avcodec(&h261_encoder);
94 95
#endif //CONFIG_H261_ENCODER
#ifdef CONFIG_H263_ENCODER
96
    register_avcodec(&h263_encoder);
97 98
#endif //CONFIG_H263_ENCODER
#ifdef CONFIG_H263P_ENCODER
99
    register_avcodec(&h263p_encoder);
100 101
#endif //CONFIG_H263P_ENCODER
#ifdef CONFIG_FLV_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
102
    register_avcodec(&flv_encoder);
103 104
#endif //CONFIG_FLV_ENCODER
#ifdef CONFIG_RV10_ENCODER
105
    register_avcodec(&rv10_encoder);
106 107
#endif //CONFIG_RV10_ENCODER
#ifdef CONFIG_RV20_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
108
    register_avcodec(&rv20_encoder);
109 110
#endif //CONFIG_RV20_ENCODER
#ifdef CONFIG_MPEG4_ENCODER
111
    register_avcodec(&mpeg4_encoder);
112 113
#endif //CONFIG_MPEG4_ENCODER
#ifdef CONFIG_MSMPEG4V1_ENCODER
114
    register_avcodec(&msmpeg4v1_encoder);
115 116
#endif //CONFIG_MSMPEG4V1_ENCODER
#ifdef CONFIG_MSMPEG4V2_ENCODER
117
    register_avcodec(&msmpeg4v2_encoder);
118 119
#endif //CONFIG_MSMPEG4V2_ENCODER
#ifdef CONFIG_MSMPEG4V3_ENCODER
120
    register_avcodec(&msmpeg4v3_encoder);
121 122
#endif //CONFIG_MSMPEG4V3_ENCODER
#ifdef CONFIG_WMV1_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
123
    register_avcodec(&wmv1_encoder);
124 125
#endif //CONFIG_WMV1_ENCODER
#ifdef CONFIG_WMV2_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
126
    register_avcodec(&wmv2_encoder);
127 128
#endif //CONFIG_WMV2_ENCODER
#ifdef CONFIG_SVQ1_ENCODER
129
    register_avcodec(&svq1_encoder);
130 131
#endif //CONFIG_SVQ1_ENCODER
#ifdef CONFIG_MJPEG_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
132
    register_avcodec(&mjpeg_encoder);
133 134
#endif //CONFIG_MJPEG_ENCODER
#ifdef CONFIG_LJPEG_ENCODER
135
    register_avcodec(&ljpeg_encoder);
136
#endif //CONFIG_LJPEG_ENCODER
137 138 139
#ifdef CONFIG_JPEGLS_ENCODER
    register_avcodec(&jpegls_encoder);
#endif //CONFIG_JPEGLS_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
140
#ifdef CONFIG_ZLIB
141
#ifdef CONFIG_PNG_ENCODER
142
    register_avcodec(&png_encoder);
143
#endif //CONFIG_PNG_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
144
#endif
145
#ifdef CONFIG_PPM_ENCODER
146
    register_avcodec(&ppm_encoder);
147 148
#endif //CONFIG_PPM_ENCODER
#ifdef CONFIG_PGM_ENCODER
149
    register_avcodec(&pgm_encoder);
150 151
#endif //CONFIG_PGM_ENCODER
#ifdef CONFIG_PGMYUV_ENCODER
152
    register_avcodec(&pgmyuv_encoder);
153 154
#endif //CONFIG_PGMYUV_ENCODER
#ifdef CONFIG_PBM_ENCODER
155
    register_avcodec(&pbm_encoder);
156 157
#endif //CONFIG_PBM_ENCODER
#ifdef CONFIG_PAM_ENCODER
158
    register_avcodec(&pam_encoder);
159 160
#endif //CONFIG_PAM_ENCODER
#ifdef CONFIG_HUFFYUV_ENCODER
Michael Niedermayer's avatar
huffyuv  
Michael Niedermayer committed
161
    register_avcodec(&huffyuv_encoder);
162 163
#endif //CONFIG_HUFFYUV_ENCODER
#ifdef CONFIG_FFVHUFF_ENCODER
Loren Merritt's avatar
Loren Merritt committed
164
    register_avcodec(&ffvhuff_encoder);
165 166
#endif //CONFIG_FFVHUFF_ENCODER
#ifdef CONFIG_ASV1_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
167
    register_avcodec(&asv1_encoder);
168 169
#endif //CONFIG_ASV1_ENCODER
#ifdef CONFIG_ASV2_ENCODER
Michael Niedermayer's avatar
Michael Niedermayer committed
170
    register_avcodec(&asv2_encoder);
171 172
#endif //CONFIG_ASV2_ENCODER
#ifdef CONFIG_FFV1_ENCODER
173
    register_avcodec(&ffv1_encoder);
174 175
#endif //CONFIG_FFV1_ENCODER
#ifdef CONFIG_SNOW_ENCODER
176
    register_avcodec(&snow_encoder);
177 178
#endif //CONFIG_SNOW_ENCODER
#ifdef CONFIG_ZLIB_ENCODER
Roberto Togni's avatar
Roberto Togni committed
179
    register_avcodec(&zlib_encoder);
180 181
#endif //CONFIG_ZLIB_ENCODER
#ifdef CONFIG_DVVIDEO_ENCODER
182
    register_avcodec(&dvvideo_encoder);
183 184
#endif //CONFIG_DVVIDEO_ENCODER
#ifdef CONFIG_SONIC_ENCODER
185
    register_avcodec(&sonic_encoder);
186 187
#endif //CONFIG_SONIC_ENCODER
#ifdef CONFIG_SONIC_LS_ENCODER
188
    register_avcodec(&sonic_ls_encoder);
189
#endif //CONFIG_SONIC_LS_ENCODER
190
#ifdef CONFIG_X264
191
#ifdef CONFIG_X264_ENCODER
192
    register_avcodec(&x264_encoder);
193
#endif //CONFIG_X264_ENCODER
194
#endif
195 196 197
#ifdef CONFIG_LIBGSM
    register_avcodec(&libgsm_encoder);
#endif //CONFIG_LIBGSM
198
#ifdef CONFIG_RAWVIDEO_ENCODER
199
    register_avcodec(&rawvideo_encoder);
200
#endif //CONFIG_RAWVIDEO_ENCODER
201
#endif /* CONFIG_ENCODERS */
202 203 204

    /* decoders */
#ifdef CONFIG_DECODERS
205
#ifdef CONFIG_H263_DECODER
206
    register_avcodec(&h263_decoder);
207 208
#endif //CONFIG_H263_DECODER
#ifdef CONFIG_H261_DECODER
209
    register_avcodec(&h261_decoder);
210 211
#endif //CONFIG_H261_DECODER
#ifdef CONFIG_MPEG4_DECODER
212
    register_avcodec(&mpeg4_decoder);
213 214
#endif //CONFIG_MPEG4_DECODER
#ifdef CONFIG_MSMPEG4V1_DECODER
215
    register_avcodec(&msmpeg4v1_decoder);
216 217
#endif //CONFIG_MSMPEG4V1_DECODER
#ifdef CONFIG_MSMPEG4V2_DECODER
218
    register_avcodec(&msmpeg4v2_decoder);
219 220
#endif //CONFIG_MSMPEG4V2_DECODER
#ifdef CONFIG_MSMPEG4V3_DECODER
221
    register_avcodec(&msmpeg4v3_decoder);
222 223
#endif //CONFIG_MSMPEG4V3_DECODER
#ifdef CONFIG_WMV1_DECODER
224
    register_avcodec(&wmv1_decoder);
225 226
#endif //CONFIG_WMV1_DECODER
#ifdef CONFIG_WMV2_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
227
    register_avcodec(&wmv2_decoder);
228
#endif //CONFIG_WMV2_DECODER
229 230 231
#ifdef CONFIG_VC1_DECODER
    register_avcodec(&vc1_decoder);
#endif //CONFIG_VC1_DECODER
232
/* Reenable when it stops crashing on every file, causing bug report spam.
233
#ifdef CONFIG_WMV3_DECODER
234
    register_avcodec(&wmv3_decoder);
235
#endif //CONFIG_WMV3_DECODER
236
*/
237
#ifdef CONFIG_H263I_DECODER
238
    register_avcodec(&h263i_decoder);
239 240
#endif //CONFIG_H263I_DECODER
#ifdef CONFIG_FLV_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
241
    register_avcodec(&flv_decoder);
242 243
#endif //CONFIG_FLV_DECODER
#ifdef CONFIG_RV10_DECODER
244
    register_avcodec(&rv10_decoder);
245 246
#endif //CONFIG_RV10_DECODER
#ifdef CONFIG_RV20_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
247
    register_avcodec(&rv20_decoder);
248 249
#endif //CONFIG_RV20_DECODER
#ifdef CONFIG_SVQ1_DECODER
Nick Kurshev's avatar
Nick Kurshev committed
250
    register_avcodec(&svq1_decoder);
251 252
#endif //CONFIG_SVQ1_DECODER
#ifdef CONFIG_SVQ3_DECODER
253
    register_avcodec(&svq3_decoder);
254 255
#endif //CONFIG_SVQ3_DECODER
#ifdef CONFIG_WMAV1_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
256
    register_avcodec(&wmav1_decoder);
257 258
#endif //CONFIG_WMAV1_DECODER
#ifdef CONFIG_WMAV2_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
259
    register_avcodec(&wmav2_decoder);
260 261
#endif //CONFIG_WMAV2_DECODER
#ifdef CONFIG_INDEO2_DECODER
262
    register_avcodec(&indeo2_decoder);
263 264
#endif //CONFIG_INDEO2_DECODER
#ifdef CONFIG_INDEO3_DECODER
265
    register_avcodec(&indeo3_decoder);
266 267
#endif //CONFIG_INDEO3_DECODER
#ifdef CONFIG_TSCC_DECODER
268
    register_avcodec(&tscc_decoder);
269
#endif //CONFIG_TSCC_DECODER
270 271 272
#ifdef CONFIG_CSCD_DECODER
    register_avcodec(&cscd_decoder);
#endif //CONFIG_CSCD_DECODER
273 274 275
#ifdef CONFIG_NUV_DECODER
    register_avcodec(&nuv_decoder);
#endif //CONFIG_NUV_DECODER
276
#ifdef CONFIG_ULTI_DECODER
277
    register_avcodec(&ulti_decoder);
278 279
#endif //CONFIG_ULTI_DECODER
#ifdef CONFIG_QDRAW_DECODER
280
    register_avcodec(&qdraw_decoder);
281 282
#endif //CONFIG_QDRAW_DECODER
#ifdef CONFIG_XL_DECODER
283
    register_avcodec(&xl_decoder);
284 285
#endif //CONFIG_XL_DECODER
#ifdef CONFIG_QPEG_DECODER
286
    register_avcodec(&qpeg_decoder);
287 288
#endif //CONFIG_QPEG_DECODER
#ifdef CONFIG_LOCO_DECODER
289
    register_avcodec(&loco_decoder);
290
#endif //CONFIG_LOCO_DECODER
291 292 293
#ifdef CONFIG_KMVC_DECODER
    register_avcodec(&kmvc_decoder);
#endif //CONFIG_KMVC_DECODER
294
#ifdef CONFIG_WNV1_DECODER
295
    register_avcodec(&wnv1_decoder);
296 297
#endif //CONFIG_WNV1_DECODER
#ifdef CONFIG_AASC_DECODER
298
    register_avcodec(&aasc_decoder);
299
#endif //CONFIG_AASC_DECODER
300 301 302
#ifdef CONFIG_FRAPS_DECODER
    register_avcodec(&fraps_decoder);
#endif //CONFIG_FRAPS_DECODER
303
#ifdef CONFIG_FAAD
304
#ifdef CONFIG_AAC_DECODER
305
    register_avcodec(&aac_decoder);
306 307
#endif //CONFIG_AAC_DECODER
#ifdef CONFIG_MPEG4AAC_DECODER
308
    register_avcodec(&mpeg4aac_decoder);
309
#endif //CONFIG_MPEG4AAC_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
310
#endif
311
#ifdef CONFIG_MPEG1VIDEO_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
312
    register_avcodec(&mpeg1video_decoder);
313 314
#endif //CONFIG_MPEG1VIDEO_DECODER
#ifdef CONFIG_MPEG2VIDEO_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
315
    register_avcodec(&mpeg2video_decoder);
316 317
#endif //CONFIG_MPEG2VIDEO_DECODER
#ifdef CONFIG_MPEGVIDEO_DECODER
Ivan Kalvachev's avatar
Ivan Kalvachev committed
318
    register_avcodec(&mpegvideo_decoder);
319
#endif //CONFIG_MPEGVIDEO_DECODER
Ivan Kalvachev's avatar
Ivan Kalvachev committed
320
#ifdef HAVE_XVMC
321
#ifdef CONFIG_MPEG_XVMC_DECODER
Ivan Kalvachev's avatar
Ivan Kalvachev committed
322
    register_avcodec(&mpeg_xvmc_decoder);
323
#endif //CONFIG_MPEG_XVMC_DECODER
Ivan Kalvachev's avatar
Ivan Kalvachev committed
324
#endif
325
#ifdef CONFIG_DVVIDEO_DECODER
Fabrice Bellard's avatar
Fabrice Bellard committed
326
    register_avcodec(&dvvideo_decoder);
327 328
#endif //CONFIG_DVVIDEO_DECODER
#ifdef CONFIG_MJPEG_DECODER
329
    register_avcodec(&mjpeg_decoder);
330 331
#endif //CONFIG_MJPEG_DECODER
#ifdef CONFIG_MJPEGB_DECODER
332
    register_avcodec(&mjpegb_decoder);
333 334
#endif //CONFIG_MJPEGB_DECODER
#ifdef CONFIG_SP5X_DECODER
335
    register_avcodec(&sp5x_decoder);
336
#endif //CONFIG_SP5X_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
337
#ifdef CONFIG_ZLIB
338
#ifdef CONFIG_PNG_DECODER
339
    register_avcodec(&png_decoder);
340
#endif //CONFIG_PNG_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
341
#endif
342
#ifdef CONFIG_MP2_DECODER
343
    register_avcodec(&mp2_decoder);
344 345
#endif //CONFIG_MP2_DECODER
#ifdef CONFIG_MP3_DECODER
346
    register_avcodec(&mp3_decoder);
347 348
#endif //CONFIG_MP3_DECODER
#ifdef CONFIG_MP3ADU_DECODER
Roberto Togni's avatar
Roberto Togni committed
349
    register_avcodec(&mp3adu_decoder);
350 351
#endif //CONFIG_MP3ADU_DECODER
#ifdef CONFIG_MP3ON4_DECODER
352
    register_avcodec(&mp3on4_decoder);
353 354
#endif //CONFIG_MP3ON4_DECODER
#ifdef CONFIG_MACE3_DECODER
355
    register_avcodec(&mace3_decoder);
356 357
#endif //CONFIG_MACE3_DECODER
#ifdef CONFIG_MACE6_DECODER
358
    register_avcodec(&mace6_decoder);
359 360
#endif //CONFIG_MACE6_DECODER
#ifdef CONFIG_HUFFYUV_DECODER
Michael Niedermayer's avatar
huffyuv  
Michael Niedermayer committed
361
    register_avcodec(&huffyuv_decoder);
362 363
#endif //CONFIG_HUFFYUV_DECODER
#ifdef CONFIG_FFVHUFF_DECODER
Loren Merritt's avatar
Loren Merritt committed
364
    register_avcodec(&ffvhuff_decoder);
365 366
#endif //CONFIG_FFVHUFF_DECODER
#ifdef CONFIG_FFV1_DECODER
367
    register_avcodec(&ffv1_decoder);
368 369
#endif //CONFIG_FFV1_DECODER
#ifdef CONFIG_SNOW_DECODER
370
    register_avcodec(&snow_decoder);
371 372
#endif //CONFIG_SNOW_DECODER
#ifdef CONFIG_CYUV_DECODER
Mike Melanson's avatar
Mike Melanson committed
373
    register_avcodec(&cyuv_decoder);
374 375
#endif //CONFIG_CYUV_DECODER
#ifdef CONFIG_H264_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
376
    register_avcodec(&h264_decoder);
377 378
#endif //CONFIG_H264_DECODER
#ifdef CONFIG_VP3_DECODER
379
    register_avcodec(&vp3_decoder);
380
#endif //CONFIG_VP3_DECODER
381
#if (defined CONFIG_THEORA_DECODER && !defined CONFIG_LIBTHEORA)
382
    register_avcodec(&theora_decoder);
383 384
#endif //CONFIG_THEORA_DECODER
#ifdef CONFIG_ASV1_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
385
    register_avcodec(&asv1_decoder);
386 387
#endif //CONFIG_ASV1_DECODER
#ifdef CONFIG_ASV2_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
388
    register_avcodec(&asv2_decoder);
389 390
#endif //CONFIG_ASV2_DECODER
#ifdef CONFIG_VCR1_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
391
    register_avcodec(&vcr1_decoder);
392 393
#endif //CONFIG_VCR1_DECODER
#ifdef CONFIG_CLJR_DECODER
Alex Beregszaszi's avatar
Alex Beregszaszi committed
394
    register_avcodec(&cljr_decoder);
395 396
#endif //CONFIG_CLJR_DECODER
#ifdef CONFIG_FOURXM_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
397
    register_avcodec(&fourxm_decoder);
398 399
#endif //CONFIG_FOURXM_DECODER
#ifdef CONFIG_MDEC_DECODER
400
    register_avcodec(&mdec_decoder);
401 402
#endif //CONFIG_MDEC_DECODER
#ifdef CONFIG_ROQ_DECODER
403
    register_avcodec(&roq_decoder);
404 405
#endif //CONFIG_ROQ_DECODER
#ifdef CONFIG_INTERPLAY_VIDEO_DECODER
406
    register_avcodec(&interplay_video_decoder);
407 408
#endif //CONFIG_INTERPLAY_VIDEO_DECODER
#ifdef CONFIG_XAN_WC3_DECODER
409
    register_avcodec(&xan_wc3_decoder);
410 411
#endif //CONFIG_XAN_WC3_DECODER
#ifdef CONFIG_RPZA_DECODER
412
    register_avcodec(&rpza_decoder);
413 414
#endif //CONFIG_RPZA_DECODER
#ifdef CONFIG_CINEPAK_DECODER
415
    register_avcodec(&cinepak_decoder);
416 417
#endif //CONFIG_CINEPAK_DECODER
#ifdef CONFIG_MSRLE_DECODER
418
    register_avcodec(&msrle_decoder);
419 420
#endif //CONFIG_MSRLE_DECODER
#ifdef CONFIG_MSVIDEO1_DECODER
421
    register_avcodec(&msvideo1_decoder);
422 423
#endif //CONFIG_MSVIDEO1_DECODER
#ifdef CONFIG_VQA_DECODER
424
    register_avcodec(&vqa_decoder);
425 426
#endif //CONFIG_VQA_DECODER
#ifdef CONFIG_IDCIN_DECODER
427
    register_avcodec(&idcin_decoder);
428 429
#endif //CONFIG_IDCIN_DECODER
#ifdef CONFIG_EIGHTBPS_DECODER
Roberto Togni's avatar
Roberto Togni committed
430
    register_avcodec(&eightbps_decoder);
431 432
#endif //CONFIG_EIGHTBPS_DECODER
#ifdef CONFIG_SMC_DECODER
433
    register_avcodec(&smc_decoder);
434 435
#endif //CONFIG_SMC_DECODER
#ifdef CONFIG_FLIC_DECODER
Mike Melanson's avatar
Mike Melanson committed
436
    register_avcodec(&flic_decoder);
437 438
#endif //CONFIG_FLIC_DECODER
#ifdef CONFIG_TRUEMOTION1_DECODER
439
    register_avcodec(&truemotion1_decoder);
440
#endif //CONFIG_TRUEMOTION1_DECODER
441 442 443
#ifdef CONFIG_TRUEMOTION2_DECODER
    register_avcodec(&truemotion2_decoder);
#endif //CONFIG_TRUEMOTION2_DECODER
444
#ifdef CONFIG_VMDVIDEO_DECODER
445
    register_avcodec(&vmdvideo_decoder);
446 447
#endif //CONFIG_VMDVIDEO_DECODER
#ifdef CONFIG_VMDAUDIO_DECODER
448
    register_avcodec(&vmdaudio_decoder);
449 450
#endif //CONFIG_VMDAUDIO_DECODER
#ifdef CONFIG_MSZH_DECODER
Roberto Togni's avatar
Roberto Togni committed
451
    register_avcodec(&mszh_decoder);
452 453
#endif //CONFIG_MSZH_DECODER
#ifdef CONFIG_ZLIB_DECODER
Roberto Togni's avatar
Roberto Togni committed
454
    register_avcodec(&zlib_decoder);
455
#endif //CONFIG_ZLIB_DECODER
456 457 458
#ifdef CONFIG_ZMBV_DECODER
    register_avcodec(&zmbv_decoder);
#endif //CONFIG_ZMBV_DECODER
Kostya Shishkov's avatar
Kostya Shishkov committed
459 460 461 462 463 464
#ifdef CONFIG_SMACKER_DECODER
    register_avcodec(&smacker_decoder);
#endif //CONFIG_SMACKER_DECODER
#ifdef CONFIG_SMACKAUD_DECODER
    register_avcodec(&smackaud_decoder);
#endif //CONFIG_SMACKAUD_DECODER
465
#ifdef CONFIG_SONIC_DECODER
466
    register_avcodec(&sonic_decoder);
467
#endif //CONFIG_SONIC_DECODER
468
#ifdef CONFIG_AC3
469
#ifdef CONFIG_AC3_DECODER
470
    register_avcodec(&ac3_decoder);
471
#endif //CONFIG_AC3_DECODER
472 473
#endif
#ifdef CONFIG_DTS
474
#ifdef CONFIG_DTS_DECODER
475
    register_avcodec(&dts_decoder);
476
#endif //CONFIG_DTS_DECODER
477
#endif
478
#ifdef CONFIG_RA_144_DECODER
479
    register_avcodec(&ra_144_decoder);
480 481
#endif //CONFIG_RA_144_DECODER
#ifdef CONFIG_RA_288_DECODER
482
    register_avcodec(&ra_288_decoder);
483 484
#endif //CONFIG_RA_288_DECODER
#ifdef CONFIG_ROQ_DPCM_DECODER
485
    register_avcodec(&roq_dpcm_decoder);
486 487
#endif //CONFIG_ROQ_DPCM_DECODER
#ifdef CONFIG_INTERPLAY_DPCM_DECODER
488
    register_avcodec(&interplay_dpcm_decoder);
489 490
#endif //CONFIG_INTERPLAY_DPCM_DECODER
#ifdef CONFIG_XAN_DPCM_DECODER
491
    register_avcodec(&xan_dpcm_decoder);
492 493
#endif //CONFIG_XAN_DPCM_DECODER
#ifdef CONFIG_SOL_DPCM_DECODER
494
    register_avcodec(&sol_dpcm_decoder);
495 496
#endif //CONFIG_SOL_DPCM_DECODER
#ifdef CONFIG_QTRLE_DECODER
497
    register_avcodec(&qtrle_decoder);
498 499
#endif //CONFIG_QTRLE_DECODER
#ifdef CONFIG_FLAC_DECODER
Michael Niedermayer's avatar
Michael Niedermayer committed
500
    register_avcodec(&flac_decoder);
501 502
#endif //CONFIG_FLAC_DECODER
#ifdef CONFIG_SHORTEN_DECODER
503
    register_avcodec(&shorten_decoder);
504 505
#endif //CONFIG_SHORTEN_DECODER
#ifdef CONFIG_ALAC_DECODER
506
    register_avcodec(&alac_decoder);
507 508
#endif //CONFIG_ALAC_DECODER
#ifdef CONFIG_WS_SND1_DECODER
509
    register_avcodec(&ws_snd1_decoder);
510
#endif //CONFIG_WS_SND1_DECODER
511 512 513
#ifdef CONFIG_VORBIS_DECODER
    register_avcodec(&vorbis_decoder);
#endif
514 515 516
#ifdef CONFIG_LIBGSM
    register_avcodec(&libgsm_decoder);
#endif //CONFIG_LIBGSM
Roberto Togni's avatar
Roberto Togni committed
517 518 519
#ifdef CONFIG_QDM2_DECODER
    register_avcodec(&qdm2_decoder);
#endif //CONFIG_QDM2_DECODER
520 521 522
#ifdef CONFIG_COOK_DECODER
    register_avcodec(&cook_decoder);
#endif //CONFIG_COOK_DECODER
523 524 525
#ifdef CONFIG_TRUESPEECH_DECODER
    register_avcodec(&truespeech_decoder);
#endif //CONFIG_TRUESPEECH_DECODER
526 527 528
#ifdef CONFIG_TTA_DECODER
    register_avcodec(&tta_decoder);
#endif //CONFIG_TTA_DECODER
529 530 531
#ifdef CONFIG_AVS_DECODER
    register_avcodec(&avs_decoder);
#endif //CONFIG_AVS_DECODER
532 533 534
#ifdef CONFIG_CAVS_DECODER
    register_avcodec(&cavs_decoder);
#endif //CONFIG_CAVS_DECODER
535 536 537
#ifdef CONFIG_RAWVIDEO_DECODER
    register_avcodec(&rawvideo_decoder);
#endif //CONFIG_RAWVIDEO_DECODER
538 539 540
#ifdef CONFIG_FLASHSV_DECODER
    register_avcodec(&flashsv_decoder);
#endif //CONFIG_FLASHSV_DECODER
541 542
#endif /* CONFIG_DECODERS */

543
#if defined(AMR_NB) || defined(AMR_NB_FIXED)
544
#ifdef CONFIG_AMR_NB_DECODER
545
    register_avcodec(&amr_nb_decoder);
546
#endif //CONFIG_AMR_NB_DECODER
547
#ifdef CONFIG_ENCODERS
548
#ifdef CONFIG_AMR_NB_ENCODER
Zdenek Kabelac's avatar
Zdenek Kabelac committed
549
    register_avcodec(&amr_nb_encoder);
550
#endif //CONFIG_AMR_NB_ENCODER
551
#endif //CONFIG_ENCODERS
552
#endif /* AMR_NB || AMR_NB_FIXED */
553 554

#ifdef AMR_WB
555
#ifdef CONFIG_AMR_WB_DECODER
556
    register_avcodec(&amr_wb_decoder);
557
#endif //CONFIG_AMR_WB_DECODER
558
#ifdef CONFIG_ENCODERS
559
#ifdef CONFIG_AMR_WB_ENCODER
560
    register_avcodec(&amr_wb_encoder);
561
#endif //CONFIG_AMR_WB_ENCODER
562
#endif //CONFIG_ENCODERS
563 564
#endif /* AMR_WB */

Måns Rullgård's avatar
Måns Rullgård committed
565 566 567 568
#ifdef CONFIG_BMP_DECODER
    register_avcodec(&bmp_decoder);
#endif

569 570 571 572
#if CONFIG_MMVIDEO_DECODER
    register_avcodec(&mmvideo_decoder);
#endif //CONFIG_MMVIDEO_DECODER

573
    /* pcm codecs */
574 575 576 577 578 579 580 581 582 583
#if defined (CONFIG_ENCODERS) && defined (CONFIG_DECODERS)
    #define PCM_CODEC(id, name) \
        register_avcodec(& name ## _encoder); \
        register_avcodec(& name ## _decoder);
#elif defined (CONFIG_ENCODERS)
    #define PCM_CODEC(id, name) \
        register_avcodec(& name ## _encoder);
#elif defined (CONFIG_DECODERS)
    #define PCM_CODEC(id, name) \
        register_avcodec(& name ## _decoder);
584 585
#endif

586 587 588 589 590 591 592 593 594
PCM_CODEC(CODEC_ID_PCM_S32LE, pcm_s32le);
PCM_CODEC(CODEC_ID_PCM_S32BE, pcm_s32be);
PCM_CODEC(CODEC_ID_PCM_U32LE, pcm_u32le);
PCM_CODEC(CODEC_ID_PCM_U32BE, pcm_u32be);
PCM_CODEC(CODEC_ID_PCM_S24LE, pcm_s24le);
PCM_CODEC(CODEC_ID_PCM_S24BE, pcm_s24be);
PCM_CODEC(CODEC_ID_PCM_U24LE, pcm_u24le);
PCM_CODEC(CODEC_ID_PCM_U24BE, pcm_u24be);
PCM_CODEC(CODEC_ID_PCM_S24DAUD, pcm_s24daud);
595 596 597 598 599 600 601 602 603
PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);

604 605 606
    /* adpcm codecs */
PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
607 608
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3);
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4);
609
PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws);
610
PCM_CODEC(CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
611
PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
Michael Niedermayer's avatar
Michael Niedermayer committed
612
PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);
613 614
PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa);
PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx);
615
PCM_CODEC(CODEC_ID_ADPCM_EA, adpcm_ea);
616
PCM_CODEC(CODEC_ID_ADPCM_G726, adpcm_g726);
617
PCM_CODEC(CODEC_ID_ADPCM_CT, adpcm_ct);
618
PCM_CODEC(CODEC_ID_ADPCM_SWF, adpcm_swf);
619
PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha);
620 621 622
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_4, adpcm_sbpro_4);
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_3, adpcm_sbpro_3);
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_2, adpcm_sbpro_2);
623
#undef PCM_CODEC
Fabrice Bellard's avatar
Fabrice Bellard committed
624

625
    /* subtitles */
626 627 628 629
#ifdef CONFIG_DVDSUB_DECODER
    register_avcodec(&dvdsub_decoder);
#endif
#ifdef CONFIG_DVDSUB_ENCODER
630
    register_avcodec(&dvdsub_encoder);
631 632
#endif

633
#ifdef CONFIG_DVBSUB_DECODER
634
    register_avcodec(&dvbsub_decoder);
635
#endif
636 637 638
#ifdef CONFIG_DVBSUB_ENCODER
    register_avcodec(&dvbsub_encoder);
#endif
Fabrice Bellard's avatar
Fabrice Bellard committed
639

640
    /* parsers */
Fabrice Bellard's avatar
Fabrice Bellard committed
641 642
    av_register_codec_parser(&mpegvideo_parser);
    av_register_codec_parser(&mpeg4video_parser);
643
    av_register_codec_parser(&cavsvideo_parser);
644
#if defined(CONFIG_H261_DECODER) || defined(CONFIG_H261_ENCODER)
645
    av_register_codec_parser(&h261_parser);
646
#endif
Fabrice Bellard's avatar
Fabrice Bellard committed
647
    av_register_codec_parser(&h263_parser);
648
#ifdef CONFIG_H264_DECODER
Fabrice Bellard's avatar
Fabrice Bellard committed
649
    av_register_codec_parser(&h264_parser);
650
#endif
Michael Niedermayer's avatar
Michael Niedermayer committed
651
    av_register_codec_parser(&mjpeg_parser);
Michael Niedermayer's avatar
Michael Niedermayer committed
652
    av_register_codec_parser(&pnm_parser);
Fabrice Bellard's avatar
Fabrice Bellard committed
653 654 655

    av_register_codec_parser(&mpegaudio_parser);
    av_register_codec_parser(&ac3_parser);
656 657

#ifdef CONFIG_DVDSUB_DECODER
Fabrice Bellard's avatar
Fabrice Bellard committed
658
    av_register_codec_parser(&dvdsub_parser);
659 660
#endif
#ifdef CONFIG_DVBSUB_DECODER
661
    av_register_codec_parser(&dvbsub_parser);
662
#endif
Måns Rullgård's avatar
Måns Rullgård committed
663
    av_register_codec_parser(&aac_parser);
664 665
}