Statistics
| Branch: | Revision:

ffmpeg / libavcodec / allcodecs.c @ a24c4a2a

History | View | Annotate | Download (19.2 KB)

1 771b9a70 Fabrice Bellard
/*
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 5509bffa Diego Biurrun
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 771b9a70 Fabrice Bellard
 */
19 983e3246 Michael Niedermayer
20
/**
21
 * @file allcodecs.c
22
 * Utils for libavcodec.
23
 */
24
25 771b9a70 Fabrice Bellard
#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 115329f1 Diego Biurrun
 * simple call to register all the codecs.
32 771b9a70 Fabrice Bellard
 */
33
void avcodec_register_all(void)
34
{
35
    static int inited = 0;
36 115329f1 Diego Biurrun
37 771b9a70 Fabrice Bellard
    if (inited != 0)
38 bb270c08 Diego Biurrun
        return;
39 771b9a70 Fabrice Bellard
    inited = 1;
40
41
    /* encoders */
42
#ifdef CONFIG_ENCODERS
43 422f4df8 Michael Niedermayer
#ifdef CONFIG_AC3_ENCODER
44 771b9a70 Fabrice Bellard
    register_avcodec(&ac3_encoder);
45 422f4df8 Michael Niedermayer
#endif //CONFIG_AC3_ENCODER
46
#ifdef CONFIG_MP2_ENCODER
47 771b9a70 Fabrice Bellard
    register_avcodec(&mp2_encoder);
48 422f4df8 Michael Niedermayer
#endif //CONFIG_MP2_ENCODER
49 771b9a70 Fabrice Bellard
#ifdef CONFIG_MP3LAME
50 422f4df8 Michael Niedermayer
#ifdef CONFIG_MP3LAME_ENCODER
51 771b9a70 Fabrice Bellard
    register_avcodec(&mp3lame_encoder);
52 422f4df8 Michael Niedermayer
#endif //CONFIG_MP3LAME_ENCODER
53 771b9a70 Fabrice Bellard
#endif
54 5c5dea3f Nilesh Bansal
#ifdef CONFIG_LIBVORBIS
55 422f4df8 Michael Niedermayer
#ifdef CONFIG_OGGVORBIS_ENCODER
56 81e0d0b4 Mark Hills
    register_avcodec(&oggvorbis_encoder);
57 422f4df8 Michael Niedermayer
#endif //CONFIG_OGGVORBIS_ENCODER
58 0bde73d9 Michael Niedermayer
#if (defined CONFIG_OGGVORBIS_DECODER && !defined CONFIG_VORBIS_DECODER)
59 3aca208a Mark Hills
    register_avcodec(&oggvorbis_decoder);
60 422f4df8 Michael Niedermayer
#endif //CONFIG_OGGVORBIS_DECODER
61 81e0d0b4 Mark Hills
#endif
62 5c5dea3f Nilesh Bansal
#ifdef CONFIG_LIBTHEORA
63 422f4df8 Michael Niedermayer
#ifdef CONFIG_OGGTHEORA_ENCODER
64 aac064b5 Måns Rullgård
//    register_avcodec(&oggtheora_encoder);
65 422f4df8 Michael Niedermayer
#endif //CONFIG_OGGTHEORA_ENCODER
66
#ifdef CONFIG_OGGTHEORA_DECODER
67 5c5dea3f Nilesh Bansal
    register_avcodec(&oggtheora_decoder);
68 422f4df8 Michael Niedermayer
#endif //CONFIG_OGGTHEORA_DECODER
69 5c5dea3f Nilesh Bansal
#endif
70 29d48296 Michael Niedermayer
#ifdef CONFIG_FAAC
71 422f4df8 Michael Niedermayer
#ifdef CONFIG_FAAC_ENCODER
72 29d48296 Michael Niedermayer
    register_avcodec(&faac_encoder);
73 422f4df8 Michael Niedermayer
#endif //CONFIG_FAAC_ENCODER
74 29d48296 Michael Niedermayer
#endif
75 1ddadfa9 Adam Thayer
#ifdef CONFIG_XVID
76 422f4df8 Michael Niedermayer
#ifdef CONFIG_XVID_ENCODER
77 1ddadfa9 Adam Thayer
    register_avcodec(&xvid_encoder);
78 422f4df8 Michael Niedermayer
#endif //CONFIG_XVID_ENCODER
79 1ddadfa9 Adam Thayer
#endif
80 422f4df8 Michael Niedermayer
#ifdef CONFIG_MPEG1VIDEO_ENCODER
81 771b9a70 Fabrice Bellard
    register_avcodec(&mpeg1video_encoder);
82 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG1VIDEO_ENCODER
83
#ifdef CONFIG_H264_ENCODER
84 0da71265 Michael Niedermayer
//    register_avcodec(&h264_encoder);
85 422f4df8 Michael Niedermayer
#endif //CONFIG_H264_ENCODER
86
#ifdef CONFIG_MPEG2VIDEO_ENCODER
87 029911d1 Michael Niedermayer
    register_avcodec(&mpeg2video_encoder);
88 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG2VIDEO_ENCODER
89
#ifdef CONFIG_H261_ENCODER
90 1c3990db Michael Niedermayer
    register_avcodec(&h261_encoder);
91 422f4df8 Michael Niedermayer
#endif //CONFIG_H261_ENCODER
92
#ifdef CONFIG_H263_ENCODER
93 771b9a70 Fabrice Bellard
    register_avcodec(&h263_encoder);
94 422f4df8 Michael Niedermayer
#endif //CONFIG_H263_ENCODER
95
#ifdef CONFIG_H263P_ENCODER
96 771b9a70 Fabrice Bellard
    register_avcodec(&h263p_encoder);
97 422f4df8 Michael Niedermayer
#endif //CONFIG_H263P_ENCODER
98
#ifdef CONFIG_FLV_ENCODER
99 dde38422 Michael Niedermayer
    register_avcodec(&flv_encoder);
100 422f4df8 Michael Niedermayer
#endif //CONFIG_FLV_ENCODER
101
#ifdef CONFIG_RV10_ENCODER
102 771b9a70 Fabrice Bellard
    register_avcodec(&rv10_encoder);
103 422f4df8 Michael Niedermayer
#endif //CONFIG_RV10_ENCODER
104
#ifdef CONFIG_RV20_ENCODER
105 d0271e8a Michael Niedermayer
    register_avcodec(&rv20_encoder);
106 422f4df8 Michael Niedermayer
#endif //CONFIG_RV20_ENCODER
107
#ifdef CONFIG_MPEG4_ENCODER
108 771b9a70 Fabrice Bellard
    register_avcodec(&mpeg4_encoder);
109 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG4_ENCODER
110
#ifdef CONFIG_MSMPEG4V1_ENCODER
111 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v1_encoder);
112 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V1_ENCODER
113
#ifdef CONFIG_MSMPEG4V2_ENCODER
114 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v2_encoder);
115 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V2_ENCODER
116
#ifdef CONFIG_MSMPEG4V3_ENCODER
117 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v3_encoder);
118 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V3_ENCODER
119
#ifdef CONFIG_WMV1_ENCODER
120 0151a6f5 Michael Niedermayer
    register_avcodec(&wmv1_encoder);
121 422f4df8 Michael Niedermayer
#endif //CONFIG_WMV1_ENCODER
122
#ifdef CONFIG_WMV2_ENCODER
123 1457ab52 Michael Niedermayer
    register_avcodec(&wmv2_encoder);
124 422f4df8 Michael Niedermayer
#endif //CONFIG_WMV2_ENCODER
125
#ifdef CONFIG_SVQ1_ENCODER
126 3b64893d Mike Melanson
    register_avcodec(&svq1_encoder);
127 422f4df8 Michael Niedermayer
#endif //CONFIG_SVQ1_ENCODER
128
#ifdef CONFIG_MJPEG_ENCODER
129 1d0d55da Michael Niedermayer
    register_avcodec(&mjpeg_encoder);
130 422f4df8 Michael Niedermayer
#endif //CONFIG_MJPEG_ENCODER
131
#ifdef CONFIG_LJPEG_ENCODER
132 b1e6b355 Michael Niedermayer
    register_avcodec(&ljpeg_encoder);
133 422f4df8 Michael Niedermayer
#endif //CONFIG_LJPEG_ENCODER
134 5639729b Michael Niedermayer
#ifdef CONFIG_JPEGLS_ENCODER
135
    register_avcodec(&jpegls_encoder);
136
#endif //CONFIG_JPEGLS_ENCODER
137 6c3890b6 Michael Niedermayer
#ifdef CONFIG_ZLIB
138 422f4df8 Michael Niedermayer
#ifdef CONFIG_PNG_ENCODER
139 4eff7cf4 Michael Niedermayer
    register_avcodec(&png_encoder);
140 422f4df8 Michael Niedermayer
#endif //CONFIG_PNG_ENCODER
141 6c3890b6 Michael Niedermayer
#endif
142 422f4df8 Michael Niedermayer
#ifdef CONFIG_PPM_ENCODER
143 5b6d5596 Michael Niedermayer
    register_avcodec(&ppm_encoder);
144 422f4df8 Michael Niedermayer
#endif //CONFIG_PPM_ENCODER
145
#ifdef CONFIG_PGM_ENCODER
146 5b6d5596 Michael Niedermayer
    register_avcodec(&pgm_encoder);
147 422f4df8 Michael Niedermayer
#endif //CONFIG_PGM_ENCODER
148
#ifdef CONFIG_PGMYUV_ENCODER
149 5b6d5596 Michael Niedermayer
    register_avcodec(&pgmyuv_encoder);
150 422f4df8 Michael Niedermayer
#endif //CONFIG_PGMYUV_ENCODER
151
#ifdef CONFIG_PBM_ENCODER
152 5b6d5596 Michael Niedermayer
    register_avcodec(&pbm_encoder);
153 422f4df8 Michael Niedermayer
#endif //CONFIG_PBM_ENCODER
154
#ifdef CONFIG_PAM_ENCODER
155 5b6d5596 Michael Niedermayer
    register_avcodec(&pam_encoder);
156 422f4df8 Michael Niedermayer
#endif //CONFIG_PAM_ENCODER
157
#ifdef CONFIG_HUFFYUV_ENCODER
158 11f18faf Michael Niedermayer
    register_avcodec(&huffyuv_encoder);
159 422f4df8 Michael Niedermayer
#endif //CONFIG_HUFFYUV_ENCODER
160
#ifdef CONFIG_FFVHUFF_ENCODER
161 f37b9768 Loren Merritt
    register_avcodec(&ffvhuff_encoder);
162 422f4df8 Michael Niedermayer
#endif //CONFIG_FFVHUFF_ENCODER
163
#ifdef CONFIG_ASV1_ENCODER
164 3d2e8cce Michael Niedermayer
    register_avcodec(&asv1_encoder);
165 422f4df8 Michael Niedermayer
#endif //CONFIG_ASV1_ENCODER
166
#ifdef CONFIG_ASV2_ENCODER
167 1149acdc Michael Niedermayer
    register_avcodec(&asv2_encoder);
168 422f4df8 Michael Niedermayer
#endif //CONFIG_ASV2_ENCODER
169
#ifdef CONFIG_FFV1_ENCODER
170 5e20f836 Michael Niedermayer
    register_avcodec(&ffv1_encoder);
171 422f4df8 Michael Niedermayer
#endif //CONFIG_FFV1_ENCODER
172
#ifdef CONFIG_SNOW_ENCODER
173 791e7b83 Michael Niedermayer
    register_avcodec(&snow_encoder);
174 422f4df8 Michael Niedermayer
#endif //CONFIG_SNOW_ENCODER
175
#ifdef CONFIG_ZLIB_ENCODER
176 a273bbfb Roberto Togni
    register_avcodec(&zlib_encoder);
177 422f4df8 Michael Niedermayer
#endif //CONFIG_ZLIB_ENCODER
178
#ifdef CONFIG_DVVIDEO_ENCODER
179 6faa4645 Roman Shaposhnik
    register_avcodec(&dvvideo_encoder);
180 422f4df8 Michael Niedermayer
#endif //CONFIG_DVVIDEO_ENCODER
181
#ifdef CONFIG_SONIC_ENCODER
182 54f5fd22 Alex Beregszaszi
    register_avcodec(&sonic_encoder);
183 422f4df8 Michael Niedermayer
#endif //CONFIG_SONIC_ENCODER
184
#ifdef CONFIG_SONIC_LS_ENCODER
185 54f5fd22 Alex Beregszaszi
    register_avcodec(&sonic_ls_encoder);
186 422f4df8 Michael Niedermayer
#endif //CONFIG_SONIC_LS_ENCODER
187 6662ec29 Michael Niedermayer
#ifdef CONFIG_X264
188 422f4df8 Michael Niedermayer
#ifdef CONFIG_X264_ENCODER
189 6662ec29 Michael Niedermayer
    register_avcodec(&x264_encoder);
190 422f4df8 Michael Niedermayer
#endif //CONFIG_X264_ENCODER
191 6662ec29 Michael Niedermayer
#endif
192 bb4c2140 Michael Niedermayer
#ifdef CONFIG_LIBGSM
193
    register_avcodec(&libgsm_encoder);
194
#endif //CONFIG_LIBGSM
195 422f4df8 Michael Niedermayer
#ifdef CONFIG_RAWVIDEO_ENCODER
196 63167088 Roman Shaposhnik
    register_avcodec(&rawvideo_encoder);
197 422f4df8 Michael Niedermayer
#endif //CONFIG_RAWVIDEO_ENCODER
198 2c5ee47d Emiliano Parasassi
#endif /* CONFIG_ENCODERS */
199 771b9a70 Fabrice Bellard
200
    /* decoders */
201
#ifdef CONFIG_DECODERS
202 422f4df8 Michael Niedermayer
#ifdef CONFIG_H263_DECODER
203 771b9a70 Fabrice Bellard
    register_avcodec(&h263_decoder);
204 422f4df8 Michael Niedermayer
#endif //CONFIG_H263_DECODER
205
#ifdef CONFIG_H261_DECODER
206 c6148de2 Michael Niedermayer
    register_avcodec(&h261_decoder);
207 422f4df8 Michael Niedermayer
#endif //CONFIG_H261_DECODER
208
#ifdef CONFIG_MPEG4_DECODER
209 771b9a70 Fabrice Bellard
    register_avcodec(&mpeg4_decoder);
210 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG4_DECODER
211
#ifdef CONFIG_MSMPEG4V1_DECODER
212 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v1_decoder);
213 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V1_DECODER
214
#ifdef CONFIG_MSMPEG4V2_DECODER
215 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v2_decoder);
216 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V2_DECODER
217
#ifdef CONFIG_MSMPEG4V3_DECODER
218 771b9a70 Fabrice Bellard
    register_avcodec(&msmpeg4v3_decoder);
219 422f4df8 Michael Niedermayer
#endif //CONFIG_MSMPEG4V3_DECODER
220
#ifdef CONFIG_WMV1_DECODER
221 771b9a70 Fabrice Bellard
    register_avcodec(&wmv1_decoder);
222 422f4df8 Michael Niedermayer
#endif //CONFIG_WMV1_DECODER
223
#ifdef CONFIG_WMV2_DECODER
224 1457ab52 Michael Niedermayer
    register_avcodec(&wmv2_decoder);
225 422f4df8 Michael Niedermayer
#endif //CONFIG_WMV2_DECODER
226
#ifdef CONFIG_VC9_DECODER
227 4c12e8be Alex Beregszaszi
    register_avcodec(&vc9_decoder);
228 422f4df8 Michael Niedermayer
#endif //CONFIG_VC9_DECODER
229 faf824df Diego Biurrun
/* Reenable when it stops crashing on every file, causing bug report spam.
230 422f4df8 Michael Niedermayer
#ifdef CONFIG_WMV3_DECODER
231 4c12e8be Alex Beregszaszi
    register_avcodec(&wmv3_decoder);
232 422f4df8 Michael Niedermayer
#endif //CONFIG_WMV3_DECODER
233 faf824df Diego Biurrun
*/
234 422f4df8 Michael Niedermayer
#ifdef CONFIG_H263I_DECODER
235 771b9a70 Fabrice Bellard
    register_avcodec(&h263i_decoder);
236 422f4df8 Michael Niedermayer
#endif //CONFIG_H263I_DECODER
237
#ifdef CONFIG_FLV_DECODER
238 dde38422 Michael Niedermayer
    register_avcodec(&flv_decoder);
239 422f4df8 Michael Niedermayer
#endif //CONFIG_FLV_DECODER
240
#ifdef CONFIG_RV10_DECODER
241 771b9a70 Fabrice Bellard
    register_avcodec(&rv10_decoder);
242 422f4df8 Michael Niedermayer
#endif //CONFIG_RV10_DECODER
243
#ifdef CONFIG_RV20_DECODER
244 68b94c35 Michael Niedermayer
    register_avcodec(&rv20_decoder);
245 422f4df8 Michael Niedermayer
#endif //CONFIG_RV20_DECODER
246
#ifdef CONFIG_SVQ1_DECODER
247 be8ffec9 Nick Kurshev
    register_avcodec(&svq1_decoder);
248 422f4df8 Michael Niedermayer
#endif //CONFIG_SVQ1_DECODER
249
#ifdef CONFIG_SVQ3_DECODER
250 8b82a956 Michael Niedermayer
    register_avcodec(&svq3_decoder);
251 422f4df8 Michael Niedermayer
#endif //CONFIG_SVQ3_DECODER
252
#ifdef CONFIG_WMAV1_DECODER
253 1d0d55da Michael Niedermayer
    register_avcodec(&wmav1_decoder);
254 422f4df8 Michael Niedermayer
#endif //CONFIG_WMAV1_DECODER
255
#ifdef CONFIG_WMAV2_DECODER
256 1d0d55da Michael Niedermayer
    register_avcodec(&wmav2_decoder);
257 422f4df8 Michael Niedermayer
#endif //CONFIG_WMAV2_DECODER
258
#ifdef CONFIG_INDEO2_DECODER
259 856dbbff Michael Niedermayer
    register_avcodec(&indeo2_decoder);
260 422f4df8 Michael Niedermayer
#endif //CONFIG_INDEO2_DECODER
261
#ifdef CONFIG_INDEO3_DECODER
262 deabd4fd Mike Melanson
    register_avcodec(&indeo3_decoder);
263 422f4df8 Michael Niedermayer
#endif //CONFIG_INDEO3_DECODER
264
#ifdef CONFIG_TSCC_DECODER
265 d0a0bbd2 Mike Melanson
    register_avcodec(&tscc_decoder);
266 422f4df8 Michael Niedermayer
#endif //CONFIG_TSCC_DECODER
267 e0f80bd7 Reimar Döffinger
#ifdef CONFIG_CSCD_DECODER
268
    register_avcodec(&cscd_decoder);
269
#endif //CONFIG_CSCD_DECODER
270 422f4df8 Michael Niedermayer
#ifdef CONFIG_ULTI_DECODER
271 d0a0bbd2 Mike Melanson
    register_avcodec(&ulti_decoder);
272 422f4df8 Michael Niedermayer
#endif //CONFIG_ULTI_DECODER
273
#ifdef CONFIG_QDRAW_DECODER
274 d08d7142 Mike Melanson
    register_avcodec(&qdraw_decoder);
275 422f4df8 Michael Niedermayer
#endif //CONFIG_QDRAW_DECODER
276
#ifdef CONFIG_XL_DECODER
277 ab711b3c Mike Melanson
    register_avcodec(&xl_decoder);
278 422f4df8 Michael Niedermayer
#endif //CONFIG_XL_DECODER
279
#ifdef CONFIG_QPEG_DECODER
280 acfd8f0f Mike Melanson
    register_avcodec(&qpeg_decoder);
281 422f4df8 Michael Niedermayer
#endif //CONFIG_QPEG_DECODER
282
#ifdef CONFIG_LOCO_DECODER
283 9c7fb608 Mike Melanson
    register_avcodec(&loco_decoder);
284 422f4df8 Michael Niedermayer
#endif //CONFIG_LOCO_DECODER
285
#ifdef CONFIG_WNV1_DECODER
286 a8a15e9d Mike Melanson
    register_avcodec(&wnv1_decoder);
287 422f4df8 Michael Niedermayer
#endif //CONFIG_WNV1_DECODER
288
#ifdef CONFIG_AASC_DECODER
289 589f8220 Mike Melanson
    register_avcodec(&aasc_decoder);
290 422f4df8 Michael Niedermayer
#endif //CONFIG_AASC_DECODER
291 b81f8949 Mike Melanson
#ifdef CONFIG_FRAPS_DECODER
292
    register_avcodec(&fraps_decoder);
293
#endif //CONFIG_FRAPS_DECODER
294 280bd7b7 Zdenek Kabelac
#ifdef CONFIG_FAAD
295 422f4df8 Michael Niedermayer
#ifdef CONFIG_AAC_DECODER
296 280bd7b7 Zdenek Kabelac
    register_avcodec(&aac_decoder);
297 422f4df8 Michael Niedermayer
#endif //CONFIG_AAC_DECODER
298
#ifdef CONFIG_MPEG4AAC_DECODER
299 280bd7b7 Zdenek Kabelac
    register_avcodec(&mpeg4aac_decoder);
300 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG4AAC_DECODER
301 280bd7b7 Zdenek Kabelac
#endif
302 422f4df8 Michael Niedermayer
#ifdef CONFIG_MPEG1VIDEO_DECODER
303 922bc38d Michael Niedermayer
    register_avcodec(&mpeg1video_decoder);
304 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG1VIDEO_DECODER
305
#ifdef CONFIG_MPEG2VIDEO_DECODER
306 922bc38d Michael Niedermayer
    register_avcodec(&mpeg2video_decoder);
307 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG2VIDEO_DECODER
308
#ifdef CONFIG_MPEGVIDEO_DECODER
309 c512b303 Ivan Kalvachev
    register_avcodec(&mpegvideo_decoder);
310 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEGVIDEO_DECODER
311 2e7b4c84 Ivan Kalvachev
#ifdef HAVE_XVMC
312 422f4df8 Michael Niedermayer
#ifdef CONFIG_MPEG_XVMC_DECODER
313 2e7b4c84 Ivan Kalvachev
    register_avcodec(&mpeg_xvmc_decoder);
314 422f4df8 Michael Niedermayer
#endif //CONFIG_MPEG_XVMC_DECODER
315 2e7b4c84 Ivan Kalvachev
#endif
316 422f4df8 Michael Niedermayer
#ifdef CONFIG_DVVIDEO_DECODER
317 020fcc94 Fabrice Bellard
    register_avcodec(&dvvideo_decoder);
318 422f4df8 Michael Niedermayer
#endif //CONFIG_DVVIDEO_DECODER
319
#ifdef CONFIG_MJPEG_DECODER
320 771b9a70 Fabrice Bellard
    register_avcodec(&mjpeg_decoder);
321 422f4df8 Michael Niedermayer
#endif //CONFIG_MJPEG_DECODER
322
#ifdef CONFIG_MJPEGB_DECODER
323 b135d9fb Alex Beregszaszi
    register_avcodec(&mjpegb_decoder);
324 422f4df8 Michael Niedermayer
#endif //CONFIG_MJPEGB_DECODER
325
#ifdef CONFIG_SP5X_DECODER
326 5e83dec4 Alex Beregszaszi
    register_avcodec(&sp5x_decoder);
327 422f4df8 Michael Niedermayer
#endif //CONFIG_SP5X_DECODER
328 6c3890b6 Michael Niedermayer
#ifdef CONFIG_ZLIB
329 422f4df8 Michael Niedermayer
#ifdef CONFIG_PNG_DECODER
330 4eff7cf4 Michael Niedermayer
    register_avcodec(&png_decoder);
331 422f4df8 Michael Niedermayer
#endif //CONFIG_PNG_DECODER
332 6c3890b6 Michael Niedermayer
#endif
333 422f4df8 Michael Niedermayer
#ifdef CONFIG_MP2_DECODER
334 771b9a70 Fabrice Bellard
    register_avcodec(&mp2_decoder);
335 422f4df8 Michael Niedermayer
#endif //CONFIG_MP2_DECODER
336
#ifdef CONFIG_MP3_DECODER
337 771b9a70 Fabrice Bellard
    register_avcodec(&mp3_decoder);
338 422f4df8 Michael Niedermayer
#endif //CONFIG_MP3_DECODER
339
#ifdef CONFIG_MP3ADU_DECODER
340 1ede228a Roberto Togni
    register_avcodec(&mp3adu_decoder);
341 422f4df8 Michael Niedermayer
#endif //CONFIG_MP3ADU_DECODER
342
#ifdef CONFIG_MP3ON4_DECODER
343 d2a7718d Roberto Togni
    register_avcodec(&mp3on4_decoder);
344 422f4df8 Michael Niedermayer
#endif //CONFIG_MP3ON4_DECODER
345
#ifdef CONFIG_MACE3_DECODER
346 3f95e843 François Revol
    register_avcodec(&mace3_decoder);
347 422f4df8 Michael Niedermayer
#endif //CONFIG_MACE3_DECODER
348
#ifdef CONFIG_MACE6_DECODER
349 3f95e843 François Revol
    register_avcodec(&mace6_decoder);
350 422f4df8 Michael Niedermayer
#endif //CONFIG_MACE6_DECODER
351
#ifdef CONFIG_HUFFYUV_DECODER
352 11f18faf Michael Niedermayer
    register_avcodec(&huffyuv_decoder);
353 422f4df8 Michael Niedermayer
#endif //CONFIG_HUFFYUV_DECODER
354
#ifdef CONFIG_FFVHUFF_DECODER
355 f37b9768 Loren Merritt
    register_avcodec(&ffvhuff_decoder);
356 422f4df8 Michael Niedermayer
#endif //CONFIG_FFVHUFF_DECODER
357
#ifdef CONFIG_FFV1_DECODER
358 5e20f836 Michael Niedermayer
    register_avcodec(&ffv1_decoder);
359 422f4df8 Michael Niedermayer
#endif //CONFIG_FFV1_DECODER
360
#ifdef CONFIG_SNOW_DECODER
361 791e7b83 Michael Niedermayer
    register_avcodec(&snow_decoder);
362 422f4df8 Michael Niedermayer
#endif //CONFIG_SNOW_DECODER
363
#ifdef CONFIG_CYUV_DECODER
364 c78f73c8 Mike Melanson
    register_avcodec(&cyuv_decoder);
365 422f4df8 Michael Niedermayer
#endif //CONFIG_CYUV_DECODER
366
#ifdef CONFIG_H264_DECODER
367 0da71265 Michael Niedermayer
    register_avcodec(&h264_decoder);
368 422f4df8 Michael Niedermayer
#endif //CONFIG_H264_DECODER
369
#ifdef CONFIG_VP3_DECODER
370 d86053a4 Mike Melanson
    register_avcodec(&vp3_decoder);
371 422f4df8 Michael Niedermayer
#endif //CONFIG_VP3_DECODER
372 aac064b5 Måns Rullgård
#if (defined CONFIG_THEORA_DECODER && !defined CONFIG_LIBTHEORA)
373 f44ee2c3 Alex Beregszaszi
    register_avcodec(&theora_decoder);
374 422f4df8 Michael Niedermayer
#endif //CONFIG_THEORA_DECODER
375
#ifdef CONFIG_ASV1_DECODER
376 3d2e8cce Michael Niedermayer
    register_avcodec(&asv1_decoder);
377 422f4df8 Michael Niedermayer
#endif //CONFIG_ASV1_DECODER
378
#ifdef CONFIG_ASV2_DECODER
379 9b56edf5 Michael Niedermayer
    register_avcodec(&asv2_decoder);
380 422f4df8 Michael Niedermayer
#endif //CONFIG_ASV2_DECODER
381
#ifdef CONFIG_VCR1_DECODER
382 be3564ed Michael Niedermayer
    register_avcodec(&vcr1_decoder);
383 422f4df8 Michael Niedermayer
#endif //CONFIG_VCR1_DECODER
384
#ifdef CONFIG_CLJR_DECODER
385 3aff069b Alex Beregszaszi
    register_avcodec(&cljr_decoder);
386 422f4df8 Michael Niedermayer
#endif //CONFIG_CLJR_DECODER
387
#ifdef CONFIG_FOURXM_DECODER
388 8809cfee Michael Niedermayer
    register_avcodec(&fourxm_decoder);
389 422f4df8 Michael Niedermayer
#endif //CONFIG_FOURXM_DECODER
390
#ifdef CONFIG_MDEC_DECODER
391 c3bf0288 Michael Niedermayer
    register_avcodec(&mdec_decoder);
392 422f4df8 Michael Niedermayer
#endif //CONFIG_MDEC_DECODER
393
#ifdef CONFIG_ROQ_DECODER
394 3ef8be2b Mike Melanson
    register_avcodec(&roq_decoder);
395 422f4df8 Michael Niedermayer
#endif //CONFIG_ROQ_DECODER
396
#ifdef CONFIG_INTERPLAY_VIDEO_DECODER
397 3ef8be2b Mike Melanson
    register_avcodec(&interplay_video_decoder);
398 422f4df8 Michael Niedermayer
#endif //CONFIG_INTERPLAY_VIDEO_DECODER
399
#ifdef CONFIG_XAN_WC3_DECODER
400 9937e686 Mike Melanson
    register_avcodec(&xan_wc3_decoder);
401 422f4df8 Michael Niedermayer
#endif //CONFIG_XAN_WC3_DECODER
402
#ifdef CONFIG_RPZA_DECODER
403 2fdf638b Mike Melanson
    register_avcodec(&rpza_decoder);
404 422f4df8 Michael Niedermayer
#endif //CONFIG_RPZA_DECODER
405
#ifdef CONFIG_CINEPAK_DECODER
406 2fdf638b Mike Melanson
    register_avcodec(&cinepak_decoder);
407 422f4df8 Michael Niedermayer
#endif //CONFIG_CINEPAK_DECODER
408
#ifdef CONFIG_MSRLE_DECODER
409 2fdf638b Mike Melanson
    register_avcodec(&msrle_decoder);
410 422f4df8 Michael Niedermayer
#endif //CONFIG_MSRLE_DECODER
411
#ifdef CONFIG_MSVIDEO1_DECODER
412 2fdf638b Mike Melanson
    register_avcodec(&msvideo1_decoder);
413 422f4df8 Michael Niedermayer
#endif //CONFIG_MSVIDEO1_DECODER
414
#ifdef CONFIG_VQA_DECODER
415 6955a882 Mike Melanson
    register_avcodec(&vqa_decoder);
416 422f4df8 Michael Niedermayer
#endif //CONFIG_VQA_DECODER
417
#ifdef CONFIG_IDCIN_DECODER
418 4120a53a Mike Melanson
    register_avcodec(&idcin_decoder);
419 422f4df8 Michael Niedermayer
#endif //CONFIG_IDCIN_DECODER
420
#ifdef CONFIG_EIGHTBPS_DECODER
421 1dc1ed99 Roberto Togni
    register_avcodec(&eightbps_decoder);
422 422f4df8 Michael Niedermayer
#endif //CONFIG_EIGHTBPS_DECODER
423
#ifdef CONFIG_SMC_DECODER
424 11e29a41 Mike Melanson
    register_avcodec(&smc_decoder);
425 422f4df8 Michael Niedermayer
#endif //CONFIG_SMC_DECODER
426
#ifdef CONFIG_FLIC_DECODER
427 42cad81a Mike Melanson
    register_avcodec(&flic_decoder);
428 422f4df8 Michael Niedermayer
#endif //CONFIG_FLIC_DECODER
429
#ifdef CONFIG_TRUEMOTION1_DECODER
430 9a4117d5 Mike Melanson
    register_avcodec(&truemotion1_decoder);
431 422f4df8 Michael Niedermayer
#endif //CONFIG_TRUEMOTION1_DECODER
432 64af6168 Mike Melanson
#ifdef CONFIG_TRUEMOTION2_DECODER
433
    register_avcodec(&truemotion2_decoder);
434
#endif //CONFIG_TRUEMOTION2_DECODER
435 422f4df8 Michael Niedermayer
#ifdef CONFIG_VMDVIDEO_DECODER
436 fafa0b75 Mike Melanson
    register_avcodec(&vmdvideo_decoder);
437 422f4df8 Michael Niedermayer
#endif //CONFIG_VMDVIDEO_DECODER
438
#ifdef CONFIG_VMDAUDIO_DECODER
439 fafa0b75 Mike Melanson
    register_avcodec(&vmdaudio_decoder);
440 422f4df8 Michael Niedermayer
#endif //CONFIG_VMDAUDIO_DECODER
441
#ifdef CONFIG_MSZH_DECODER
442 a273bbfb Roberto Togni
    register_avcodec(&mszh_decoder);
443 422f4df8 Michael Niedermayer
#endif //CONFIG_MSZH_DECODER
444
#ifdef CONFIG_ZLIB_DECODER
445 a273bbfb Roberto Togni
    register_avcodec(&zlib_decoder);
446 422f4df8 Michael Niedermayer
#endif //CONFIG_ZLIB_DECODER
447
#ifdef CONFIG_SONIC_DECODER
448 54f5fd22 Alex Beregszaszi
    register_avcodec(&sonic_decoder);
449 422f4df8 Michael Niedermayer
#endif //CONFIG_SONIC_DECODER
450 771b9a70 Fabrice Bellard
#ifdef CONFIG_AC3
451 422f4df8 Michael Niedermayer
#ifdef CONFIG_AC3_DECODER
452 771b9a70 Fabrice Bellard
    register_avcodec(&ac3_decoder);
453 422f4df8 Michael Niedermayer
#endif //CONFIG_AC3_DECODER
454 771b9a70 Fabrice Bellard
#endif
455 23c99253 Michael Niedermayer
#ifdef CONFIG_DTS
456 422f4df8 Michael Niedermayer
#ifdef CONFIG_DTS_DECODER
457 23c99253 Michael Niedermayer
    register_avcodec(&dts_decoder);
458 422f4df8 Michael Niedermayer
#endif //CONFIG_DTS_DECODER
459 23c99253 Michael Niedermayer
#endif
460 422f4df8 Michael Niedermayer
#ifdef CONFIG_RA_144_DECODER
461 b8414bbd Nick Kurshev
    register_avcodec(&ra_144_decoder);
462 422f4df8 Michael Niedermayer
#endif //CONFIG_RA_144_DECODER
463
#ifdef CONFIG_RA_288_DECODER
464 b8414bbd Nick Kurshev
    register_avcodec(&ra_288_decoder);
465 422f4df8 Michael Niedermayer
#endif //CONFIG_RA_288_DECODER
466
#ifdef CONFIG_ROQ_DPCM_DECODER
467 3ef8be2b Mike Melanson
    register_avcodec(&roq_dpcm_decoder);
468 422f4df8 Michael Niedermayer
#endif //CONFIG_ROQ_DPCM_DECODER
469
#ifdef CONFIG_INTERPLAY_DPCM_DECODER
470 3ef8be2b Mike Melanson
    register_avcodec(&interplay_dpcm_decoder);
471 422f4df8 Michael Niedermayer
#endif //CONFIG_INTERPLAY_DPCM_DECODER
472
#ifdef CONFIG_XAN_DPCM_DECODER
473 9937e686 Mike Melanson
    register_avcodec(&xan_dpcm_decoder);
474 422f4df8 Michael Niedermayer
#endif //CONFIG_XAN_DPCM_DECODER
475
#ifdef CONFIG_SOL_DPCM_DECODER
476 d08d7142 Mike Melanson
    register_avcodec(&sol_dpcm_decoder);
477 422f4df8 Michael Niedermayer
#endif //CONFIG_SOL_DPCM_DECODER
478
#ifdef CONFIG_QTRLE_DECODER
479 070ed1bc Mike Melanson
    register_avcodec(&qtrle_decoder);
480 422f4df8 Michael Niedermayer
#endif //CONFIG_QTRLE_DECODER
481
#ifdef CONFIG_FLAC_DECODER
482 ac2570a8 Michael Niedermayer
    register_avcodec(&flac_decoder);
483 422f4df8 Michael Niedermayer
#endif //CONFIG_FLAC_DECODER
484
#ifdef CONFIG_SHORTEN_DECODER
485 85ad5695 Michael Niedermayer
    register_avcodec(&shorten_decoder);
486 422f4df8 Michael Niedermayer
#endif //CONFIG_SHORTEN_DECODER
487
#ifdef CONFIG_ALAC_DECODER
488 6d6d7970 Mike Melanson
    register_avcodec(&alac_decoder);
489 422f4df8 Michael Niedermayer
#endif //CONFIG_ALAC_DECODER
490
#ifdef CONFIG_WS_SND1_DECODER
491 034eeaa1 Mike Melanson
    register_avcodec(&ws_snd1_decoder);
492 422f4df8 Michael Niedermayer
#endif //CONFIG_WS_SND1_DECODER
493 0bde73d9 Michael Niedermayer
#ifdef CONFIG_VORBIS_DECODER
494
    register_avcodec(&vorbis_decoder);
495
#endif
496 bb4c2140 Michael Niedermayer
#ifdef CONFIG_LIBGSM
497
    register_avcodec(&libgsm_decoder);
498
#endif //CONFIG_LIBGSM
499 d9b1c197 Roberto Togni
#ifdef CONFIG_QDM2_DECODER
500
    register_avcodec(&qdm2_decoder);
501
#endif //CONFIG_QDM2_DECODER
502 e0f7e329 Benjamin Larsson
#ifdef CONFIG_COOK_DECODER
503
    register_avcodec(&cook_decoder);
504
#endif //CONFIG_COOK_DECODER
505 bf3027c8 Diego Biurrun
#ifdef CONFIG_TRUESPEECH_DECODER
506
    register_avcodec(&truespeech_decoder);
507
#endif //CONFIG_TRUESPEECH_DECODER
508 a24c4a2a Alex Beregszaszi
#ifdef CONFIG_TTA_DECODER
509
    register_avcodec(&tta_decoder);
510
#endif //CONFIG_TTA_DECODER
511 2c5ee47d Emiliano Parasassi
#ifdef CONFIG_RAWVIDEO_DECODER
512
    register_avcodec(&rawvideo_decoder);
513
#endif //CONFIG_RAWVIDEO_DECODER
514 771b9a70 Fabrice Bellard
#endif /* CONFIG_DECODERS */
515
516 891f64b3 joca@rixmail.se
#ifdef AMR_NB
517 422f4df8 Michael Niedermayer
#ifdef CONFIG_AMR_NB_DECODER
518 891f64b3 joca@rixmail.se
    register_avcodec(&amr_nb_decoder);
519 422f4df8 Michael Niedermayer
#endif //CONFIG_AMR_NB_DECODER
520 fc384777 Mike Melanson
#ifdef CONFIG_ENCODERS
521 422f4df8 Michael Niedermayer
#ifdef CONFIG_AMR_NB_ENCODER
522 bc634f6f Zdenek Kabelac
    register_avcodec(&amr_nb_encoder);
523 422f4df8 Michael Niedermayer
#endif //CONFIG_AMR_NB_ENCODER
524 fc384777 Mike Melanson
#endif //CONFIG_ENCODERS
525 891f64b3 joca@rixmail.se
#endif /* AMR_NB */
526 d663a1fd Michael Niedermayer
527
#ifdef AMR_WB
528 422f4df8 Michael Niedermayer
#ifdef CONFIG_AMR_WB_DECODER
529 d663a1fd Michael Niedermayer
    register_avcodec(&amr_wb_decoder);
530 422f4df8 Michael Niedermayer
#endif //CONFIG_AMR_WB_DECODER
531 fc384777 Mike Melanson
#ifdef CONFIG_ENCODERS
532 422f4df8 Michael Niedermayer
#ifdef CONFIG_AMR_WB_ENCODER
533 d663a1fd Michael Niedermayer
    register_avcodec(&amr_wb_encoder);
534 422f4df8 Michael Niedermayer
#endif //CONFIG_AMR_WB_ENCODER
535 fc384777 Mike Melanson
#endif //CONFIG_ENCODERS
536 d663a1fd Michael Niedermayer
#endif /* AMR_WB */
537
538 9fa62f2a Måns Rullgård
#ifdef CONFIG_BMP_DECODER
539
    register_avcodec(&bmp_decoder);
540
#endif
541
542 771b9a70 Fabrice Bellard
    /* pcm codecs */
543 2c5ee47d Emiliano Parasassi
#if defined (CONFIG_ENCODERS) && defined (CONFIG_DECODERS)
544
    #define PCM_CODEC(id, name) \
545
        register_avcodec(& name ## _encoder); \
546
        register_avcodec(& name ## _decoder);
547
#elif defined (CONFIG_ENCODERS)
548
    #define PCM_CODEC(id, name) \
549
        register_avcodec(& name ## _encoder);
550
#elif defined (CONFIG_DECODERS)
551
    #define PCM_CODEC(id, name) \
552
        register_avcodec(& name ## _decoder);
553 fc384777 Mike Melanson
#endif
554
555 b461b3bc Reimar Döffinger
PCM_CODEC(CODEC_ID_PCM_S32LE, pcm_s32le);
556
PCM_CODEC(CODEC_ID_PCM_S32BE, pcm_s32be);
557
PCM_CODEC(CODEC_ID_PCM_U32LE, pcm_u32le);
558
PCM_CODEC(CODEC_ID_PCM_U32BE, pcm_u32be);
559
PCM_CODEC(CODEC_ID_PCM_S24LE, pcm_s24le);
560
PCM_CODEC(CODEC_ID_PCM_S24BE, pcm_s24be);
561
PCM_CODEC(CODEC_ID_PCM_U24LE, pcm_u24le);
562
PCM_CODEC(CODEC_ID_PCM_U24BE, pcm_u24be);
563
PCM_CODEC(CODEC_ID_PCM_S24DAUD, pcm_s24daud);
564 771b9a70 Fabrice Bellard
PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
565
PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
566
PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
567
PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
568
PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
569
PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
570
PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
571
PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
572
573 0147f198 François Revol
    /* adpcm codecs */
574
PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
575
PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
576 9937e686 Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3);
577
PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4);
578 2fdf638b Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws);
579 7d8379f2 Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
580 0147f198 François Revol
PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
581 4b465299 Michael Niedermayer
PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);
582 fc384777 Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_XA, adpcm_xa);
583
PCM_CODEC(CODEC_ID_ADPCM_ADX, adpcm_adx);
584 7d8379f2 Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_EA, adpcm_ea);
585 13b4c18e Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_G726, adpcm_g726);
586 b3bfb299 Mike Melanson
PCM_CODEC(CODEC_ID_ADPCM_CT, adpcm_ct);
587 659c3692 Alex Beregszaszi
PCM_CODEC(CODEC_ID_ADPCM_SWF, adpcm_swf);
588 2ff4524e Vidar Madsen
PCM_CODEC(CODEC_ID_ADPCM_YAMAHA, adpcm_yamaha);
589 771b9a70 Fabrice Bellard
#undef PCM_CODEC
590 8424cf50 Fabrice Bellard
591 2c5ee47d Emiliano Parasassi
    /* subtitles */
592 348e52c9 Guillaume Poirier
#ifdef CONFIG_DVDSUB_DECODER
593
    register_avcodec(&dvdsub_decoder);
594
#endif
595
#ifdef CONFIG_DVDSUB_ENCODER
596 689abe56 Wolfram Gloger
    register_avcodec(&dvdsub_encoder);
597 2c5ee47d Emiliano Parasassi
#endif
598
599 348e52c9 Guillaume Poirier
#ifdef CONFIG_DVBSUB_DECODER
600 c6ec28b1 Michael Niedermayer
    register_avcodec(&dvbsub_decoder);
601 2c5ee47d Emiliano Parasassi
#endif
602 348e52c9 Guillaume Poirier
#ifdef CONFIG_DVBSUB_ENCODER
603
    register_avcodec(&dvbsub_encoder);
604
#endif
605 240c1657 Fabrice Bellard
606 115329f1 Diego Biurrun
    /* parsers */
607 8424cf50 Fabrice Bellard
    av_register_codec_parser(&mpegvideo_parser);
608
    av_register_codec_parser(&mpeg4video_parser);
609 8b975b7c Michael Niedermayer
#if defined(CONFIG_H261_DECODER) || defined(CONFIG_H261_ENCODER)
610 c6148de2 Michael Niedermayer
    av_register_codec_parser(&h261_parser);
611 8b975b7c Michael Niedermayer
#endif
612 8424cf50 Fabrice Bellard
    av_register_codec_parser(&h263_parser);
613 8b975b7c Michael Niedermayer
#ifdef CONFIG_H264_DECODER
614 8424cf50 Fabrice Bellard
    av_register_codec_parser(&h264_parser);
615 8b975b7c Michael Niedermayer
#endif
616 8e6325b9 Michael Niedermayer
    av_register_codec_parser(&mjpeg_parser);
617 99f06236 Michael Niedermayer
    av_register_codec_parser(&pnm_parser);
618 8424cf50 Fabrice Bellard
619
    av_register_codec_parser(&mpegaudio_parser);
620
    av_register_codec_parser(&ac3_parser);
621 348e52c9 Guillaume Poirier
622
#ifdef CONFIG_DVDSUB_DECODER
623 240c1657 Fabrice Bellard
    av_register_codec_parser(&dvdsub_parser);
624 348e52c9 Guillaume Poirier
#endif
625
#ifdef CONFIG_DVBSUB_DECODER
626 c6ec28b1 Michael Niedermayer
    av_register_codec_parser(&dvbsub_parser);
627 348e52c9 Guillaume Poirier
#endif
628 da46276f Måns Rullgård
    av_register_codec_parser(&aac_parser);
629 771b9a70 Fabrice Bellard
}