Statistics
| Branch: | Revision:

ffmpeg / libavcodec / allcodecs.c @ 9296d45d

History | View | Annotate | Download (20 KB)

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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
#ifdef CONFIG_WIN32
38
    av_log(NULL, AV_LOG_INFO, "Use a real OS!\n");
39
#endif
40

    
41
    if (inited != 0)
42
        return;
43
    inited = 1;
44

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

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

    
535
#ifdef AMR_NB
536
#ifdef CONFIG_AMR_NB_DECODER
537
    register_avcodec(&amr_nb_decoder);
538
#endif //CONFIG_AMR_NB_DECODER
539
#ifdef CONFIG_ENCODERS
540
#ifdef CONFIG_AMR_NB_ENCODER
541
    register_avcodec(&amr_nb_encoder);
542
#endif //CONFIG_AMR_NB_ENCODER
543
#endif //CONFIG_ENCODERS
544
#endif /* AMR_NB */
545

    
546
#ifdef AMR_WB
547
#ifdef CONFIG_AMR_WB_DECODER
548
    register_avcodec(&amr_wb_decoder);
549
#endif //CONFIG_AMR_WB_DECODER
550
#ifdef CONFIG_ENCODERS
551
#ifdef CONFIG_AMR_WB_ENCODER
552
    register_avcodec(&amr_wb_encoder);
553
#endif //CONFIG_AMR_WB_ENCODER
554
#endif //CONFIG_ENCODERS
555
#endif /* AMR_WB */
556

    
557
#ifdef CONFIG_BMP_DECODER
558
    register_avcodec(&bmp_decoder);
559
#endif
560

    
561
#if CONFIG_MMVIDEO_DECODER
562
    register_avcodec(&mmvideo_decoder);
563
#endif //CONFIG_MMVIDEO_DECODER
564

    
565
    /* pcm codecs */
566
#if defined (CONFIG_ENCODERS) && defined (CONFIG_DECODERS)
567
    #define PCM_CODEC(id, name) \
568
        register_avcodec(& name ## _encoder); \
569
        register_avcodec(& name ## _decoder);
570
#elif defined (CONFIG_ENCODERS)
571
    #define PCM_CODEC(id, name) \
572
        register_avcodec(& name ## _encoder);
573
#elif defined (CONFIG_DECODERS)
574
    #define PCM_CODEC(id, name) \
575
        register_avcodec(& name ## _decoder);
576
#endif
577

    
578
PCM_CODEC(CODEC_ID_PCM_S32LE, pcm_s32le);
579
PCM_CODEC(CODEC_ID_PCM_S32BE, pcm_s32be);
580
PCM_CODEC(CODEC_ID_PCM_U32LE, pcm_u32le);
581
PCM_CODEC(CODEC_ID_PCM_U32BE, pcm_u32be);
582
PCM_CODEC(CODEC_ID_PCM_S24LE, pcm_s24le);
583
PCM_CODEC(CODEC_ID_PCM_S24BE, pcm_s24be);
584
PCM_CODEC(CODEC_ID_PCM_U24LE, pcm_u24le);
585
PCM_CODEC(CODEC_ID_PCM_U24BE, pcm_u24be);
586
PCM_CODEC(CODEC_ID_PCM_S24DAUD, pcm_s24daud);
587
PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
588
PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
589
PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
590
PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
591
PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
592
PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
593
PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
594
PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
595

    
596
    /* adpcm codecs */
597
PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
598
PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
599
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3);
600
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4);
601
PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws);
602
PCM_CODEC(CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
603
PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
604
PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);
605
PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa);
606
PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx);
607
PCM_CODEC(CODEC_ID_ADPCM_EA, adpcm_ea);
608
PCM_CODEC(CODEC_ID_ADPCM_G726, adpcm_g726);
609
PCM_CODEC(CODEC_ID_ADPCM_CT, adpcm_ct);
610
PCM_CODEC(CODEC_ID_ADPCM_SWF, adpcm_swf);
611
PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha);
612
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_4, adpcm_sbpro_4);
613
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_3, adpcm_sbpro_3);
614
PCM_CODEC(CODEC_ID_ADPCM_SBPRO_2, adpcm_sbpro_2);
615
#undef PCM_CODEC
616

    
617
    /* subtitles */
618
#ifdef CONFIG_DVDSUB_DECODER
619
    register_avcodec(&dvdsub_decoder);
620
#endif
621
#ifdef CONFIG_DVDSUB_ENCODER
622
    register_avcodec(&dvdsub_encoder);
623
#endif
624

    
625
#ifdef CONFIG_DVBSUB_DECODER
626
    register_avcodec(&dvbsub_decoder);
627
#endif
628
#ifdef CONFIG_DVBSUB_ENCODER
629
    register_avcodec(&dvbsub_encoder);
630
#endif
631

    
632
    /* parsers */
633
    av_register_codec_parser(&mpegvideo_parser);
634
    av_register_codec_parser(&mpeg4video_parser);
635
#if defined(CONFIG_H261_DECODER) || defined(CONFIG_H261_ENCODER)
636
    av_register_codec_parser(&h261_parser);
637
#endif
638
    av_register_codec_parser(&h263_parser);
639
#ifdef CONFIG_H264_DECODER
640
    av_register_codec_parser(&h264_parser);
641
#endif
642
    av_register_codec_parser(&mjpeg_parser);
643
    av_register_codec_parser(&pnm_parser);
644

    
645
    av_register_codec_parser(&mpegaudio_parser);
646
    av_register_codec_parser(&ac3_parser);
647

    
648
#ifdef CONFIG_DVDSUB_DECODER
649
    av_register_codec_parser(&dvdsub_parser);
650
#endif
651
#ifdef CONFIG_DVBSUB_DECODER
652
    av_register_codec_parser(&dvbsub_parser);
653
#endif
654
    av_register_codec_parser(&aac_parser);
655
}
656