FFmpeg coverage


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