2002-06-11 15:41:41 +02:00
|
|
|
/*
|
|
|
|
* Utils for libavcodec
|
|
|
|
* Copyright (c) 2002 Fabrice Bellard.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
2003-03-06 12:32:04 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @file allcodecs.c
|
|
|
|
* Utils for libavcodec.
|
|
|
|
*/
|
|
|
|
|
2002-06-11 15:41:41 +02:00
|
|
|
#include "avcodec.h"
|
|
|
|
|
|
|
|
/* If you do not call this function, then you can select exactly which
|
|
|
|
formats you want to support */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* simple call to register all the codecs.
|
|
|
|
*/
|
|
|
|
void avcodec_register_all(void)
|
|
|
|
{
|
|
|
|
static int inited = 0;
|
|
|
|
|
|
|
|
if (inited != 0)
|
|
|
|
return;
|
|
|
|
inited = 1;
|
|
|
|
|
|
|
|
/* encoders */
|
|
|
|
#ifdef CONFIG_ENCODERS
|
|
|
|
register_avcodec(&ac3_encoder);
|
|
|
|
register_avcodec(&mp2_encoder);
|
|
|
|
#ifdef CONFIG_MP3LAME
|
|
|
|
register_avcodec(&mp3lame_encoder);
|
2002-09-01 20:07:56 +02:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_VORBIS
|
|
|
|
register_avcodec(&oggvorbis_encoder);
|
2002-11-22 08:27:13 +01:00
|
|
|
register_avcodec(&oggvorbis_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
#endif
|
|
|
|
register_avcodec(&mpeg1video_encoder);
|
2003-04-04 16:42:28 +02:00
|
|
|
// register_avcodec(&h264_encoder);
|
2003-01-29 13:00:11 +01:00
|
|
|
#ifdef CONFIG_RISKY
|
2002-06-11 15:41:41 +02:00
|
|
|
register_avcodec(&h263_encoder);
|
|
|
|
register_avcodec(&h263p_encoder);
|
|
|
|
register_avcodec(&rv10_encoder);
|
|
|
|
register_avcodec(&mpeg4_encoder);
|
|
|
|
register_avcodec(&msmpeg4v1_encoder);
|
|
|
|
register_avcodec(&msmpeg4v2_encoder);
|
|
|
|
register_avcodec(&msmpeg4v3_encoder);
|
2002-06-18 02:50:20 +02:00
|
|
|
register_avcodec(&wmv1_encoder);
|
2002-12-28 00:51:46 +01:00
|
|
|
register_avcodec(&wmv2_encoder);
|
2003-01-29 13:00:11 +01:00
|
|
|
#endif
|
|
|
|
register_avcodec(&mjpeg_encoder);
|
2002-11-14 20:20:04 +01:00
|
|
|
register_avcodec(&huffyuv_encoder);
|
2003-05-19 15:30:59 +02:00
|
|
|
register_avcodec(&asv1_encoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
#endif /* CONFIG_ENCODERS */
|
2003-05-07 21:01:45 +02:00
|
|
|
register_avcodec(&rawvideo_encoder);
|
|
|
|
register_avcodec(&rawvideo_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
|
|
|
|
/* decoders */
|
|
|
|
#ifdef CONFIG_DECODERS
|
2003-01-29 13:00:11 +01:00
|
|
|
#ifdef CONFIG_RISKY
|
2002-06-11 15:41:41 +02:00
|
|
|
register_avcodec(&h263_decoder);
|
|
|
|
register_avcodec(&mpeg4_decoder);
|
|
|
|
register_avcodec(&msmpeg4v1_decoder);
|
|
|
|
register_avcodec(&msmpeg4v2_decoder);
|
|
|
|
register_avcodec(&msmpeg4v3_decoder);
|
|
|
|
register_avcodec(&wmv1_decoder);
|
2002-12-28 00:51:46 +01:00
|
|
|
register_avcodec(&wmv2_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
register_avcodec(&h263i_decoder);
|
|
|
|
register_avcodec(&rv10_decoder);
|
2002-07-09 18:08:43 +02:00
|
|
|
register_avcodec(&svq1_decoder);
|
2003-05-10 00:16:14 +02:00
|
|
|
register_avcodec(&svq3_decoder);
|
2003-01-29 13:00:11 +01:00
|
|
|
register_avcodec(&wmav1_decoder);
|
|
|
|
register_avcodec(&wmav2_decoder);
|
2003-04-15 12:12:38 +02:00
|
|
|
register_avcodec(&indeo3_decoder);
|
2003-05-12 12:55:19 +02:00
|
|
|
#ifdef CONFIG_FAAD
|
|
|
|
register_avcodec(&aac_decoder);
|
|
|
|
register_avcodec(&mpeg4aac_decoder);
|
|
|
|
#endif
|
2003-01-29 13:00:11 +01:00
|
|
|
#endif
|
|
|
|
register_avcodec(&mpeg_decoder);
|
2002-10-04 09:16:50 +02:00
|
|
|
register_avcodec(&dvvideo_decoder);
|
2003-01-27 10:21:30 +01:00
|
|
|
register_avcodec(&dvaudio_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
register_avcodec(&mjpeg_decoder);
|
2002-11-20 16:18:11 +01:00
|
|
|
register_avcodec(&mjpegb_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
register_avcodec(&mp2_decoder);
|
|
|
|
register_avcodec(&mp3_decoder);
|
2002-11-02 11:39:22 +01:00
|
|
|
register_avcodec(&mace3_decoder);
|
|
|
|
register_avcodec(&mace6_decoder);
|
2002-11-14 20:20:04 +01:00
|
|
|
register_avcodec(&huffyuv_decoder);
|
2003-02-09 17:58:47 +01:00
|
|
|
register_avcodec(&cyuv_decoder);
|
2003-04-04 16:42:28 +02:00
|
|
|
register_avcodec(&h264_decoder);
|
2003-05-05 04:54:15 +02:00
|
|
|
register_avcodec(&vp3_decoder);
|
2003-05-19 15:30:59 +02:00
|
|
|
register_avcodec(&asv1_decoder);
|
2003-06-01 02:56:05 +02:00
|
|
|
register_avcodec(&fourxm_decoder);
|
2002-06-11 15:41:41 +02:00
|
|
|
#ifdef CONFIG_AC3
|
|
|
|
register_avcodec(&ac3_decoder);
|
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_DECODERS */
|
|
|
|
|
2003-05-14 13:40:16 +02:00
|
|
|
#ifdef AMR_NB
|
|
|
|
register_avcodec(&amr_nb_decoder);
|
2003-06-05 16:30:52 +02:00
|
|
|
register_avcodec(&amr_nb_encoder);
|
2003-05-14 13:40:16 +02:00
|
|
|
#endif /* AMR_NB */
|
2002-06-11 15:41:41 +02:00
|
|
|
/* pcm codecs */
|
|
|
|
|
|
|
|
#define PCM_CODEC(id, name) \
|
|
|
|
register_avcodec(& name ## _encoder); \
|
|
|
|
register_avcodec(& name ## _decoder); \
|
|
|
|
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
|
|
|
|
PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
|
|
|
|
|
2002-07-20 22:05:50 +02:00
|
|
|
/* adpcm codecs */
|
|
|
|
PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
|
|
|
|
PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
|
|
|
|
PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
|
2003-06-03 15:58:44 +02:00
|
|
|
PCM_CODEC(CODEC_ID_ADPCM_4XM, adpcm_4xm);
|
2002-07-20 22:05:50 +02:00
|
|
|
|
2002-06-11 15:41:41 +02:00
|
|
|
#undef PCM_CODEC
|
|
|
|
}
|
|
|
|
|