VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/libavformat/allformats.c@ 10184

最後變更 在這個檔案從10184是 5776,由 vboxsync 提交於 17 年 前

ffmpeg: exported to OSE

檔案大小: 3.7 KB
 
1/*
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 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19#include "avformat.h"
20#include "allformats.h"
21
22/* If you do not call this function, then you can select exactly which
23 formats you want to support */
24
25/**
26 * Initialize libavcodec and register all the codecs and formats.
27 */
28void av_register_all(void)
29{
30 static int inited = 0;
31
32 if (inited != 0)
33 return;
34 inited = 1;
35
36 avcodec_init();
37 avcodec_register_all();
38
39 mpegps_init();
40 mpegts_init();
41#ifdef CONFIG_MUXERS
42 crc_init();
43 img_init();
44 img2_init();
45#endif //CONFIG_MUXERS
46 raw_init();
47 mp3_init();
48 rm_init();
49 asf_init();
50#ifdef CONFIG_MUXERS
51 avienc_init();
52#endif //CONFIG_MUXERS
53 avidec_init();
54 ff_wav_init();
55 ff_mmf_init();
56 swf_init();
57 au_init();
58 ff_aiff_init();
59#ifdef CONFIG_MUXERS
60 ff_adts_init();
61 gif_init();
62#endif //CONFIG_MUXERS
63 mov_init();
64#ifdef CONFIG_MUXERS
65 movenc_init();
66 jpeg_init();
67#endif //CONFIG_MUXERS
68 ff_dv_init();
69 fourxm_init();
70#ifdef CONFIG_MUXERS
71 flvenc_init();
72#endif //CONFIG_MUXERS
73 flvdec_init();
74 str_init();
75 roq_init();
76 ipmovie_init();
77 wc3_init();
78 westwood_init();
79 film_init();
80 idcin_init();
81 flic_init();
82 vmd_init();
83 mm_init();
84 smacker_init();
85
86#if defined(AMR_NB) || defined(AMR_NB_FIXED) || defined(AMR_WB)
87 amr_init();
88#endif
89 yuv4mpeg_init();
90
91 ogg_init();
92#ifdef CONFIG_LIBOGG
93 libogg_init();
94#endif
95
96 ffm_init();
97#if defined(CONFIG_VIDEO4LINUX2)
98 v4l2_init();
99#endif
100#if defined(CONFIG_VIDEO4LINUX) || defined(CONFIG_BKTR)
101 video_grab_init();
102#endif
103#if defined(CONFIG_AUDIO_OSS) || defined(CONFIG_AUDIO_BEOS)
104 audio_init();
105#endif
106
107#ifdef CONFIG_DV1394
108 dv1394_init();
109#endif
110
111#ifdef CONFIG_DC1394
112 dc1394_init();
113#endif
114
115 nut_init();
116 matroska_init();
117 sol_init();
118 ea_init();
119 nsvdec_init();
120 daud_init();
121 voc_init();
122 tta_init();
123 avs_init();
124 nuv_init();
125 gxf_init();
126
127#ifdef CONFIG_MUXERS
128 /* image formats */
129#if 0
130 av_register_image_format(&pnm_image_format);
131 av_register_image_format(&pbm_image_format);
132 av_register_image_format(&pgm_image_format);
133 av_register_image_format(&ppm_image_format);
134 av_register_image_format(&pam_image_format);
135 av_register_image_format(&pgmyuv_image_format);
136 av_register_image_format(&yuv_image_format);
137#ifdef CONFIG_ZLIB
138 av_register_image_format(&png_image_format);
139#endif
140 av_register_image_format(&jpeg_image_format);
141#endif
142 av_register_image_format(&gif_image_format);
143// av_register_image_format(&sgi_image_format); heap corruption, dont enable
144#endif //CONFIG_MUXERS
145
146#ifdef CONFIG_PROTOCOLS
147 /* file protocols */
148 register_protocol(&file_protocol);
149 register_protocol(&pipe_protocol);
150#ifdef CONFIG_NETWORK
151 rtsp_init();
152 rtp_init();
153 register_protocol(&udp_protocol);
154 register_protocol(&rtp_protocol);
155 register_protocol(&tcp_protocol);
156 register_protocol(&http_protocol);
157#endif
158#endif
159}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette