FFmpeg coverage


Directory: ../../../ffmpeg/
File: src/libavformat/allformats.c
Date: 2022-12-05 03:11:11
Exec Total Coverage
Lines: 26 26 100.0%
Functions: 3 3 100.0%
Branches: 12 12 100.0%

Line Branch Exec Source
1 /*
2 * Register all the formats and protocols
3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #include <stdatomic.h>
23 #include <stddef.h>
24 #include <stdint.h>
25
26 #include "libavformat/internal.h"
27 #include "avformat.h"
28
29 /* (de)muxers */
30 extern const AVOutputFormat ff_a64_muxer;
31 extern const AVInputFormat ff_aa_demuxer;
32 extern const AVInputFormat ff_aac_demuxer;
33 extern const AVInputFormat ff_aax_demuxer;
34 extern const AVInputFormat ff_ac3_demuxer;
35 extern const AVOutputFormat ff_ac3_muxer;
36 extern const AVInputFormat ff_ace_demuxer;
37 extern const AVInputFormat ff_acm_demuxer;
38 extern const AVInputFormat ff_act_demuxer;
39 extern const AVInputFormat ff_adf_demuxer;
40 extern const AVInputFormat ff_adp_demuxer;
41 extern const AVInputFormat ff_ads_demuxer;
42 extern const AVOutputFormat ff_adts_muxer;
43 extern const AVInputFormat ff_adx_demuxer;
44 extern const AVOutputFormat ff_adx_muxer;
45 extern const AVInputFormat ff_aea_demuxer;
46 extern const AVInputFormat ff_afc_demuxer;
47 extern const AVInputFormat ff_aiff_demuxer;
48 extern const AVOutputFormat ff_aiff_muxer;
49 extern const AVInputFormat ff_aix_demuxer;
50 extern const AVInputFormat ff_alp_demuxer;
51 extern const AVOutputFormat ff_alp_muxer;
52 extern const AVInputFormat ff_amr_demuxer;
53 extern const AVOutputFormat ff_amr_muxer;
54 extern const AVInputFormat ff_amrnb_demuxer;
55 extern const AVInputFormat ff_amrwb_demuxer;
56 extern const AVOutputFormat ff_amv_muxer;
57 extern const AVInputFormat ff_anm_demuxer;
58 extern const AVInputFormat ff_apac_demuxer;
59 extern const AVInputFormat ff_apc_demuxer;
60 extern const AVInputFormat ff_ape_demuxer;
61 extern const AVInputFormat ff_apm_demuxer;
62 extern const AVOutputFormat ff_apm_muxer;
63 extern const AVInputFormat ff_apng_demuxer;
64 extern const AVOutputFormat ff_apng_muxer;
65 extern const AVInputFormat ff_aptx_demuxer;
66 extern const AVOutputFormat ff_aptx_muxer;
67 extern const AVInputFormat ff_aptx_hd_demuxer;
68 extern const AVOutputFormat ff_aptx_hd_muxer;
69 extern const AVInputFormat ff_aqtitle_demuxer;
70 extern const AVInputFormat ff_argo_asf_demuxer;
71 extern const AVOutputFormat ff_argo_asf_muxer;
72 extern const AVInputFormat ff_argo_brp_demuxer;
73 extern const AVInputFormat ff_argo_cvg_demuxer;
74 extern const AVOutputFormat ff_argo_cvg_muxer;
75 extern const AVInputFormat ff_asf_demuxer;
76 extern const AVOutputFormat ff_asf_muxer;
77 extern const AVInputFormat ff_asf_o_demuxer;
78 extern const AVInputFormat ff_ass_demuxer;
79 extern const AVOutputFormat ff_ass_muxer;
80 extern const AVInputFormat ff_ast_demuxer;
81 extern const AVOutputFormat ff_ast_muxer;
82 extern const AVOutputFormat ff_asf_stream_muxer;
83 extern const AVInputFormat ff_au_demuxer;
84 extern const AVOutputFormat ff_au_muxer;
85 extern const AVInputFormat ff_av1_demuxer;
86 extern const AVInputFormat ff_avi_demuxer;
87 extern const AVOutputFormat ff_avi_muxer;
88 extern const AVOutputFormat ff_avif_muxer;
89 extern const AVInputFormat ff_avisynth_demuxer;
90 extern const AVOutputFormat ff_avm2_muxer;
91 extern const AVInputFormat ff_avr_demuxer;
92 extern const AVInputFormat ff_avs_demuxer;
93 extern const AVInputFormat ff_avs2_demuxer;
94 extern const AVOutputFormat ff_avs2_muxer;
95 extern const AVInputFormat ff_avs3_demuxer;
96 extern const AVOutputFormat ff_avs3_muxer;
97 extern const AVInputFormat ff_bethsoftvid_demuxer;
98 extern const AVInputFormat ff_bfi_demuxer;
99 extern const AVInputFormat ff_bintext_demuxer;
100 extern const AVInputFormat ff_bink_demuxer;
101 extern const AVInputFormat ff_binka_demuxer;
102 extern const AVInputFormat ff_bit_demuxer;
103 extern const AVOutputFormat ff_bit_muxer;
104 extern const AVInputFormat ff_bitpacked_demuxer;
105 extern const AVInputFormat ff_bmv_demuxer;
106 extern const AVInputFormat ff_bfstm_demuxer;
107 extern const AVInputFormat ff_brstm_demuxer;
108 extern const AVInputFormat ff_boa_demuxer;
109 extern const AVInputFormat ff_bonk_demuxer;
110 extern const AVInputFormat ff_c93_demuxer;
111 extern const AVInputFormat ff_caf_demuxer;
112 extern const AVOutputFormat ff_caf_muxer;
113 extern const AVInputFormat ff_cavsvideo_demuxer;
114 extern const AVOutputFormat ff_cavsvideo_muxer;
115 extern const AVInputFormat ff_cdg_demuxer;
116 extern const AVInputFormat ff_cdxl_demuxer;
117 extern const AVInputFormat ff_cine_demuxer;
118 extern const AVInputFormat ff_codec2_demuxer;
119 extern const AVOutputFormat ff_codec2_muxer;
120 extern const AVInputFormat ff_codec2raw_demuxer;
121 extern const AVOutputFormat ff_codec2raw_muxer;
122 extern const AVInputFormat ff_concat_demuxer;
123 extern const AVOutputFormat ff_crc_muxer;
124 extern const AVInputFormat ff_dash_demuxer;
125 extern const AVOutputFormat ff_dash_muxer;
126 extern const AVInputFormat ff_data_demuxer;
127 extern const AVOutputFormat ff_data_muxer;
128 extern const AVInputFormat ff_daud_demuxer;
129 extern const AVOutputFormat ff_daud_muxer;
130 extern const AVInputFormat ff_dcstr_demuxer;
131 extern const AVInputFormat ff_derf_demuxer;
132 extern const AVInputFormat ff_dfa_demuxer;
133 extern const AVInputFormat ff_dfpwm_demuxer;
134 extern const AVOutputFormat ff_dfpwm_muxer;
135 extern const AVInputFormat ff_dhav_demuxer;
136 extern const AVInputFormat ff_dirac_demuxer;
137 extern const AVOutputFormat ff_dirac_muxer;
138 extern const AVInputFormat ff_dnxhd_demuxer;
139 extern const AVOutputFormat ff_dnxhd_muxer;
140 extern const AVInputFormat ff_dsf_demuxer;
141 extern const AVInputFormat ff_dsicin_demuxer;
142 extern const AVInputFormat ff_dss_demuxer;
143 extern const AVInputFormat ff_dts_demuxer;
144 extern const AVOutputFormat ff_dts_muxer;
145 extern const AVInputFormat ff_dtshd_demuxer;
146 extern const AVInputFormat ff_dv_demuxer;
147 extern const AVOutputFormat ff_dv_muxer;
148 extern const AVInputFormat ff_dvbsub_demuxer;
149 extern const AVInputFormat ff_dvbtxt_demuxer;
150 extern const AVInputFormat ff_dxa_demuxer;
151 extern const AVInputFormat ff_ea_demuxer;
152 extern const AVInputFormat ff_ea_cdata_demuxer;
153 extern const AVInputFormat ff_eac3_demuxer;
154 extern const AVOutputFormat ff_eac3_muxer;
155 extern const AVInputFormat ff_epaf_demuxer;
156 extern const AVOutputFormat ff_f4v_muxer;
157 extern const AVInputFormat ff_ffmetadata_demuxer;
158 extern const AVOutputFormat ff_ffmetadata_muxer;
159 extern const AVOutputFormat ff_fifo_muxer;
160 extern const AVOutputFormat ff_fifo_test_muxer;
161 extern const AVInputFormat ff_filmstrip_demuxer;
162 extern const AVOutputFormat ff_filmstrip_muxer;
163 extern const AVInputFormat ff_fits_demuxer;
164 extern const AVOutputFormat ff_fits_muxer;
165 extern const AVInputFormat ff_flac_demuxer;
166 extern const AVOutputFormat ff_flac_muxer;
167 extern const AVInputFormat ff_flic_demuxer;
168 extern const AVInputFormat ff_flv_demuxer;
169 extern const AVOutputFormat ff_flv_muxer;
170 extern const AVInputFormat ff_live_flv_demuxer;
171 extern const AVInputFormat ff_fourxm_demuxer;
172 extern const AVOutputFormat ff_framecrc_muxer;
173 extern const AVOutputFormat ff_framehash_muxer;
174 extern const AVOutputFormat ff_framemd5_muxer;
175 extern const AVInputFormat ff_frm_demuxer;
176 extern const AVInputFormat ff_fsb_demuxer;
177 extern const AVInputFormat ff_fwse_demuxer;
178 extern const AVInputFormat ff_g722_demuxer;
179 extern const AVOutputFormat ff_g722_muxer;
180 extern const AVInputFormat ff_g723_1_demuxer;
181 extern const AVOutputFormat ff_g723_1_muxer;
182 extern const AVInputFormat ff_g726_demuxer;
183 extern const AVOutputFormat ff_g726_muxer;
184 extern const AVInputFormat ff_g726le_demuxer;
185 extern const AVOutputFormat ff_g726le_muxer;
186 extern const AVInputFormat ff_g729_demuxer;
187 extern const AVInputFormat ff_gdv_demuxer;
188 extern const AVInputFormat ff_genh_demuxer;
189 extern const AVInputFormat ff_gif_demuxer;
190 extern const AVOutputFormat ff_gif_muxer;
191 extern const AVInputFormat ff_gsm_demuxer;
192 extern const AVOutputFormat ff_gsm_muxer;
193 extern const AVInputFormat ff_gxf_demuxer;
194 extern const AVOutputFormat ff_gxf_muxer;
195 extern const AVInputFormat ff_h261_demuxer;
196 extern const AVOutputFormat ff_h261_muxer;
197 extern const AVInputFormat ff_h263_demuxer;
198 extern const AVOutputFormat ff_h263_muxer;
199 extern const AVInputFormat ff_h264_demuxer;
200 extern const AVOutputFormat ff_h264_muxer;
201 extern const AVOutputFormat ff_hash_muxer;
202 extern const AVInputFormat ff_hca_demuxer;
203 extern const AVInputFormat ff_hcom_demuxer;
204 extern const AVOutputFormat ff_hds_muxer;
205 extern const AVInputFormat ff_hevc_demuxer;
206 extern const AVOutputFormat ff_hevc_muxer;
207 extern const AVInputFormat ff_hls_demuxer;
208 extern const AVOutputFormat ff_hls_muxer;
209 extern const AVInputFormat ff_hnm_demuxer;
210 extern const AVInputFormat ff_ico_demuxer;
211 extern const AVOutputFormat ff_ico_muxer;
212 extern const AVInputFormat ff_idcin_demuxer;
213 extern const AVInputFormat ff_idf_demuxer;
214 extern const AVInputFormat ff_iff_demuxer;
215 extern const AVInputFormat ff_ifv_demuxer;
216 extern const AVInputFormat ff_ilbc_demuxer;
217 extern const AVOutputFormat ff_ilbc_muxer;
218 extern const AVInputFormat ff_image2_demuxer;
219 extern const AVOutputFormat ff_image2_muxer;
220 extern const AVInputFormat ff_image2pipe_demuxer;
221 extern const AVOutputFormat ff_image2pipe_muxer;
222 extern const AVInputFormat ff_image2_alias_pix_demuxer;
223 extern const AVInputFormat ff_image2_brender_pix_demuxer;
224 extern const AVInputFormat ff_imf_demuxer;
225 extern const AVInputFormat ff_ingenient_demuxer;
226 extern const AVInputFormat ff_ipmovie_demuxer;
227 extern const AVOutputFormat ff_ipod_muxer;
228 extern const AVInputFormat ff_ipu_demuxer;
229 extern const AVInputFormat ff_ircam_demuxer;
230 extern const AVOutputFormat ff_ircam_muxer;
231 extern const AVOutputFormat ff_ismv_muxer;
232 extern const AVInputFormat ff_iss_demuxer;
233 extern const AVInputFormat ff_iv8_demuxer;
234 extern const AVInputFormat ff_ivf_demuxer;
235 extern const AVOutputFormat ff_ivf_muxer;
236 extern const AVInputFormat ff_ivr_demuxer;
237 extern const AVInputFormat ff_jacosub_demuxer;
238 extern const AVOutputFormat ff_jacosub_muxer;
239 extern const AVInputFormat ff_jv_demuxer;
240 extern const AVInputFormat ff_kux_demuxer;
241 extern const AVInputFormat ff_kvag_demuxer;
242 extern const AVOutputFormat ff_kvag_muxer;
243 extern const AVInputFormat ff_laf_demuxer;
244 extern const AVOutputFormat ff_latm_muxer;
245 extern const AVInputFormat ff_lmlm4_demuxer;
246 extern const AVInputFormat ff_loas_demuxer;
247 extern const AVInputFormat ff_luodat_demuxer;
248 extern const AVInputFormat ff_lrc_demuxer;
249 extern const AVOutputFormat ff_lrc_muxer;
250 extern const AVInputFormat ff_lvf_demuxer;
251 extern const AVInputFormat ff_lxf_demuxer;
252 extern const AVInputFormat ff_m4v_demuxer;
253 extern const AVOutputFormat ff_m4v_muxer;
254 extern const AVInputFormat ff_mca_demuxer;
255 extern const AVInputFormat ff_mcc_demuxer;
256 extern const AVOutputFormat ff_md5_muxer;
257 extern const AVInputFormat ff_matroska_demuxer;
258 extern const AVOutputFormat ff_matroska_muxer;
259 extern const AVOutputFormat ff_matroska_audio_muxer;
260 extern const AVInputFormat ff_mgsts_demuxer;
261 extern const AVInputFormat ff_microdvd_demuxer;
262 extern const AVOutputFormat ff_microdvd_muxer;
263 extern const AVInputFormat ff_mjpeg_demuxer;
264 extern const AVOutputFormat ff_mjpeg_muxer;
265 extern const AVInputFormat ff_mjpeg_2000_demuxer;
266 extern const AVInputFormat ff_mlp_demuxer;
267 extern const AVOutputFormat ff_mlp_muxer;
268 extern const AVInputFormat ff_mlv_demuxer;
269 extern const AVInputFormat ff_mm_demuxer;
270 extern const AVInputFormat ff_mmf_demuxer;
271 extern const AVOutputFormat ff_mmf_muxer;
272 extern const AVInputFormat ff_mods_demuxer;
273 extern const AVInputFormat ff_moflex_demuxer;
274 extern const AVInputFormat ff_mov_demuxer;
275 extern const AVOutputFormat ff_mov_muxer;
276 extern const AVOutputFormat ff_mp2_muxer;
277 extern const AVInputFormat ff_mp3_demuxer;
278 extern const AVOutputFormat ff_mp3_muxer;
279 extern const AVOutputFormat ff_mp4_muxer;
280 extern const AVInputFormat ff_mpc_demuxer;
281 extern const AVInputFormat ff_mpc8_demuxer;
282 extern const AVOutputFormat ff_mpeg1system_muxer;
283 extern const AVOutputFormat ff_mpeg1vcd_muxer;
284 extern const AVOutputFormat ff_mpeg1video_muxer;
285 extern const AVOutputFormat ff_mpeg2dvd_muxer;
286 extern const AVOutputFormat ff_mpeg2svcd_muxer;
287 extern const AVOutputFormat ff_mpeg2video_muxer;
288 extern const AVOutputFormat ff_mpeg2vob_muxer;
289 extern const AVInputFormat ff_mpegps_demuxer;
290 extern const AVInputFormat ff_mpegts_demuxer;
291 extern const AVOutputFormat ff_mpegts_muxer;
292 extern const AVInputFormat ff_mpegtsraw_demuxer;
293 extern const AVInputFormat ff_mpegvideo_demuxer;
294 extern const AVInputFormat ff_mpjpeg_demuxer;
295 extern const AVOutputFormat ff_mpjpeg_muxer;
296 extern const AVInputFormat ff_mpl2_demuxer;
297 extern const AVInputFormat ff_mpsub_demuxer;
298 extern const AVInputFormat ff_msf_demuxer;
299 extern const AVInputFormat ff_msnwc_tcp_demuxer;
300 extern const AVInputFormat ff_msp_demuxer;
301 extern const AVInputFormat ff_mtaf_demuxer;
302 extern const AVInputFormat ff_mtv_demuxer;
303 extern const AVInputFormat ff_musx_demuxer;
304 extern const AVInputFormat ff_mv_demuxer;
305 extern const AVInputFormat ff_mvi_demuxer;
306 extern const AVInputFormat ff_mxf_demuxer;
307 extern const AVOutputFormat ff_mxf_muxer;
308 extern const AVOutputFormat ff_mxf_d10_muxer;
309 extern const AVOutputFormat ff_mxf_opatom_muxer;
310 extern const AVInputFormat ff_mxg_demuxer;
311 extern const AVInputFormat ff_nc_demuxer;
312 extern const AVInputFormat ff_nistsphere_demuxer;
313 extern const AVInputFormat ff_nsp_demuxer;
314 extern const AVInputFormat ff_nsv_demuxer;
315 extern const AVOutputFormat ff_null_muxer;
316 extern const AVInputFormat ff_nut_demuxer;
317 extern const AVOutputFormat ff_nut_muxer;
318 extern const AVInputFormat ff_nuv_demuxer;
319 extern const AVInputFormat ff_obu_demuxer;
320 extern const AVOutputFormat ff_obu_muxer;
321 extern const AVOutputFormat ff_oga_muxer;
322 extern const AVInputFormat ff_ogg_demuxer;
323 extern const AVOutputFormat ff_ogg_muxer;
324 extern const AVOutputFormat ff_ogv_muxer;
325 extern const AVInputFormat ff_oma_demuxer;
326 extern const AVOutputFormat ff_oma_muxer;
327 extern const AVOutputFormat ff_opus_muxer;
328 extern const AVInputFormat ff_paf_demuxer;
329 extern const AVInputFormat ff_pcm_alaw_demuxer;
330 extern const AVOutputFormat ff_pcm_alaw_muxer;
331 extern const AVInputFormat ff_pcm_mulaw_demuxer;
332 extern const AVOutputFormat ff_pcm_mulaw_muxer;
333 extern const AVInputFormat ff_pcm_vidc_demuxer;
334 extern const AVOutputFormat ff_pcm_vidc_muxer;
335 extern const AVInputFormat ff_pcm_f64be_demuxer;
336 extern const AVOutputFormat ff_pcm_f64be_muxer;
337 extern const AVInputFormat ff_pcm_f64le_demuxer;
338 extern const AVOutputFormat ff_pcm_f64le_muxer;
339 extern const AVInputFormat ff_pcm_f32be_demuxer;
340 extern const AVOutputFormat ff_pcm_f32be_muxer;
341 extern const AVInputFormat ff_pcm_f32le_demuxer;
342 extern const AVOutputFormat ff_pcm_f32le_muxer;
343 extern const AVInputFormat ff_pcm_s32be_demuxer;
344 extern const AVOutputFormat ff_pcm_s32be_muxer;
345 extern const AVInputFormat ff_pcm_s32le_demuxer;
346 extern const AVOutputFormat ff_pcm_s32le_muxer;
347 extern const AVInputFormat ff_pcm_s24be_demuxer;
348 extern const AVOutputFormat ff_pcm_s24be_muxer;
349 extern const AVInputFormat ff_pcm_s24le_demuxer;
350 extern const AVOutputFormat ff_pcm_s24le_muxer;
351 extern const AVInputFormat ff_pcm_s16be_demuxer;
352 extern const AVOutputFormat ff_pcm_s16be_muxer;
353 extern const AVInputFormat ff_pcm_s16le_demuxer;
354 extern const AVOutputFormat ff_pcm_s16le_muxer;
355 extern const AVInputFormat ff_pcm_s8_demuxer;
356 extern const AVOutputFormat ff_pcm_s8_muxer;
357 extern const AVInputFormat ff_pcm_u32be_demuxer;
358 extern const AVOutputFormat ff_pcm_u32be_muxer;
359 extern const AVInputFormat ff_pcm_u32le_demuxer;
360 extern const AVOutputFormat ff_pcm_u32le_muxer;
361 extern const AVInputFormat ff_pcm_u24be_demuxer;
362 extern const AVOutputFormat ff_pcm_u24be_muxer;
363 extern const AVInputFormat ff_pcm_u24le_demuxer;
364 extern const AVOutputFormat ff_pcm_u24le_muxer;
365 extern const AVInputFormat ff_pcm_u16be_demuxer;
366 extern const AVOutputFormat ff_pcm_u16be_muxer;
367 extern const AVInputFormat ff_pcm_u16le_demuxer;
368 extern const AVOutputFormat ff_pcm_u16le_muxer;
369 extern const AVInputFormat ff_pcm_u8_demuxer;
370 extern const AVOutputFormat ff_pcm_u8_muxer;
371 extern const AVInputFormat ff_pjs_demuxer;
372 extern const AVInputFormat ff_pmp_demuxer;
373 extern const AVInputFormat ff_pp_bnk_demuxer;
374 extern const AVOutputFormat ff_psp_muxer;
375 extern const AVInputFormat ff_pva_demuxer;
376 extern const AVInputFormat ff_pvf_demuxer;
377 extern const AVInputFormat ff_qcp_demuxer;
378 extern const AVInputFormat ff_r3d_demuxer;
379 extern const AVInputFormat ff_rawvideo_demuxer;
380 extern const AVOutputFormat ff_rawvideo_muxer;
381 extern const AVInputFormat ff_realtext_demuxer;
382 extern const AVInputFormat ff_redspark_demuxer;
383 extern const AVInputFormat ff_rl2_demuxer;
384 extern const AVInputFormat ff_rm_demuxer;
385 extern const AVOutputFormat ff_rm_muxer;
386 extern const AVInputFormat ff_roq_demuxer;
387 extern const AVOutputFormat ff_roq_muxer;
388 extern const AVInputFormat ff_rpl_demuxer;
389 extern const AVInputFormat ff_rsd_demuxer;
390 extern const AVInputFormat ff_rso_demuxer;
391 extern const AVOutputFormat ff_rso_muxer;
392 extern const AVInputFormat ff_rtp_demuxer;
393 extern const AVOutputFormat ff_rtp_muxer;
394 extern const AVOutputFormat ff_rtp_mpegts_muxer;
395 extern const AVInputFormat ff_rtsp_demuxer;
396 extern const AVOutputFormat ff_rtsp_muxer;
397 extern const AVInputFormat ff_s337m_demuxer;
398 extern const AVInputFormat ff_sami_demuxer;
399 extern const AVInputFormat ff_sap_demuxer;
400 extern const AVOutputFormat ff_sap_muxer;
401 extern const AVInputFormat ff_sbc_demuxer;
402 extern const AVOutputFormat ff_sbc_muxer;
403 extern const AVInputFormat ff_sbg_demuxer;
404 extern const AVInputFormat ff_scc_demuxer;
405 extern const AVOutputFormat ff_scc_muxer;
406 extern const AVInputFormat ff_scd_demuxer;
407 extern const AVInputFormat ff_sdp_demuxer;
408 extern const AVInputFormat ff_sdr2_demuxer;
409 extern const AVInputFormat ff_sds_demuxer;
410 extern const AVInputFormat ff_sdx_demuxer;
411 extern const AVInputFormat ff_segafilm_demuxer;
412 extern const AVOutputFormat ff_segafilm_muxer;
413 extern const AVOutputFormat ff_segment_muxer;
414 extern const AVOutputFormat ff_stream_segment_muxer;
415 extern const AVInputFormat ff_ser_demuxer;
416 extern const AVInputFormat ff_sga_demuxer;
417 extern const AVInputFormat ff_shorten_demuxer;
418 extern const AVInputFormat ff_siff_demuxer;
419 extern const AVInputFormat ff_simbiosis_imx_demuxer;
420 extern const AVInputFormat ff_sln_demuxer;
421 extern const AVInputFormat ff_smacker_demuxer;
422 extern const AVInputFormat ff_smjpeg_demuxer;
423 extern const AVOutputFormat ff_smjpeg_muxer;
424 extern const AVOutputFormat ff_smoothstreaming_muxer;
425 extern const AVInputFormat ff_smush_demuxer;
426 extern const AVInputFormat ff_sol_demuxer;
427 extern const AVInputFormat ff_sox_demuxer;
428 extern const AVOutputFormat ff_sox_muxer;
429 extern const AVOutputFormat ff_spx_muxer;
430 extern const AVInputFormat ff_spdif_demuxer;
431 extern const AVOutputFormat ff_spdif_muxer;
432 extern const AVInputFormat ff_srt_demuxer;
433 extern const AVOutputFormat ff_srt_muxer;
434 extern const AVInputFormat ff_str_demuxer;
435 extern const AVInputFormat ff_stl_demuxer;
436 extern const AVOutputFormat ff_streamhash_muxer;
437 extern const AVInputFormat ff_subviewer1_demuxer;
438 extern const AVInputFormat ff_subviewer_demuxer;
439 extern const AVInputFormat ff_sup_demuxer;
440 extern const AVOutputFormat ff_sup_muxer;
441 extern const AVInputFormat ff_svag_demuxer;
442 extern const AVInputFormat ff_svs_demuxer;
443 extern const AVInputFormat ff_swf_demuxer;
444 extern const AVOutputFormat ff_swf_muxer;
445 extern const AVInputFormat ff_tak_demuxer;
446 extern const AVOutputFormat ff_tee_muxer;
447 extern const AVInputFormat ff_tedcaptions_demuxer;
448 extern const AVOutputFormat ff_tg2_muxer;
449 extern const AVOutputFormat ff_tgp_muxer;
450 extern const AVInputFormat ff_thp_demuxer;
451 extern const AVInputFormat ff_threedostr_demuxer;
452 extern const AVInputFormat ff_tiertexseq_demuxer;
453 extern const AVOutputFormat ff_mkvtimestamp_v2_muxer;
454 extern const AVInputFormat ff_tmv_demuxer;
455 extern const AVInputFormat ff_truehd_demuxer;
456 extern const AVOutputFormat ff_truehd_muxer;
457 extern const AVInputFormat ff_tta_demuxer;
458 extern const AVOutputFormat ff_tta_muxer;
459 extern const AVOutputFormat ff_ttml_muxer;
460 extern const AVInputFormat ff_txd_demuxer;
461 extern const AVInputFormat ff_tty_demuxer;
462 extern const AVInputFormat ff_ty_demuxer;
463 extern const AVOutputFormat ff_uncodedframecrc_muxer;
464 extern const AVInputFormat ff_v210_demuxer;
465 extern const AVInputFormat ff_v210x_demuxer;
466 extern const AVInputFormat ff_vag_demuxer;
467 extern const AVInputFormat ff_vc1_demuxer;
468 extern const AVOutputFormat ff_vc1_muxer;
469 extern const AVInputFormat ff_vc1t_demuxer;
470 extern const AVOutputFormat ff_vc1t_muxer;
471 extern const AVInputFormat ff_vividas_demuxer;
472 extern const AVInputFormat ff_vivo_demuxer;
473 extern const AVInputFormat ff_vmd_demuxer;
474 extern const AVInputFormat ff_vobsub_demuxer;
475 extern const AVInputFormat ff_voc_demuxer;
476 extern const AVOutputFormat ff_voc_muxer;
477 extern const AVInputFormat ff_vpk_demuxer;
478 extern const AVInputFormat ff_vplayer_demuxer;
479 extern const AVInputFormat ff_vqf_demuxer;
480 extern const AVInputFormat ff_w64_demuxer;
481 extern const AVOutputFormat ff_w64_muxer;
482 extern const AVInputFormat ff_wav_demuxer;
483 extern const AVOutputFormat ff_wav_muxer;
484 extern const AVInputFormat ff_wc3_demuxer;
485 extern const AVOutputFormat ff_webm_muxer;
486 extern const AVInputFormat ff_webm_dash_manifest_demuxer;
487 extern const AVOutputFormat ff_webm_dash_manifest_muxer;
488 extern const AVOutputFormat ff_webm_chunk_muxer;
489 extern const AVOutputFormat ff_webp_muxer;
490 extern const AVInputFormat ff_webvtt_demuxer;
491 extern const AVOutputFormat ff_webvtt_muxer;
492 extern const AVInputFormat ff_wsaud_demuxer;
493 extern const AVOutputFormat ff_wsaud_muxer;
494 extern const AVInputFormat ff_wsd_demuxer;
495 extern const AVInputFormat ff_wsvqa_demuxer;
496 extern const AVInputFormat ff_wtv_demuxer;
497 extern const AVOutputFormat ff_wtv_muxer;
498 extern const AVInputFormat ff_wve_demuxer;
499 extern const AVInputFormat ff_wv_demuxer;
500 extern const AVOutputFormat ff_wv_muxer;
501 extern const AVInputFormat ff_xa_demuxer;
502 extern const AVInputFormat ff_xbin_demuxer;
503 extern const AVInputFormat ff_xmv_demuxer;
504 extern const AVInputFormat ff_xvag_demuxer;
505 extern const AVInputFormat ff_xwma_demuxer;
506 extern const AVInputFormat ff_yop_demuxer;
507 extern const AVInputFormat ff_yuv4mpegpipe_demuxer;
508 extern const AVOutputFormat ff_yuv4mpegpipe_muxer;
509 /* image demuxers */
510 extern const AVInputFormat ff_image_bmp_pipe_demuxer;
511 extern const AVInputFormat ff_image_cri_pipe_demuxer;
512 extern const AVInputFormat ff_image_dds_pipe_demuxer;
513 extern const AVInputFormat ff_image_dpx_pipe_demuxer;
514 extern const AVInputFormat ff_image_exr_pipe_demuxer;
515 extern const AVInputFormat ff_image_gem_pipe_demuxer;
516 extern const AVInputFormat ff_image_gif_pipe_demuxer;
517 extern const AVInputFormat ff_image_hdr_pipe_demuxer;
518 extern const AVInputFormat ff_image_j2k_pipe_demuxer;
519 extern const AVInputFormat ff_image_jpeg_pipe_demuxer;
520 extern const AVInputFormat ff_image_jpegls_pipe_demuxer;
521 extern const AVInputFormat ff_image_jpegxl_pipe_demuxer;
522 extern const AVInputFormat ff_image_pam_pipe_demuxer;
523 extern const AVInputFormat ff_image_pbm_pipe_demuxer;
524 extern const AVInputFormat ff_image_pcx_pipe_demuxer;
525 extern const AVInputFormat ff_image_pfm_pipe_demuxer;
526 extern const AVInputFormat ff_image_pgmyuv_pipe_demuxer;
527 extern const AVInputFormat ff_image_pgm_pipe_demuxer;
528 extern const AVInputFormat ff_image_pgx_pipe_demuxer;
529 extern const AVInputFormat ff_image_phm_pipe_demuxer;
530 extern const AVInputFormat ff_image_photocd_pipe_demuxer;
531 extern const AVInputFormat ff_image_pictor_pipe_demuxer;
532 extern const AVInputFormat ff_image_png_pipe_demuxer;
533 extern const AVInputFormat ff_image_ppm_pipe_demuxer;
534 extern const AVInputFormat ff_image_psd_pipe_demuxer;
535 extern const AVInputFormat ff_image_qdraw_pipe_demuxer;
536 extern const AVInputFormat ff_image_qoi_pipe_demuxer;
537 extern const AVInputFormat ff_image_sgi_pipe_demuxer;
538 extern const AVInputFormat ff_image_svg_pipe_demuxer;
539 extern const AVInputFormat ff_image_sunrast_pipe_demuxer;
540 extern const AVInputFormat ff_image_tiff_pipe_demuxer;
541 extern const AVInputFormat ff_image_vbn_pipe_demuxer;
542 extern const AVInputFormat ff_image_webp_pipe_demuxer;
543 extern const AVInputFormat ff_image_xbm_pipe_demuxer;
544 extern const AVInputFormat ff_image_xpm_pipe_demuxer;
545 extern const AVInputFormat ff_image_xwd_pipe_demuxer;
546
547 /* external libraries */
548 extern const AVOutputFormat ff_chromaprint_muxer;
549 extern const AVInputFormat ff_libgme_demuxer;
550 extern const AVInputFormat ff_libmodplug_demuxer;
551 extern const AVInputFormat ff_libopenmpt_demuxer;
552 extern const AVInputFormat ff_vapoursynth_demuxer;
553
554 #include "libavformat/muxer_list.c"
555 #include "libavformat/demuxer_list.c"
556
557 static atomic_uintptr_t indev_list_intptr = ATOMIC_VAR_INIT(0);
558 static atomic_uintptr_t outdev_list_intptr = ATOMIC_VAR_INIT(0);
559
560 16891897 const AVOutputFormat *av_muxer_iterate(void **opaque)
561 {
562 static const uintptr_t size = sizeof(muxer_list)/sizeof(muxer_list[0]) - 1;
563 16891897 uintptr_t i = (uintptr_t)*opaque;
564 16891897 const AVOutputFormat *f = NULL;
565 uintptr_t tmp;
566
567
2/2
✓ Branch 0 taken 16239175 times.
✓ Branch 1 taken 652722 times.
16891897 if (i < size) {
568 16239175 f = muxer_list[i];
569
2/2
✓ Branch 0 taken 652687 times.
✓ Branch 1 taken 35 times.
652722 } else if (tmp = atomic_load_explicit(&outdev_list_intptr, memory_order_relaxed)) {
570 652687 const AVOutputFormat *const *outdev_list = (const AVOutputFormat *const *)tmp;
571 652687 f = outdev_list[i - size];
572 }
573
574
2/2
✓ Branch 0 taken 16798621 times.
✓ Branch 1 taken 93276 times.
16891897 if (f)
575 16798621 *opaque = (void*)(i + 1);
576 16891897 return f;
577 }
578
579 33988014 const AVInputFormat *av_demuxer_iterate(void **opaque)
580 {
581 static const uintptr_t size = sizeof(demuxer_list)/sizeof(demuxer_list[0]) - 1;
582 33988014 uintptr_t i = (uintptr_t)*opaque;
583 33988014 const AVInputFormat *f = NULL;
584 uintptr_t tmp;
585
586
2/2
✓ Branch 0 taken 33309694 times.
✓ Branch 1 taken 678320 times.
33988014 if (i < size) {
587 33309694 f = demuxer_list[i];
588
2/2
✓ Branch 0 taken 678023 times.
✓ Branch 1 taken 297 times.
678320 } else if (tmp = atomic_load_explicit(&indev_list_intptr, memory_order_relaxed)) {
589 678023 const AVInputFormat *const *indev_list = (const AVInputFormat *const *)tmp;
590 678023 f = indev_list[i - size];
591 }
592
593
2/2
✓ Branch 0 taken 33890875 times.
✓ Branch 1 taken 97139 times.
33988014 if (f)
594 33890875 *opaque = (void*)(i + 1);
595 33988014 return f;
596 }
597
598 6582 void avpriv_register_devices(const AVOutputFormat * const o[], const AVInputFormat * const i[])
599 {
600 6582 atomic_store_explicit(&outdev_list_intptr, (uintptr_t)o, memory_order_relaxed);
601 6582 atomic_store_explicit(&indev_list_intptr, (uintptr_t)i, memory_order_relaxed);
602 6582 }
603