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