ffmpeg / libavformat / allformats.c @ 5509bffa
History | View | Annotate | Download (3.46 KB)
1 | 4624540b | Fabrice Bellard | /*
|
---|---|---|---|
2 | * Register all the formats and protocols
|
||
3 | * Copyright (c) 2000, 2001, 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 | 5509bffa | Diego Biurrun | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18 | 4624540b | Fabrice Bellard | */
|
19 | #include "avformat.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 | * Initialize libavcodec and register all the codecs and formats.
|
||
26 | */
|
||
27 | void av_register_all(void) |
||
28 | { |
||
29 | caaeefc5 | Michael Niedermayer | static int inited = 0; |
30 | 115329f1 | Diego Biurrun | |
31 | caaeefc5 | Michael Niedermayer | if (inited != 0) |
32 | return;
|
||
33 | inited = 1;
|
||
34 | |||
35 | 4624540b | Fabrice Bellard | avcodec_init(); |
36 | avcodec_register_all(); |
||
37 | |||
38 | mpegps_init(); |
||
39 | mpegts_init(); |
||
40 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
41 | 4624540b | Fabrice Bellard | crc_init(); |
42 | img_init(); |
||
43 | 03cfe134 | Michael Niedermayer | img2_init(); |
44 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
45 | 4624540b | Fabrice Bellard | raw_init(); |
46 | 6a58e151 | Fabrice Bellard | mp3_init(); |
47 | 4624540b | Fabrice Bellard | rm_init(); |
48 | asf_init(); |
||
49 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
50 | 4624540b | Fabrice Bellard | avienc_init(); |
51 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
52 | 4624540b | Fabrice Bellard | avidec_init(); |
53 | c3775e54 | Ronald S. Bultje | ff_wav_init(); |
54 | 93a23627 | Vidar Madsen | ff_mmf_init(); |
55 | 4624540b | Fabrice Bellard | swf_init(); |
56 | au_init(); |
||
57 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
58 | 4624540b | Fabrice Bellard | gif_init(); |
59 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
60 | 4624540b | Fabrice Bellard | mov_init(); |
61 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
62 | 1cb5f7fd | Michael Niedermayer | movenc_init(); |
63 | 4624540b | Fabrice Bellard | jpeg_init(); |
64 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
65 | c3775e54 | Ronald S. Bultje | ff_dv_init(); |
66 | 3c96b4ef | Mike Melanson | fourxm_init(); |
67 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
68 | d4f5d74a | Garrick Meeker | flvenc_init(); |
69 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
70 | d4f5d74a | Garrick Meeker | flvdec_init(); |
71 | 3f16d933 | Mike Melanson | str_init(); |
72 | 3ef8be2b | Mike Melanson | roq_init(); |
73 | ipmovie_init(); |
||
74 | 493645eb | Mike Melanson | wc3_init(); |
75 | 2fdf638b | Mike Melanson | westwood_init(); |
76 | film_init(); |
||
77 | 4120a53a | Mike Melanson | idcin_init(); |
78 | 42cad81a | Mike Melanson | flic_init(); |
79 | a7eb3c8d | Mike Melanson | vmd_init(); |
80 | 87a0a681 | Fabrice Bellard | |
81 | d663a1fd | Michael Niedermayer | #if defined(AMR_NB) || defined(AMR_NB_FIXED) || defined(AMR_WB)
|
82 | bc634f6f | Zdenek Kabelac | amr_init(); |
83 | #endif
|
||
84 | 2864dfd5 | D Richard Felker III | yuv4mpeg_init(); |
85 | 9146ca37 | Måns Rullgård | |
86 | 81e0d0b4 | Mark Hills | ogg_init(); |
87 | 9146ca37 | Måns Rullgård | #ifdef CONFIG_LIBOGG
|
88 | libogg_init(); |
||
89 | 81e0d0b4 | Mark Hills | #endif
|
90 | |||
91 | 4624540b | Fabrice Bellard | ffm_init(); |
92 | 6beefa40 | Michael Niedermayer | #if defined(CONFIG_VIDEO4LINUX) || defined(CONFIG_BKTR)
|
93 | 4624540b | Fabrice Bellard | video_grab_init(); |
94 | #endif
|
||
95 | dfdfa47c | François Revol | #if defined(CONFIG_AUDIO_OSS) || defined(CONFIG_AUDIO_BEOS)
|
96 | 4624540b | Fabrice Bellard | audio_init(); |
97 | #endif
|
||
98 | |||
99 | 8aa3ee32 | Max Krasnyansky | #ifdef CONFIG_DV1394
|
100 | dv1394_init(); |
||
101 | #endif
|
||
102 | |||
103 | f02be79d | Roman Shaposhnik | #ifdef CONFIG_DC1394
|
104 | dc1394_init(); |
||
105 | #endif
|
||
106 | |||
107 | 3aa180b8 | Alex Beregszaszi | nut_init(); |
108 | 08abe0fd | Michael Niedermayer | matroska_init(); |
109 | d08d7142 | Mike Melanson | sol_init(); |
110 | ad81a9fe | Mike Melanson | ea_init(); |
111 | 27d5f18f | François Revol | nsvdec_init(); |
112 | b93f738f | Reimar Döffinger | daud_init(); |
113 | 3aa180b8 | Alex Beregszaszi | |
114 | a9e35095 | Diego Biurrun | #ifdef CONFIG_MUXERS
|
115 | 87a0a681 | Fabrice Bellard | /* image formats */
|
116 | 9286699a | Michael Niedermayer | #if 0
|
117 | 87a0a681 | Fabrice Bellard | av_register_image_format(&pnm_image_format);
|
118 | av_register_image_format(&pbm_image_format);
|
||
119 | av_register_image_format(&pgm_image_format);
|
||
120 | av_register_image_format(&ppm_image_format);
|
||
121 | 8975ba81 | Fabrice Bellard | av_register_image_format(&pam_image_format);
|
122 | 87a0a681 | Fabrice Bellard | av_register_image_format(&pgmyuv_image_format);
|
123 | av_register_image_format(&yuv_image_format);
|
||
124 | 3a13f6bd | Zdenek Kabelac | #ifdef CONFIG_ZLIB
|
125 | 0e04e4e9 | Fabrice Bellard | av_register_image_format(&png_image_format);
|
126 | 3a13f6bd | Zdenek Kabelac | #endif
|
127 | 0250738f | Fabrice Bellard | av_register_image_format(&jpeg_image_format); |
128 | 9286699a | Michael Niedermayer | #endif
|
129 | 115329f1 | Diego Biurrun | av_register_image_format(&gif_image_format); |
130 | 568e18b1 | Michael Niedermayer | // av_register_image_format(&sgi_image_format); heap corruption, dont enable
|
131 | a9e35095 | Diego Biurrun | #endif //CONFIG_MUXERS |
132 | 87a0a681 | Fabrice Bellard | |
133 | 4624540b | Fabrice Bellard | /* file protocols */
|
134 | register_protocol(&file_protocol); |
||
135 | register_protocol(&pipe_protocol); |
||
136 | #ifdef CONFIG_NETWORK
|
||
137 | rtsp_init(); |
||
138 | rtp_init(); |
||
139 | register_protocol(&udp_protocol); |
||
140 | register_protocol(&rtp_protocol); |
||
141 | register_protocol(&tcp_protocol); |
||
142 | register_protocol(&http_protocol); |
||
143 | #endif
|
||
144 | } |