3 * Copyright (c) 2002 Fabrice Bellard.
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.
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.
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
22 * Utils for libavcodec.
27 /* If you do not call this function, then you can select exactly which
28 formats you want to support */
31 * simple call to register all the codecs.
33 void avcodec_register_all(void)
35 static int inited = 0;
42 #ifdef CONFIG_ENCODERS
43 register_avcodec(&ac3_encoder);
44 register_avcodec(&mp2_encoder);
46 register_avcodec(&mp3lame_encoder);
49 register_avcodec(&oggvorbis_encoder);
50 register_avcodec(&oggvorbis_decoder);
52 register_avcodec(&mpeg1video_encoder);
53 // register_avcodec(&h264_encoder);
55 register_avcodec(&mpeg2video_encoder);
56 register_avcodec(&h263_encoder);
57 register_avcodec(&h263p_encoder);
58 register_avcodec(&flv_encoder);
59 register_avcodec(&rv10_encoder);
60 register_avcodec(&mpeg4_encoder);
61 register_avcodec(&msmpeg4v1_encoder);
62 register_avcodec(&msmpeg4v2_encoder);
63 register_avcodec(&msmpeg4v3_encoder);
64 register_avcodec(&wmv1_encoder);
65 register_avcodec(&wmv2_encoder);
67 register_avcodec(&mjpeg_encoder);
68 register_avcodec(&ljpeg_encoder);
69 register_avcodec(&huffyuv_encoder);
70 register_avcodec(&asv1_encoder);
71 register_avcodec(&asv2_encoder);
72 register_avcodec(&ffv1_encoder);
73 #endif /* CONFIG_ENCODERS */
74 register_avcodec(&rawvideo_encoder);
75 register_avcodec(&rawvideo_decoder);
78 #ifdef CONFIG_DECODERS
80 register_avcodec(&h263_decoder);
81 register_avcodec(&mpeg4_decoder);
82 register_avcodec(&msmpeg4v1_decoder);
83 register_avcodec(&msmpeg4v2_decoder);
84 register_avcodec(&msmpeg4v3_decoder);
85 register_avcodec(&wmv1_decoder);
86 register_avcodec(&wmv2_decoder);
87 register_avcodec(&h263i_decoder);
88 register_avcodec(&flv_decoder);
89 register_avcodec(&rv10_decoder);
90 register_avcodec(&svq1_decoder);
91 register_avcodec(&svq3_decoder);
92 register_avcodec(&wmav1_decoder);
93 register_avcodec(&wmav2_decoder);
94 register_avcodec(&indeo3_decoder);
96 register_avcodec(&aac_decoder);
97 register_avcodec(&mpeg4aac_decoder);
100 register_avcodec(&mpeg1video_decoder);
101 register_avcodec(&mpeg2video_decoder);
103 register_avcodec(&mpeg_xvmc_decoder);
105 register_avcodec(&dvvideo_decoder);
106 register_avcodec(&mjpeg_decoder);
107 register_avcodec(&mjpegb_decoder);
108 register_avcodec(&mp2_decoder);
109 register_avcodec(&mp3_decoder);
110 register_avcodec(&mace3_decoder);
111 register_avcodec(&mace6_decoder);
112 register_avcodec(&huffyuv_decoder);
113 register_avcodec(&ffv1_decoder);
114 register_avcodec(&cyuv_decoder);
115 register_avcodec(&h264_decoder);
116 register_avcodec(&vp3_decoder);
117 register_avcodec(&asv1_decoder);
118 register_avcodec(&asv2_decoder);
119 register_avcodec(&vcr1_decoder);
120 register_avcodec(&cljr_decoder);
121 register_avcodec(&fourxm_decoder);
122 register_avcodec(&mdec_decoder);
123 register_avcodec(&roq_decoder);
124 register_avcodec(&interplay_video_decoder);
125 register_avcodec(&xan_wc3_decoder);
126 register_avcodec(&rpza_decoder);
127 register_avcodec(&cinepak_decoder);
128 register_avcodec(&msrle_decoder);
129 register_avcodec(&msvideo1_decoder);
130 register_avcodec(&vqa_decoder);
131 register_avcodec(&idcin_decoder);
133 register_avcodec(&ac3_decoder);
135 register_avcodec(&ra_144_decoder);
136 register_avcodec(&ra_288_decoder);
137 register_avcodec(&roq_dpcm_decoder);
138 register_avcodec(&interplay_dpcm_decoder);
139 register_avcodec(&xan_dpcm_decoder);
140 #endif /* CONFIG_DECODERS */
143 register_avcodec(&amr_nb_decoder);
144 register_avcodec(&amr_nb_encoder);
148 register_avcodec(&amr_wb_decoder);
149 register_avcodec(&amr_wb_encoder);
154 #define PCM_CODEC(id, name) \
155 register_avcodec(& name ## _encoder); \
156 register_avcodec(& name ## _decoder); \
158 PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
159 PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
160 PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
161 PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
162 PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
163 PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
164 PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
165 PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
168 PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
169 PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
170 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK3, adpcm_ima_dk3);
171 PCM_CODEC(CODEC_ID_ADPCM_IMA_DK4, adpcm_ima_dk4);
172 PCM_CODEC(CODEC_ID_ADPCM_IMA_WS, adpcm_ima_ws);
173 PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
174 PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);