808
|
1 /*
|
|
2 * Utils for libavcodec
|
|
3 * Copyright (c) 2002 Fabrice Bellard.
|
|
4 *
|
|
5 * This file is part of FFmpeg.
|
|
6 *
|
|
7 * FFmpeg is free software; you can redistribute it and/or
|
|
8 * modify it under the terms of the GNU Lesser General Public
|
|
9 * License as published by the Free Software Foundation; either
|
|
10 * version 2.1 of the License, or (at your option) any later version.
|
|
11 *
|
|
12 * FFmpeg is distributed in the hope that it will be useful,
|
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
15 * Lesser General Public License for more details.
|
|
16 *
|
|
17 * You should have received a copy of the GNU Lesser General Public
|
|
18 * License along with FFmpeg; if not, write to the Free Software
|
|
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
20 */
|
|
21
|
|
22 /**
|
|
23 * @file allcodecs.c
|
|
24 * Utils for libavcodec.
|
|
25 */
|
|
26
|
|
27 #include "avcodec.h"
|
|
28
|
|
29 /* If you do not call this function, then you can select exactly which
|
|
30 formats you want to support */
|
|
31
|
|
32 /**
|
|
33 * simple call to register all the codecs.
|
|
34 */
|
|
35 void avcodec_register_all(void)
|
|
36 {
|
|
37 static int inited = 0;
|
|
38
|
|
39 if (inited != 0)
|
|
40 return;
|
|
41 inited = 1;
|
|
42
|
|
43 #ifdef CONFIG_SHORTEN_DECODER
|
|
44 register_avcodec(&shorten_decoder);
|
|
45 #endif //CONFIG_SHORTEN_DECODER
|
|
46 #ifdef CONFIG_ALAC_DECODER
|
|
47 register_avcodec(&alac_decoder);
|
|
48 #endif //CONFIG_ALAC_DECODER
|
|
49 #ifdef CONFIG_WS_SND1_DECODER
|
|
50 register_avcodec(&ws_snd1_decoder);
|
|
51 #endif //CONFIG_WS_SND1_DECODER
|
|
52 #ifdef CONFIG_COOK_DECODER
|
|
53 register_avcodec(&cook_decoder);
|
|
54 #endif //CONFIG_COOK_DECODER
|
|
55 #ifdef CONFIG_TRUESPEECH_DECODER
|
|
56 register_avcodec(&truespeech_decoder);
|
|
57 #endif //CONFIG_TRUESPEECH_DECODER
|
|
58 #ifdef CONFIG_TTA_DECODER
|
|
59 register_avcodec(&tta_decoder);
|
|
60 #endif //CONFIG_TTA_DECODER
|
|
61 #ifdef CONFIG_WAVPACK_DECODER
|
|
62 register_avcodec(&wavpack_decoder);
|
|
63 #endif //CONFIG_WAVPACK_DECODER
|
|
64
|
|
65 /* pcm codecs */
|
|
66 #ifdef CONFIG_PCM_S32LE_DECODER
|
|
67 register_avcodec(&pcm_s32le_decoder);
|
|
68 #endif
|
|
69 #ifdef CONFIG_PCM_S32LE_ENCODER
|
|
70 register_avcodec(&pcm_s32le_encoder);
|
|
71 #endif
|
|
72 #ifdef CONFIG_PCM_S32BE_DECODER
|
|
73 register_avcodec(&pcm_s32be_decoder);
|
|
74 #endif
|
|
75 #ifdef CONFIG_PCM_S32BE_ENCODER
|
|
76 register_avcodec(&pcm_s32be_encoder);
|
|
77 #endif
|
|
78 #ifdef CONFIG_PCM_U32LE_DECODER
|
|
79 register_avcodec(&pcm_u32le_decoder);
|
|
80 #endif
|
|
81 #ifdef CONFIG_PCM_U32LE_ENCODER
|
|
82 register_avcodec(&pcm_u32le_encoder);
|
|
83 #endif
|
|
84 #ifdef CONFIG_PCM_U32BE_DECODER
|
|
85 register_avcodec(&pcm_u32be_decoder);
|
|
86 #endif
|
|
87 #ifdef CONFIG_PCM_U32BE_ENCODER
|
|
88 register_avcodec(&pcm_u32be_encoder);
|
|
89 #endif
|
|
90 #ifdef CONFIG_PCM_S24LE_DECODER
|
|
91 register_avcodec(&pcm_s24le_decoder);
|
|
92 #endif
|
|
93 #ifdef CONFIG_PCM_S24LE_ENCODER
|
|
94 register_avcodec(&pcm_s24le_encoder);
|
|
95 #endif
|
|
96 #ifdef CONFIG_PCM_S24BE_DECODER
|
|
97 register_avcodec(&pcm_s24be_decoder);
|
|
98 #endif
|
|
99 #ifdef CONFIG_PCM_S24BE_ENCODER
|
|
100 register_avcodec(&pcm_s24be_encoder);
|
|
101 #endif
|
|
102 #ifdef CONFIG_PCM_U24LE_DECODER
|
|
103 register_avcodec(&pcm_u24le_decoder);
|
|
104 #endif
|
|
105 #ifdef CONFIG_PCM_U24LE_ENCODER
|
|
106 register_avcodec(&pcm_u24le_encoder);
|
|
107 #endif
|
|
108 #ifdef CONFIG_PCM_U24BE_DECODER
|
|
109 register_avcodec(&pcm_u24be_decoder);
|
|
110 #endif
|
|
111 #ifdef CONFIG_PCM_U24BE_ENCODER
|
|
112 register_avcodec(&pcm_u24be_encoder);
|
|
113 #endif
|
|
114 #ifdef CONFIG_PCM_S24DAUD_DECODER
|
|
115 register_avcodec(&pcm_s24daud_decoder);
|
|
116 #endif
|
|
117 #ifdef CONFIG_PCM_S24DAUD_ENCODER
|
|
118 register_avcodec(&pcm_s24daud_encoder);
|
|
119 #endif
|
|
120 #ifdef CONFIG_PCM_S16LE_DECODER
|
|
121 register_avcodec(&pcm_s16le_decoder);
|
|
122 #endif
|
|
123 #ifdef CONFIG_PCM_S16LE_ENCODER
|
|
124 register_avcodec(&pcm_s16le_encoder);
|
|
125 #endif
|
|
126 #ifdef CONFIG_PCM_S16BE_DECODER
|
|
127 register_avcodec(&pcm_s16be_decoder);
|
|
128 #endif
|
|
129 #ifdef CONFIG_PCM_S16BE_ENCODER
|
|
130 register_avcodec(&pcm_s16be_encoder);
|
|
131 #endif
|
|
132 #ifdef CONFIG_PCM_U16LE_DECODER
|
|
133 register_avcodec(&pcm_u16le_decoder);
|
|
134 #endif
|
|
135 #ifdef CONFIG_PCM_U16LE_ENCODER
|
|
136 register_avcodec(&pcm_u16le_encoder);
|
|
137 #endif
|
|
138 #ifdef CONFIG_PCM_U16BE_DECODER
|
|
139 register_avcodec(&pcm_u16be_decoder);
|
|
140 #endif
|
|
141 #ifdef CONFIG_PCM_U16BE_ENCODER
|
|
142 register_avcodec(&pcm_u16be_encoder);
|
|
143 #endif
|
|
144 #ifdef CONFIG_PCM_S8_DECODER
|
|
145 register_avcodec(&pcm_s8_decoder);
|
|
146 #endif
|
|
147 #ifdef CONFIG_PCM_S8_ENCODER
|
|
148 register_avcodec(&pcm_s8_encoder);
|
|
149 #endif
|
|
150 #ifdef CONFIG_PCM_U8_DECODER
|
|
151 register_avcodec(&pcm_u8_decoder);
|
|
152 #endif
|
|
153 #ifdef CONFIG_PCM_U8_ENCODER
|
|
154 register_avcodec(&pcm_u8_encoder);
|
|
155 #endif
|
|
156 #ifdef CONFIG_PCM_ALAW_DECODER
|
|
157 register_avcodec(&pcm_alaw_decoder);
|
|
158 #endif
|
|
159 #ifdef CONFIG_PCM_ALAW_ENCODER
|
|
160 register_avcodec(&pcm_alaw_encoder);
|
|
161 #endif
|
|
162 #ifdef CONFIG_PCM_MULAW_DECODER
|
|
163 register_avcodec(&pcm_mulaw_decoder);
|
|
164 #endif
|
|
165 #ifdef CONFIG_PCM_MULAW_ENCODER
|
|
166 register_avcodec(&pcm_mulaw_encoder);
|
|
167 #endif
|
|
168
|
|
169 /* adpcm codecs */
|
|
170 #ifdef CONFIG_ADPCM_IMA_QT_DECODER
|
|
171 register_avcodec(&adpcm_ima_qt_decoder);
|
|
172 #endif
|
|
173 #ifdef CONFIG_ADPCM_IMA_QT_ENCODER
|
|
174 register_avcodec(&adpcm_ima_qt_encoder);
|
|
175 #endif
|
|
176 #ifdef CONFIG_ADPCM_IMA_WAV_DECODER
|
|
177 register_avcodec(&adpcm_ima_wav_decoder);
|
|
178 #endif
|
|
179 #ifdef CONFIG_ADPCM_IMA_WAV_ENCODER
|
|
180 register_avcodec(&adpcm_ima_wav_encoder);
|
|
181 #endif
|
|
182 #ifdef CONFIG_ADPCM_IMA_DK3_DECODER
|
|
183 register_avcodec(&adpcm_ima_dk3_decoder);
|
|
184 #endif
|
|
185 #ifdef CONFIG_ADPCM_IMA_DK3_ENCODER
|
|
186 register_avcodec(&adpcm_ima_dk3_encoder);
|
|
187 #endif
|
|
188 #ifdef CONFIG_ADPCM_IMA_DK4_DECODER
|
|
189 register_avcodec(&adpcm_ima_dk4_decoder);
|
|
190 #endif
|
|
191 #ifdef CONFIG_ADPCM_IMA_DK4_ENCODER
|
|
192 register_avcodec(&adpcm_ima_dk4_encoder);
|
|
193 #endif
|
|
194 #ifdef CONFIG_ADPCM_IMA_WS_DECODER
|
|
195 register_avcodec(&adpcm_ima_ws_decoder);
|
|
196 #endif
|
|
197 #ifdef CONFIG_ADPCM_IMA_WS_ENCODER
|
|
198 register_avcodec(&adpcm_ima_ws_encoder);
|
|
199 #endif
|
|
200 #ifdef CONFIG_ADPCM_IMA_SMJPEG_DECODER
|
|
201 register_avcodec(&adpcm_ima_smjpeg_decoder);
|
|
202 #endif
|
|
203 #ifdef CONFIG_ADPCM_IMA_SMJPEG_ENCODER
|
|
204 register_avcodec(&adpcm_ima_smjpeg_encoder);
|
|
205 #endif
|
|
206 #ifdef CONFIG_ADPCM_MS_DECODER
|
|
207 register_avcodec(&adpcm_ms_decoder);
|
|
208 #endif
|
|
209 #ifdef CONFIG_ADPCM_MS_ENCODER
|
|
210 register_avcodec(&adpcm_ms_encoder);
|
|
211 #endif
|
|
212 #ifdef CONFIG_ADPCM_4XM_DECODER
|
|
213 register_avcodec(&adpcm_4xm_decoder);
|
|
214 #endif
|
|
215 #ifdef CONFIG_ADPCM_4XM_ENCODER
|
|
216 register_avcodec(&adpcm_4xm_encoder);
|
|
217 #endif
|
|
218 #ifdef CONFIG_ADPCM_XA_DECODER
|
|
219 register_avcodec(&adpcm_xa_decoder);
|
|
220 #endif
|
|
221 #ifdef CONFIG_ADPCM_XA_ENCODER
|
|
222 register_avcodec(&adpcm_xa_encoder);
|
|
223 #endif
|
|
224 #ifdef CONFIG_ADPCM_ADX_DECODER
|
|
225 register_avcodec(&adpcm_adx_decoder);
|
|
226 #endif
|
|
227 #ifdef CONFIG_ADPCM_ADX_ENCODER
|
|
228 register_avcodec(&adpcm_adx_encoder);
|
|
229 #endif
|
|
230 #ifdef CONFIG_ADPCM_EA_DECODER
|
|
231 register_avcodec(&adpcm_ea_decoder);
|
|
232 #endif
|
|
233 #ifdef CONFIG_ADPCM_EA_ENCODER
|
|
234 register_avcodec(&adpcm_ea_encoder);
|
|
235 #endif
|
|
236 #ifdef CONFIG_ADPCM_G726_DECODER
|
|
237 register_avcodec(&adpcm_g726_decoder);
|
|
238 #endif
|
|
239 #ifdef CONFIG_ADPCM_G726_ENCODER
|
|
240 register_avcodec(&adpcm_g726_encoder);
|
|
241 #endif
|
|
242 #ifdef CONFIG_ADPCM_CT_DECODER
|
|
243 register_avcodec(&adpcm_ct_decoder);
|
|
244 #endif
|
|
245 #ifdef CONFIG_ADPCM_CT_ENCODER
|
|
246 register_avcodec(&adpcm_ct_encoder);
|
|
247 #endif
|
|
248 #ifdef CONFIG_ADPCM_SWF_DECODER
|
|
249 register_avcodec(&adpcm_swf_decoder);
|
|
250 #endif
|
|
251 #ifdef CONFIG_ADPCM_SWF_ENCODER
|
|
252 register_avcodec(&adpcm_swf_encoder);
|
|
253 #endif
|
|
254 #ifdef CONFIG_ADPCM_YAMAHA_DECODER
|
|
255 register_avcodec(&adpcm_yamaha_decoder);
|
|
256 #endif
|
|
257 #ifdef CONFIG_ADPCM_YAMAHA_ENCODER
|
|
258 register_avcodec(&adpcm_yamaha_encoder);
|
|
259 #endif
|
|
260 #ifdef CONFIG_ADPCM_SBPRO_4_DECODER
|
|
261 register_avcodec(&adpcm_sbpro_4_decoder);
|
|
262 #endif
|
|
263 #ifdef CONFIG_ADPCM_SBPRO_4_ENCODER
|
|
264 register_avcodec(&adpcm_sbpro_4_encoder);
|
|
265 #endif
|
|
266 #ifdef CONFIG_ADPCM_SBPRO_3_DECODER
|
|
267 register_avcodec(&adpcm_sbpro_3_decoder);
|
|
268 #endif
|
|
269 #ifdef CONFIG_ADPCM_SBPRO_3_ENCODER
|
|
270 register_avcodec(&adpcm_sbpro_3_encoder);
|
|
271 #endif
|
|
272 #ifdef CONFIG_ADPCM_SBPRO_2_DECODER
|
|
273 register_avcodec(&adpcm_sbpro_2_decoder);
|
|
274 #endif
|
|
275 #ifdef CONFIG_ADPCM_SBPRO_2_ENCODER
|
|
276 register_avcodec(&adpcm_sbpro_2_encoder);
|
|
277 #endif
|
|
278
|
|
279 /* parsers */
|
|
280
|
|
281 av_register_bitstream_filter(&dump_extradata_bsf);
|
|
282 av_register_bitstream_filter(&remove_extradata_bsf);
|
|
283 av_register_bitstream_filter(&noise_bsf);
|
|
284 }
|
|
285
|