Statistics
| Branch: | Revision:

ffmpeg / libavcodec / allcodecs.c @ 11f18faf

History | View | Annotate | Download (3.4 KB)

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
 */
19
#include "avcodec.h"
20

    
21
/* If you do not call this function, then you can select exactly which
22
   formats you want to support */
23

    
24
/**
25
 * simple call to register all the codecs. 
26
 */
27
void avcodec_register_all(void)
28
{
29
    static int inited = 0;
30
    
31
    if (inited != 0)
32
        return;
33
    inited = 1;
34

    
35
    /* encoders */
36
#ifdef CONFIG_ENCODERS
37
    register_avcodec(&ac3_encoder);
38
    register_avcodec(&mp2_encoder);
39
#ifdef CONFIG_MP3LAME
40
    register_avcodec(&mp3lame_encoder);
41
#endif
42
#ifdef CONFIG_VORBIS
43
    register_avcodec(&oggvorbis_encoder);
44
#endif
45
    register_avcodec(&mpeg1video_encoder);
46
    register_avcodec(&h263_encoder);
47
    register_avcodec(&h263p_encoder);
48
    register_avcodec(&rv10_encoder);
49
    register_avcodec(&mjpeg_encoder);
50
    register_avcodec(&mpeg4_encoder);
51
    register_avcodec(&msmpeg4v1_encoder);
52
    register_avcodec(&msmpeg4v2_encoder);
53
    register_avcodec(&msmpeg4v3_encoder);
54
    register_avcodec(&wmv1_encoder);
55
    register_avcodec(&wmv2_encoder);
56
    register_avcodec(&huffyuv_encoder);
57
#endif /* CONFIG_ENCODERS */
58
    register_avcodec(&rawvideo_codec);
59

    
60
    /* decoders */
61
#ifdef CONFIG_DECODERS
62
    register_avcodec(&h263_decoder);
63
    register_avcodec(&mpeg4_decoder);
64
    register_avcodec(&msmpeg4v1_decoder);
65
    register_avcodec(&msmpeg4v2_decoder);
66
    register_avcodec(&msmpeg4v3_decoder);
67
    register_avcodec(&wmv1_decoder);
68
    register_avcodec(&wmv2_decoder);
69
    register_avcodec(&mpeg_decoder);
70
    register_avcodec(&h263i_decoder);
71
    register_avcodec(&rv10_decoder);
72
    register_avcodec(&svq1_decoder);
73
    register_avcodec(&dvvideo_decoder);
74
    //    register_avcodec(&dvaudio_decoder);
75
    register_avcodec(&mjpeg_decoder);
76
    register_avcodec(&mp2_decoder);
77
    register_avcodec(&mp3_decoder);
78
    register_avcodec(&wmav1_decoder);
79
    register_avcodec(&wmav2_decoder);
80
    register_avcodec(&mace3_decoder);
81
    register_avcodec(&mace6_decoder);
82
    register_avcodec(&huffyuv_decoder);
83
#ifdef CONFIG_AC3
84
    register_avcodec(&ac3_decoder);
85
#endif
86
#endif /* CONFIG_DECODERS */
87

    
88
    /* pcm codecs */
89

    
90
#define PCM_CODEC(id, name) \
91
    register_avcodec(& name ## _encoder); \
92
    register_avcodec(& name ## _decoder); \
93

    
94
PCM_CODEC(CODEC_ID_PCM_S16LE, pcm_s16le);
95
PCM_CODEC(CODEC_ID_PCM_S16BE, pcm_s16be);
96
PCM_CODEC(CODEC_ID_PCM_U16LE, pcm_u16le);
97
PCM_CODEC(CODEC_ID_PCM_U16BE, pcm_u16be);
98
PCM_CODEC(CODEC_ID_PCM_S8, pcm_s8);
99
PCM_CODEC(CODEC_ID_PCM_U8, pcm_u8);
100
PCM_CODEC(CODEC_ID_PCM_ALAW, pcm_alaw);
101
PCM_CODEC(CODEC_ID_PCM_MULAW, pcm_mulaw);
102

    
103
    /* adpcm codecs */
104
PCM_CODEC(CODEC_ID_ADPCM_IMA_QT, adpcm_ima_qt);
105
PCM_CODEC(CODEC_ID_ADPCM_IMA_WAV, adpcm_ima_wav);
106
PCM_CODEC(CODEC_ID_ADPCM_MS, adpcm_ms);
107

    
108
#undef PCM_CODEC
109
}
110