FFmpeg coverage


Directory: ../../../ffmpeg/
File: src/libavcodec/allcodecs.c
Date: 2022-07-05 19:52:29
Exec Total Coverage
Lines: 42 45 93.3%
Branches: 19 24 79.2%

Line Branch Exec Source
1 /*
2 * Provide registration of all codecs, parsers and bitstream filters for libavcodec.
3 * Copyright (c) 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 /**
23 * @file
24 * Provide registration of all codecs, parsers and bitstream filters for libavcodec.
25 */
26
27 #include <stdint.h>
28 #include <string.h>
29
30 #include "config.h"
31 #include "config_components.h"
32 #include "libavutil/thread.h"
33 #include "codec.h"
34 #include "codec_id.h"
35 #include "codec_internal.h"
36
37 extern const FFCodec ff_a64multi_encoder;
38 extern const FFCodec ff_a64multi5_encoder;
39 extern const FFCodec ff_aasc_decoder;
40 extern const FFCodec ff_aic_decoder;
41 extern const FFCodec ff_alias_pix_encoder;
42 extern const FFCodec ff_alias_pix_decoder;
43 extern const FFCodec ff_agm_decoder;
44 extern const FFCodec ff_amv_encoder;
45 extern const FFCodec ff_amv_decoder;
46 extern const FFCodec ff_anm_decoder;
47 extern const FFCodec ff_ansi_decoder;
48 extern const FFCodec ff_apng_encoder;
49 extern const FFCodec ff_apng_decoder;
50 extern const FFCodec ff_arbc_decoder;
51 extern const FFCodec ff_argo_decoder;
52 extern const FFCodec ff_asv1_encoder;
53 extern const FFCodec ff_asv1_decoder;
54 extern const FFCodec ff_asv2_encoder;
55 extern const FFCodec ff_asv2_decoder;
56 extern const FFCodec ff_aura_decoder;
57 extern const FFCodec ff_aura2_decoder;
58 extern const FFCodec ff_avrp_encoder;
59 extern const FFCodec ff_avrp_decoder;
60 extern const FFCodec ff_avrn_decoder;
61 extern const FFCodec ff_avs_decoder;
62 extern const FFCodec ff_avui_encoder;
63 extern const FFCodec ff_avui_decoder;
64 extern const FFCodec ff_ayuv_encoder;
65 extern const FFCodec ff_ayuv_decoder;
66 extern const FFCodec ff_bethsoftvid_decoder;
67 extern const FFCodec ff_bfi_decoder;
68 extern const FFCodec ff_bink_decoder;
69 extern const FFCodec ff_bitpacked_decoder;
70 extern const FFCodec ff_bitpacked_encoder;
71 extern const FFCodec ff_bmp_encoder;
72 extern const FFCodec ff_bmp_decoder;
73 extern const FFCodec ff_bmv_video_decoder;
74 extern const FFCodec ff_brender_pix_decoder;
75 extern const FFCodec ff_c93_decoder;
76 extern const FFCodec ff_cavs_decoder;
77 extern const FFCodec ff_cdgraphics_decoder;
78 extern const FFCodec ff_cdtoons_decoder;
79 extern const FFCodec ff_cdxl_decoder;
80 extern const FFCodec ff_cfhd_encoder;
81 extern const FFCodec ff_cfhd_decoder;
82 extern const FFCodec ff_cinepak_encoder;
83 extern const FFCodec ff_cinepak_decoder;
84 extern const FFCodec ff_clearvideo_decoder;
85 extern const FFCodec ff_cljr_encoder;
86 extern const FFCodec ff_cljr_decoder;
87 extern const FFCodec ff_cllc_decoder;
88 extern const FFCodec ff_comfortnoise_encoder;
89 extern const FFCodec ff_comfortnoise_decoder;
90 extern const FFCodec ff_cpia_decoder;
91 extern const FFCodec ff_cri_decoder;
92 extern const FFCodec ff_cscd_decoder;
93 extern const FFCodec ff_cyuv_decoder;
94 extern const FFCodec ff_dds_decoder;
95 extern const FFCodec ff_dfa_decoder;
96 extern const FFCodec ff_dirac_decoder;
97 extern const FFCodec ff_dnxhd_encoder;
98 extern const FFCodec ff_dnxhd_decoder;
99 extern const FFCodec ff_dpx_encoder;
100 extern const FFCodec ff_dpx_decoder;
101 extern const FFCodec ff_dsicinvideo_decoder;
102 extern const FFCodec ff_dvaudio_decoder;
103 extern const FFCodec ff_dvvideo_encoder;
104 extern const FFCodec ff_dvvideo_decoder;
105 extern const FFCodec ff_dxa_decoder;
106 extern const FFCodec ff_dxtory_decoder;
107 extern const FFCodec ff_dxv_decoder;
108 extern const FFCodec ff_eacmv_decoder;
109 extern const FFCodec ff_eamad_decoder;
110 extern const FFCodec ff_eatgq_decoder;
111 extern const FFCodec ff_eatgv_decoder;
112 extern const FFCodec ff_eatqi_decoder;
113 extern const FFCodec ff_eightbps_decoder;
114 extern const FFCodec ff_eightsvx_exp_decoder;
115 extern const FFCodec ff_eightsvx_fib_decoder;
116 extern const FFCodec ff_escape124_decoder;
117 extern const FFCodec ff_escape130_decoder;
118 extern const FFCodec ff_exr_encoder;
119 extern const FFCodec ff_exr_decoder;
120 extern const FFCodec ff_ffv1_encoder;
121 extern const FFCodec ff_ffv1_decoder;
122 extern const FFCodec ff_ffvhuff_encoder;
123 extern const FFCodec ff_ffvhuff_decoder;
124 extern const FFCodec ff_fic_decoder;
125 extern const FFCodec ff_fits_encoder;
126 extern const FFCodec ff_fits_decoder;
127 extern const FFCodec ff_flashsv_encoder;
128 extern const FFCodec ff_flashsv_decoder;
129 extern const FFCodec ff_flashsv2_encoder;
130 extern const FFCodec ff_flashsv2_decoder;
131 extern const FFCodec ff_flic_decoder;
132 extern const FFCodec ff_flv_encoder;
133 extern const FFCodec ff_flv_decoder;
134 extern const FFCodec ff_fmvc_decoder;
135 extern const FFCodec ff_fourxm_decoder;
136 extern const FFCodec ff_fraps_decoder;
137 extern const FFCodec ff_frwu_decoder;
138 extern const FFCodec ff_g2m_decoder;
139 extern const FFCodec ff_gdv_decoder;
140 extern const FFCodec ff_gem_decoder;
141 extern const FFCodec ff_gif_encoder;
142 extern const FFCodec ff_gif_decoder;
143 extern const FFCodec ff_h261_encoder;
144 extern const FFCodec ff_h261_decoder;
145 extern const FFCodec ff_h263_encoder;
146 extern const FFCodec ff_h263_decoder;
147 extern const FFCodec ff_h263i_decoder;
148 extern const FFCodec ff_h263p_encoder;
149 extern const FFCodec ff_h263p_decoder;
150 extern const FFCodec ff_h263_v4l2m2m_decoder;
151 extern const FFCodec ff_h264_decoder;
152 extern const FFCodec ff_h264_crystalhd_decoder;
153 extern const FFCodec ff_h264_v4l2m2m_decoder;
154 extern const FFCodec ff_h264_mediacodec_decoder;
155 extern const FFCodec ff_h264_mmal_decoder;
156 extern const FFCodec ff_h264_qsv_decoder;
157 extern const FFCodec ff_h264_rkmpp_decoder;
158 extern const FFCodec ff_hap_encoder;
159 extern const FFCodec ff_hap_decoder;
160 extern const FFCodec ff_hevc_decoder;
161 extern const FFCodec ff_hevc_qsv_decoder;
162 extern const FFCodec ff_hevc_rkmpp_decoder;
163 extern const FFCodec ff_hevc_v4l2m2m_decoder;
164 extern const FFCodec ff_hnm4_video_decoder;
165 extern const FFCodec ff_hq_hqa_decoder;
166 extern const FFCodec ff_hqx_decoder;
167 extern const FFCodec ff_huffyuv_encoder;
168 extern const FFCodec ff_huffyuv_decoder;
169 extern const FFCodec ff_hymt_decoder;
170 extern const FFCodec ff_idcin_decoder;
171 extern const FFCodec ff_iff_ilbm_decoder;
172 extern const FFCodec ff_imm4_decoder;
173 extern const FFCodec ff_imm5_decoder;
174 extern const FFCodec ff_indeo2_decoder;
175 extern const FFCodec ff_indeo3_decoder;
176 extern const FFCodec ff_indeo4_decoder;
177 extern const FFCodec ff_indeo5_decoder;
178 extern const FFCodec ff_interplay_video_decoder;
179 extern const FFCodec ff_ipu_decoder;
180 extern const FFCodec ff_jpeg2000_encoder;
181 extern const FFCodec ff_jpeg2000_decoder;
182 extern const FFCodec ff_jpegls_encoder;
183 extern const FFCodec ff_jpegls_decoder;
184 extern const FFCodec ff_jv_decoder;
185 extern const FFCodec ff_kgv1_decoder;
186 extern const FFCodec ff_kmvc_decoder;
187 extern const FFCodec ff_lagarith_decoder;
188 extern const FFCodec ff_ljpeg_encoder;
189 extern const FFCodec ff_loco_decoder;
190 extern const FFCodec ff_lscr_decoder;
191 extern const FFCodec ff_m101_decoder;
192 extern const FFCodec ff_magicyuv_encoder;
193 extern const FFCodec ff_magicyuv_decoder;
194 extern const FFCodec ff_mdec_decoder;
195 extern const FFCodec ff_mimic_decoder;
196 extern const FFCodec ff_mjpeg_encoder;
197 extern const FFCodec ff_mjpeg_decoder;
198 extern const FFCodec ff_mjpegb_decoder;
199 extern const FFCodec ff_mmvideo_decoder;
200 extern const FFCodec ff_mobiclip_decoder;
201 extern const FFCodec ff_motionpixels_decoder;
202 extern const FFCodec ff_mpeg1video_encoder;
203 extern const FFCodec ff_mpeg1video_decoder;
204 extern const FFCodec ff_mpeg2video_encoder;
205 extern const FFCodec ff_mpeg2video_decoder;
206 extern const FFCodec ff_mpeg4_encoder;
207 extern const FFCodec ff_mpeg4_decoder;
208 extern const FFCodec ff_mpeg4_crystalhd_decoder;
209 extern const FFCodec ff_mpeg4_v4l2m2m_decoder;
210 extern const FFCodec ff_mpeg4_mmal_decoder;
211 extern const FFCodec ff_mpegvideo_decoder;
212 extern const FFCodec ff_mpeg1_v4l2m2m_decoder;
213 extern const FFCodec ff_mpeg2_mmal_decoder;
214 extern const FFCodec ff_mpeg2_crystalhd_decoder;
215 extern const FFCodec ff_mpeg2_v4l2m2m_decoder;
216 extern const FFCodec ff_mpeg2_qsv_decoder;
217 extern const FFCodec ff_mpeg2_mediacodec_decoder;
218 extern const FFCodec ff_msa1_decoder;
219 extern const FFCodec ff_mscc_decoder;
220 extern const FFCodec ff_msmpeg4v1_decoder;
221 extern const FFCodec ff_msmpeg4v2_encoder;
222 extern const FFCodec ff_msmpeg4v2_decoder;
223 extern const FFCodec ff_msmpeg4v3_encoder;
224 extern const FFCodec ff_msmpeg4v3_decoder;
225 extern const FFCodec ff_msmpeg4_crystalhd_decoder;
226 extern const FFCodec ff_msp2_decoder;
227 extern const FFCodec ff_msrle_decoder;
228 extern const FFCodec ff_mss1_decoder;
229 extern const FFCodec ff_mss2_decoder;
230 extern const FFCodec ff_msvideo1_encoder;
231 extern const FFCodec ff_msvideo1_decoder;
232 extern const FFCodec ff_mszh_decoder;
233 extern const FFCodec ff_mts2_decoder;
234 extern const FFCodec ff_mv30_decoder;
235 extern const FFCodec ff_mvc1_decoder;
236 extern const FFCodec ff_mvc2_decoder;
237 extern const FFCodec ff_mvdv_decoder;
238 extern const FFCodec ff_mvha_decoder;
239 extern const FFCodec ff_mwsc_decoder;
240 extern const FFCodec ff_mxpeg_decoder;
241 extern const FFCodec ff_notchlc_decoder;
242 extern const FFCodec ff_nuv_decoder;
243 extern const FFCodec ff_paf_video_decoder;
244 extern const FFCodec ff_pam_encoder;
245 extern const FFCodec ff_pam_decoder;
246 extern const FFCodec ff_pbm_encoder;
247 extern const FFCodec ff_pbm_decoder;
248 extern const FFCodec ff_pcx_encoder;
249 extern const FFCodec ff_pcx_decoder;
250 extern const FFCodec ff_pfm_encoder;
251 extern const FFCodec ff_pfm_decoder;
252 extern const FFCodec ff_pgm_encoder;
253 extern const FFCodec ff_pgm_decoder;
254 extern const FFCodec ff_pgmyuv_encoder;
255 extern const FFCodec ff_pgmyuv_decoder;
256 extern const FFCodec ff_pgx_decoder;
257 extern const FFCodec ff_phm_encoder;
258 extern const FFCodec ff_phm_decoder;
259 extern const FFCodec ff_photocd_decoder;
260 extern const FFCodec ff_pictor_decoder;
261 extern const FFCodec ff_pixlet_decoder;
262 extern const FFCodec ff_png_encoder;
263 extern const FFCodec ff_png_decoder;
264 extern const FFCodec ff_ppm_encoder;
265 extern const FFCodec ff_ppm_decoder;
266 extern const FFCodec ff_prores_encoder;
267 extern const FFCodec ff_prores_decoder;
268 extern const FFCodec ff_prores_aw_encoder;
269 extern const FFCodec ff_prores_ks_encoder;
270 extern const FFCodec ff_prosumer_decoder;
271 extern const FFCodec ff_psd_decoder;
272 extern const FFCodec ff_ptx_decoder;
273 extern const FFCodec ff_qdraw_decoder;
274 extern const FFCodec ff_qoi_encoder;
275 extern const FFCodec ff_qoi_decoder;
276 extern const FFCodec ff_qpeg_decoder;
277 extern const FFCodec ff_qtrle_encoder;
278 extern const FFCodec ff_qtrle_decoder;
279 extern const FFCodec ff_r10k_encoder;
280 extern const FFCodec ff_r10k_decoder;
281 extern const FFCodec ff_r210_encoder;
282 extern const FFCodec ff_r210_decoder;
283 extern const FFCodec ff_rasc_decoder;
284 extern const FFCodec ff_rawvideo_encoder;
285 extern const FFCodec ff_rawvideo_decoder;
286 extern const FFCodec ff_rl2_decoder;
287 extern const FFCodec ff_roq_encoder;
288 extern const FFCodec ff_roq_decoder;
289 extern const FFCodec ff_rpza_encoder;
290 extern const FFCodec ff_rpza_decoder;
291 extern const FFCodec ff_rscc_decoder;
292 extern const FFCodec ff_rv10_encoder;
293 extern const FFCodec ff_rv10_decoder;
294 extern const FFCodec ff_rv20_encoder;
295 extern const FFCodec ff_rv20_decoder;
296 extern const FFCodec ff_rv30_decoder;
297 extern const FFCodec ff_rv40_decoder;
298 extern const FFCodec ff_s302m_encoder;
299 extern const FFCodec ff_s302m_decoder;
300 extern const FFCodec ff_sanm_decoder;
301 extern const FFCodec ff_scpr_decoder;
302 extern const FFCodec ff_screenpresso_decoder;
303 extern const FFCodec ff_sga_decoder;
304 extern const FFCodec ff_sgi_encoder;
305 extern const FFCodec ff_sgi_decoder;
306 extern const FFCodec ff_sgirle_decoder;
307 extern const FFCodec ff_sheervideo_decoder;
308 extern const FFCodec ff_simbiosis_imx_decoder;
309 extern const FFCodec ff_smacker_decoder;
310 extern const FFCodec ff_smc_encoder;
311 extern const FFCodec ff_smc_decoder;
312 extern const FFCodec ff_smvjpeg_decoder;
313 extern const FFCodec ff_snow_encoder;
314 extern const FFCodec ff_snow_decoder;
315 extern const FFCodec ff_sp5x_decoder;
316 extern const FFCodec ff_speedhq_decoder;
317 extern const FFCodec ff_speedhq_encoder;
318 extern const FFCodec ff_speex_decoder;
319 extern const FFCodec ff_srgc_decoder;
320 extern const FFCodec ff_sunrast_encoder;
321 extern const FFCodec ff_sunrast_decoder;
322 extern const FFCodec ff_svq1_encoder;
323 extern const FFCodec ff_svq1_decoder;
324 extern const FFCodec ff_svq3_decoder;
325 extern const FFCodec ff_targa_encoder;
326 extern const FFCodec ff_targa_decoder;
327 extern const FFCodec ff_targa_y216_decoder;
328 extern const FFCodec ff_tdsc_decoder;
329 extern const FFCodec ff_theora_decoder;
330 extern const FFCodec ff_thp_decoder;
331 extern const FFCodec ff_tiertexseqvideo_decoder;
332 extern const FFCodec ff_tiff_encoder;
333 extern const FFCodec ff_tiff_decoder;
334 extern const FFCodec ff_tmv_decoder;
335 extern const FFCodec ff_truemotion1_decoder;
336 extern const FFCodec ff_truemotion2_decoder;
337 extern const FFCodec ff_truemotion2rt_decoder;
338 extern const FFCodec ff_tscc_decoder;
339 extern const FFCodec ff_tscc2_decoder;
340 extern const FFCodec ff_txd_decoder;
341 extern const FFCodec ff_ulti_decoder;
342 extern const FFCodec ff_utvideo_encoder;
343 extern const FFCodec ff_utvideo_decoder;
344 extern const FFCodec ff_v210_encoder;
345 extern const FFCodec ff_v210_decoder;
346 extern const FFCodec ff_v210x_decoder;
347 extern const FFCodec ff_v308_encoder;
348 extern const FFCodec ff_v308_decoder;
349 extern const FFCodec ff_v408_encoder;
350 extern const FFCodec ff_v408_decoder;
351 extern const FFCodec ff_v410_encoder;
352 extern const FFCodec ff_v410_decoder;
353 extern const FFCodec ff_vb_decoder;
354 extern const FFCodec ff_vbn_encoder;
355 extern const FFCodec ff_vbn_decoder;
356 extern const FFCodec ff_vble_decoder;
357 extern const FFCodec ff_vc1_decoder;
358 extern const FFCodec ff_vc1_crystalhd_decoder;
359 extern const FFCodec ff_vc1image_decoder;
360 extern const FFCodec ff_vc1_mmal_decoder;
361 extern const FFCodec ff_vc1_qsv_decoder;
362 extern const FFCodec ff_vc1_v4l2m2m_decoder;
363 extern const FFCodec ff_vc2_encoder;
364 extern const FFCodec ff_vcr1_decoder;
365 extern const FFCodec ff_vmdvideo_decoder;
366 extern const FFCodec ff_vmnc_decoder;
367 extern const FFCodec ff_vp3_decoder;
368 extern const FFCodec ff_vp4_decoder;
369 extern const FFCodec ff_vp5_decoder;
370 extern const FFCodec ff_vp6_decoder;
371 extern const FFCodec ff_vp6a_decoder;
372 extern const FFCodec ff_vp6f_decoder;
373 extern const FFCodec ff_vp7_decoder;
374 extern const FFCodec ff_vp8_decoder;
375 extern const FFCodec ff_vp8_rkmpp_decoder;
376 extern const FFCodec ff_vp8_v4l2m2m_decoder;
377 extern const FFCodec ff_vp9_decoder;
378 extern const FFCodec ff_vp9_rkmpp_decoder;
379 extern const FFCodec ff_vp9_v4l2m2m_decoder;
380 extern const FFCodec ff_vqa_decoder;
381 extern const FFCodec ff_webp_decoder;
382 extern const FFCodec ff_wcmv_decoder;
383 extern const FFCodec ff_wrapped_avframe_encoder;
384 extern const FFCodec ff_wrapped_avframe_decoder;
385 extern const FFCodec ff_wmv1_encoder;
386 extern const FFCodec ff_wmv1_decoder;
387 extern const FFCodec ff_wmv2_encoder;
388 extern const FFCodec ff_wmv2_decoder;
389 extern const FFCodec ff_wmv3_decoder;
390 extern const FFCodec ff_wmv3_crystalhd_decoder;
391 extern const FFCodec ff_wmv3image_decoder;
392 extern const FFCodec ff_wnv1_decoder;
393 extern const FFCodec ff_xan_wc3_decoder;
394 extern const FFCodec ff_xan_wc4_decoder;
395 extern const FFCodec ff_xbm_encoder;
396 extern const FFCodec ff_xbm_decoder;
397 extern const FFCodec ff_xface_encoder;
398 extern const FFCodec ff_xface_decoder;
399 extern const FFCodec ff_xl_decoder;
400 extern const FFCodec ff_xpm_decoder;
401 extern const FFCodec ff_xwd_encoder;
402 extern const FFCodec ff_xwd_decoder;
403 extern const FFCodec ff_y41p_encoder;
404 extern const FFCodec ff_y41p_decoder;
405 extern const FFCodec ff_ylc_decoder;
406 extern const FFCodec ff_yop_decoder;
407 extern const FFCodec ff_yuv4_encoder;
408 extern const FFCodec ff_yuv4_decoder;
409 extern const FFCodec ff_zero12v_decoder;
410 extern const FFCodec ff_zerocodec_decoder;
411 extern const FFCodec ff_zlib_encoder;
412 extern const FFCodec ff_zlib_decoder;
413 extern const FFCodec ff_zmbv_encoder;
414 extern const FFCodec ff_zmbv_decoder;
415
416 /* audio codecs */
417 extern const FFCodec ff_aac_encoder;
418 extern const FFCodec ff_aac_decoder;
419 extern const FFCodec ff_aac_fixed_decoder;
420 extern const FFCodec ff_aac_latm_decoder;
421 extern const FFCodec ff_ac3_encoder;
422 extern const FFCodec ff_ac3_decoder;
423 extern const FFCodec ff_ac3_fixed_encoder;
424 extern const FFCodec ff_ac3_fixed_decoder;
425 extern const FFCodec ff_acelp_kelvin_decoder;
426 extern const FFCodec ff_alac_encoder;
427 extern const FFCodec ff_alac_decoder;
428 extern const FFCodec ff_als_decoder;
429 extern const FFCodec ff_amrnb_decoder;
430 extern const FFCodec ff_amrwb_decoder;
431 extern const FFCodec ff_ape_decoder;
432 extern const FFCodec ff_aptx_encoder;
433 extern const FFCodec ff_aptx_decoder;
434 extern const FFCodec ff_aptx_hd_encoder;
435 extern const FFCodec ff_aptx_hd_decoder;
436 extern const FFCodec ff_atrac1_decoder;
437 extern const FFCodec ff_atrac3_decoder;
438 extern const FFCodec ff_atrac3al_decoder;
439 extern const FFCodec ff_atrac3p_decoder;
440 extern const FFCodec ff_atrac3pal_decoder;
441 extern const FFCodec ff_atrac9_decoder;
442 extern const FFCodec ff_binkaudio_dct_decoder;
443 extern const FFCodec ff_binkaudio_rdft_decoder;
444 extern const FFCodec ff_bmv_audio_decoder;
445 extern const FFCodec ff_cook_decoder;
446 extern const FFCodec ff_dca_encoder;
447 extern const FFCodec ff_dca_decoder;
448 extern const FFCodec ff_dfpwm_encoder;
449 extern const FFCodec ff_dfpwm_decoder;
450 extern const FFCodec ff_dolby_e_decoder;
451 extern const FFCodec ff_dsd_lsbf_decoder;
452 extern const FFCodec ff_dsd_msbf_decoder;
453 extern const FFCodec ff_dsd_lsbf_planar_decoder;
454 extern const FFCodec ff_dsd_msbf_planar_decoder;
455 extern const FFCodec ff_dsicinaudio_decoder;
456 extern const FFCodec ff_dss_sp_decoder;
457 extern const FFCodec ff_dst_decoder;
458 extern const FFCodec ff_eac3_encoder;
459 extern const FFCodec ff_eac3_decoder;
460 extern const FFCodec ff_evrc_decoder;
461 extern const FFCodec ff_fastaudio_decoder;
462 extern const FFCodec ff_ffwavesynth_decoder;
463 extern const FFCodec ff_flac_encoder;
464 extern const FFCodec ff_flac_decoder;
465 extern const FFCodec ff_g723_1_encoder;
466 extern const FFCodec ff_g723_1_decoder;
467 extern const FFCodec ff_g729_decoder;
468 extern const FFCodec ff_gsm_decoder;
469 extern const FFCodec ff_gsm_ms_decoder;
470 extern const FFCodec ff_hca_decoder;
471 extern const FFCodec ff_hcom_decoder;
472 extern const FFCodec ff_iac_decoder;
473 extern const FFCodec ff_ilbc_decoder;
474 extern const FFCodec ff_imc_decoder;
475 extern const FFCodec ff_interplay_acm_decoder;
476 extern const FFCodec ff_mace3_decoder;
477 extern const FFCodec ff_mace6_decoder;
478 extern const FFCodec ff_metasound_decoder;
479 extern const FFCodec ff_mlp_encoder;
480 extern const FFCodec ff_mlp_decoder;
481 extern const FFCodec ff_mp1_decoder;
482 extern const FFCodec ff_mp1float_decoder;
483 extern const FFCodec ff_mp2_encoder;
484 extern const FFCodec ff_mp2_decoder;
485 extern const FFCodec ff_mp2float_decoder;
486 extern const FFCodec ff_mp2fixed_encoder;
487 extern const FFCodec ff_mp3float_decoder;
488 extern const FFCodec ff_mp3_decoder;
489 extern const FFCodec ff_mp3adufloat_decoder;
490 extern const FFCodec ff_mp3adu_decoder;
491 extern const FFCodec ff_mp3on4float_decoder;
492 extern const FFCodec ff_mp3on4_decoder;
493 extern const FFCodec ff_mpc7_decoder;
494 extern const FFCodec ff_mpc8_decoder;
495 extern const FFCodec ff_msnsiren_decoder;
496 extern const FFCodec ff_nellymoser_encoder;
497 extern const FFCodec ff_nellymoser_decoder;
498 extern const FFCodec ff_on2avc_decoder;
499 extern const FFCodec ff_opus_encoder;
500 extern const FFCodec ff_opus_decoder;
501 extern const FFCodec ff_paf_audio_decoder;
502 extern const FFCodec ff_qcelp_decoder;
503 extern const FFCodec ff_qdm2_decoder;
504 extern const FFCodec ff_qdmc_decoder;
505 extern const FFCodec ff_ra_144_encoder;
506 extern const FFCodec ff_ra_144_decoder;
507 extern const FFCodec ff_ra_288_decoder;
508 extern const FFCodec ff_ralf_decoder;
509 extern const FFCodec ff_sbc_encoder;
510 extern const FFCodec ff_sbc_decoder;
511 extern const FFCodec ff_shorten_decoder;
512 extern const FFCodec ff_sipr_decoder;
513 extern const FFCodec ff_siren_decoder;
514 extern const FFCodec ff_smackaud_decoder;
515 extern const FFCodec ff_sonic_encoder;
516 extern const FFCodec ff_sonic_decoder;
517 extern const FFCodec ff_sonic_ls_encoder;
518 extern const FFCodec ff_tak_decoder;
519 extern const FFCodec ff_truehd_encoder;
520 extern const FFCodec ff_truehd_decoder;
521 extern const FFCodec ff_truespeech_decoder;
522 extern const FFCodec ff_tta_encoder;
523 extern const FFCodec ff_tta_decoder;
524 extern const FFCodec ff_twinvq_decoder;
525 extern const FFCodec ff_vmdaudio_decoder;
526 extern const FFCodec ff_vorbis_encoder;
527 extern const FFCodec ff_vorbis_decoder;
528 extern const FFCodec ff_wavpack_encoder;
529 extern const FFCodec ff_wavpack_decoder;
530 extern const FFCodec ff_wmalossless_decoder;
531 extern const FFCodec ff_wmapro_decoder;
532 extern const FFCodec ff_wmav1_encoder;
533 extern const FFCodec ff_wmav1_decoder;
534 extern const FFCodec ff_wmav2_encoder;
535 extern const FFCodec ff_wmav2_decoder;
536 extern const FFCodec ff_wmavoice_decoder;
537 extern const FFCodec ff_ws_snd1_decoder;
538 extern const FFCodec ff_xma1_decoder;
539 extern const FFCodec ff_xma2_decoder;
540
541 /* PCM codecs */
542 extern const FFCodec ff_pcm_alaw_encoder;
543 extern const FFCodec ff_pcm_alaw_decoder;
544 extern const FFCodec ff_pcm_bluray_encoder;
545 extern const FFCodec ff_pcm_bluray_decoder;
546 extern const FFCodec ff_pcm_dvd_encoder;
547 extern const FFCodec ff_pcm_dvd_decoder;
548 extern const FFCodec ff_pcm_f16le_decoder;
549 extern const FFCodec ff_pcm_f24le_decoder;
550 extern const FFCodec ff_pcm_f32be_encoder;
551 extern const FFCodec ff_pcm_f32be_decoder;
552 extern const FFCodec ff_pcm_f32le_encoder;
553 extern const FFCodec ff_pcm_f32le_decoder;
554 extern const FFCodec ff_pcm_f64be_encoder;
555 extern const FFCodec ff_pcm_f64be_decoder;
556 extern const FFCodec ff_pcm_f64le_encoder;
557 extern const FFCodec ff_pcm_f64le_decoder;
558 extern const FFCodec ff_pcm_lxf_decoder;
559 extern const FFCodec ff_pcm_mulaw_encoder;
560 extern const FFCodec ff_pcm_mulaw_decoder;
561 extern const FFCodec ff_pcm_s8_encoder;
562 extern const FFCodec ff_pcm_s8_decoder;
563 extern const FFCodec ff_pcm_s8_planar_encoder;
564 extern const FFCodec ff_pcm_s8_planar_decoder;
565 extern const FFCodec ff_pcm_s16be_encoder;
566 extern const FFCodec ff_pcm_s16be_decoder;
567 extern const FFCodec ff_pcm_s16be_planar_encoder;
568 extern const FFCodec ff_pcm_s16be_planar_decoder;
569 extern const FFCodec ff_pcm_s16le_encoder;
570 extern const FFCodec ff_pcm_s16le_decoder;
571 extern const FFCodec ff_pcm_s16le_planar_encoder;
572 extern const FFCodec ff_pcm_s16le_planar_decoder;
573 extern const FFCodec ff_pcm_s24be_encoder;
574 extern const FFCodec ff_pcm_s24be_decoder;
575 extern const FFCodec ff_pcm_s24daud_encoder;
576 extern const FFCodec ff_pcm_s24daud_decoder;
577 extern const FFCodec ff_pcm_s24le_encoder;
578 extern const FFCodec ff_pcm_s24le_decoder;
579 extern const FFCodec ff_pcm_s24le_planar_encoder;
580 extern const FFCodec ff_pcm_s24le_planar_decoder;
581 extern const FFCodec ff_pcm_s32be_encoder;
582 extern const FFCodec ff_pcm_s32be_decoder;
583 extern const FFCodec ff_pcm_s32le_encoder;
584 extern const FFCodec ff_pcm_s32le_decoder;
585 extern const FFCodec ff_pcm_s32le_planar_encoder;
586 extern const FFCodec ff_pcm_s32le_planar_decoder;
587 extern const FFCodec ff_pcm_s64be_encoder;
588 extern const FFCodec ff_pcm_s64be_decoder;
589 extern const FFCodec ff_pcm_s64le_encoder;
590 extern const FFCodec ff_pcm_s64le_decoder;
591 extern const FFCodec ff_pcm_sga_decoder;
592 extern const FFCodec ff_pcm_u8_encoder;
593 extern const FFCodec ff_pcm_u8_decoder;
594 extern const FFCodec ff_pcm_u16be_encoder;
595 extern const FFCodec ff_pcm_u16be_decoder;
596 extern const FFCodec ff_pcm_u16le_encoder;
597 extern const FFCodec ff_pcm_u16le_decoder;
598 extern const FFCodec ff_pcm_u24be_encoder;
599 extern const FFCodec ff_pcm_u24be_decoder;
600 extern const FFCodec ff_pcm_u24le_encoder;
601 extern const FFCodec ff_pcm_u24le_decoder;
602 extern const FFCodec ff_pcm_u32be_encoder;
603 extern const FFCodec ff_pcm_u32be_decoder;
604 extern const FFCodec ff_pcm_u32le_encoder;
605 extern const FFCodec ff_pcm_u32le_decoder;
606 extern const FFCodec ff_pcm_vidc_encoder;
607 extern const FFCodec ff_pcm_vidc_decoder;
608
609 /* DPCM codecs */
610 extern const FFCodec ff_derf_dpcm_decoder;
611 extern const FFCodec ff_gremlin_dpcm_decoder;
612 extern const FFCodec ff_interplay_dpcm_decoder;
613 extern const FFCodec ff_roq_dpcm_encoder;
614 extern const FFCodec ff_roq_dpcm_decoder;
615 extern const FFCodec ff_sdx2_dpcm_decoder;
616 extern const FFCodec ff_sol_dpcm_decoder;
617 extern const FFCodec ff_xan_dpcm_decoder;
618
619 /* ADPCM codecs */
620 extern const FFCodec ff_adpcm_4xm_decoder;
621 extern const FFCodec ff_adpcm_adx_encoder;
622 extern const FFCodec ff_adpcm_adx_decoder;
623 extern const FFCodec ff_adpcm_afc_decoder;
624 extern const FFCodec ff_adpcm_agm_decoder;
625 extern const FFCodec ff_adpcm_aica_decoder;
626 extern const FFCodec ff_adpcm_argo_decoder;
627 extern const FFCodec ff_adpcm_argo_encoder;
628 extern const FFCodec ff_adpcm_ct_decoder;
629 extern const FFCodec ff_adpcm_dtk_decoder;
630 extern const FFCodec ff_adpcm_ea_decoder;
631 extern const FFCodec ff_adpcm_ea_maxis_xa_decoder;
632 extern const FFCodec ff_adpcm_ea_r1_decoder;
633 extern const FFCodec ff_adpcm_ea_r2_decoder;
634 extern const FFCodec ff_adpcm_ea_r3_decoder;
635 extern const FFCodec ff_adpcm_ea_xas_decoder;
636 extern const FFCodec ff_adpcm_g722_encoder;
637 extern const FFCodec ff_adpcm_g722_decoder;
638 extern const FFCodec ff_adpcm_g726_encoder;
639 extern const FFCodec ff_adpcm_g726_decoder;
640 extern const FFCodec ff_adpcm_g726le_encoder;
641 extern const FFCodec ff_adpcm_g726le_decoder;
642 extern const FFCodec ff_adpcm_ima_acorn_decoder;
643 extern const FFCodec ff_adpcm_ima_amv_decoder;
644 extern const FFCodec ff_adpcm_ima_amv_encoder;
645 extern const FFCodec ff_adpcm_ima_alp_decoder;
646 extern const FFCodec ff_adpcm_ima_alp_encoder;
647 extern const FFCodec ff_adpcm_ima_apc_decoder;
648 extern const FFCodec ff_adpcm_ima_apm_decoder;
649 extern const FFCodec ff_adpcm_ima_apm_encoder;
650 extern const FFCodec ff_adpcm_ima_cunning_decoder;
651 extern const FFCodec ff_adpcm_ima_dat4_decoder;
652 extern const FFCodec ff_adpcm_ima_dk3_decoder;
653 extern const FFCodec ff_adpcm_ima_dk4_decoder;
654 extern const FFCodec ff_adpcm_ima_ea_eacs_decoder;
655 extern const FFCodec ff_adpcm_ima_ea_sead_decoder;
656 extern const FFCodec ff_adpcm_ima_iss_decoder;
657 extern const FFCodec ff_adpcm_ima_moflex_decoder;
658 extern const FFCodec ff_adpcm_ima_mtf_decoder;
659 extern const FFCodec ff_adpcm_ima_oki_decoder;
660 extern const FFCodec ff_adpcm_ima_qt_encoder;
661 extern const FFCodec ff_adpcm_ima_qt_decoder;
662 extern const FFCodec ff_adpcm_ima_rad_decoder;
663 extern const FFCodec ff_adpcm_ima_ssi_decoder;
664 extern const FFCodec ff_adpcm_ima_ssi_encoder;
665 extern const FFCodec ff_adpcm_ima_smjpeg_decoder;
666 extern const FFCodec ff_adpcm_ima_wav_encoder;
667 extern const FFCodec ff_adpcm_ima_wav_decoder;
668 extern const FFCodec ff_adpcm_ima_ws_encoder;
669 extern const FFCodec ff_adpcm_ima_ws_decoder;
670 extern const FFCodec ff_adpcm_ms_encoder;
671 extern const FFCodec ff_adpcm_ms_decoder;
672 extern const FFCodec ff_adpcm_mtaf_decoder;
673 extern const FFCodec ff_adpcm_psx_decoder;
674 extern const FFCodec ff_adpcm_sbpro_2_decoder;
675 extern const FFCodec ff_adpcm_sbpro_3_decoder;
676 extern const FFCodec ff_adpcm_sbpro_4_decoder;
677 extern const FFCodec ff_adpcm_swf_encoder;
678 extern const FFCodec ff_adpcm_swf_decoder;
679 extern const FFCodec ff_adpcm_thp_decoder;
680 extern const FFCodec ff_adpcm_thp_le_decoder;
681 extern const FFCodec ff_adpcm_vima_decoder;
682 extern const FFCodec ff_adpcm_xa_decoder;
683 extern const FFCodec ff_adpcm_yamaha_encoder;
684 extern const FFCodec ff_adpcm_yamaha_decoder;
685 extern const FFCodec ff_adpcm_zork_decoder;
686
687 /* subtitles */
688 extern const FFCodec ff_ssa_encoder;
689 extern const FFCodec ff_ssa_decoder;
690 extern const FFCodec ff_ass_encoder;
691 extern const FFCodec ff_ass_decoder;
692 extern const FFCodec ff_ccaption_decoder;
693 extern const FFCodec ff_dvbsub_encoder;
694 extern const FFCodec ff_dvbsub_decoder;
695 extern const FFCodec ff_dvdsub_encoder;
696 extern const FFCodec ff_dvdsub_decoder;
697 extern const FFCodec ff_jacosub_decoder;
698 extern const FFCodec ff_microdvd_decoder;
699 extern const FFCodec ff_movtext_encoder;
700 extern const FFCodec ff_movtext_decoder;
701 extern const FFCodec ff_mpl2_decoder;
702 extern const FFCodec ff_pgssub_decoder;
703 extern const FFCodec ff_pjs_decoder;
704 extern const FFCodec ff_realtext_decoder;
705 extern const FFCodec ff_sami_decoder;
706 extern const FFCodec ff_srt_encoder;
707 extern const FFCodec ff_srt_decoder;
708 extern const FFCodec ff_stl_decoder;
709 extern const FFCodec ff_subrip_encoder;
710 extern const FFCodec ff_subrip_decoder;
711 extern const FFCodec ff_subviewer_decoder;
712 extern const FFCodec ff_subviewer1_decoder;
713 extern const FFCodec ff_text_encoder;
714 extern const FFCodec ff_text_decoder;
715 extern const FFCodec ff_ttml_encoder;
716 extern const FFCodec ff_vplayer_decoder;
717 extern const FFCodec ff_webvtt_encoder;
718 extern const FFCodec ff_webvtt_decoder;
719 extern const FFCodec ff_xsub_encoder;
720 extern const FFCodec ff_xsub_decoder;
721
722 /* external libraries */
723 extern const FFCodec ff_aac_at_encoder;
724 extern const FFCodec ff_aac_at_decoder;
725 extern const FFCodec ff_ac3_at_decoder;
726 extern const FFCodec ff_adpcm_ima_qt_at_decoder;
727 extern const FFCodec ff_alac_at_encoder;
728 extern const FFCodec ff_alac_at_decoder;
729 extern const FFCodec ff_amr_nb_at_decoder;
730 extern const FFCodec ff_eac3_at_decoder;
731 extern const FFCodec ff_gsm_ms_at_decoder;
732 extern const FFCodec ff_ilbc_at_encoder;
733 extern const FFCodec ff_ilbc_at_decoder;
734 extern const FFCodec ff_mp1_at_decoder;
735 extern const FFCodec ff_mp2_at_decoder;
736 extern const FFCodec ff_mp3_at_decoder;
737 extern const FFCodec ff_pcm_alaw_at_encoder;
738 extern const FFCodec ff_pcm_alaw_at_decoder;
739 extern const FFCodec ff_pcm_mulaw_at_encoder;
740 extern const FFCodec ff_pcm_mulaw_at_decoder;
741 extern const FFCodec ff_qdmc_at_decoder;
742 extern const FFCodec ff_qdm2_at_decoder;
743 extern FFCodec ff_libaom_av1_encoder;
744 extern const FFCodec ff_libaribb24_decoder;
745 extern const FFCodec ff_libcelt_decoder;
746 extern const FFCodec ff_libcodec2_encoder;
747 extern const FFCodec ff_libcodec2_decoder;
748 extern const FFCodec ff_libdav1d_decoder;
749 extern const FFCodec ff_libdavs2_decoder;
750 extern const FFCodec ff_libfdk_aac_encoder;
751 extern const FFCodec ff_libfdk_aac_decoder;
752 extern const FFCodec ff_libgsm_encoder;
753 extern const FFCodec ff_libgsm_decoder;
754 extern const FFCodec ff_libgsm_ms_encoder;
755 extern const FFCodec ff_libgsm_ms_decoder;
756 extern const FFCodec ff_libilbc_encoder;
757 extern const FFCodec ff_libilbc_decoder;
758 extern const FFCodec ff_libjxl_decoder;
759 extern const FFCodec ff_libjxl_encoder;
760 extern const FFCodec ff_libmp3lame_encoder;
761 extern const FFCodec ff_libopencore_amrnb_encoder;
762 extern const FFCodec ff_libopencore_amrnb_decoder;
763 extern const FFCodec ff_libopencore_amrwb_decoder;
764 extern const FFCodec ff_libopenjpeg_encoder;
765 extern const FFCodec ff_libopenjpeg_decoder;
766 extern const FFCodec ff_libopus_encoder;
767 extern const FFCodec ff_libopus_decoder;
768 extern const FFCodec ff_librav1e_encoder;
769 extern const FFCodec ff_librsvg_decoder;
770 extern const FFCodec ff_libshine_encoder;
771 extern const FFCodec ff_libspeex_encoder;
772 extern const FFCodec ff_libspeex_decoder;
773 extern const FFCodec ff_libsvtav1_encoder;
774 extern const FFCodec ff_libtheora_encoder;
775 extern const FFCodec ff_libtwolame_encoder;
776 extern const FFCodec ff_libuavs3d_decoder;
777 extern const FFCodec ff_libvo_amrwbenc_encoder;
778 extern const FFCodec ff_libvorbis_encoder;
779 extern const FFCodec ff_libvorbis_decoder;
780 extern const FFCodec ff_libvpx_vp8_encoder;
781 extern const FFCodec ff_libvpx_vp8_decoder;
782 extern FFCodec ff_libvpx_vp9_encoder;
783 extern FFCodec ff_libvpx_vp9_decoder;
784 /* preferred over libwebp */
785 extern const FFCodec ff_libwebp_anim_encoder;
786 extern const FFCodec ff_libwebp_encoder;
787 extern const FFCodec ff_libx262_encoder;
788 #if CONFIG_LIBX264_ENCODER
789 #include <x264.h>
790 #if X264_BUILD < 153
791 #define LIBX264_CONST
792 #else
793 #define LIBX264_CONST const
794 #endif
795 extern LIBX264_CONST FFCodec ff_libx264_encoder;
796 #endif
797 extern const FFCodec ff_libx264rgb_encoder;
798 extern FFCodec ff_libx265_encoder;
799 extern const FFCodec ff_libxavs_encoder;
800 extern const FFCodec ff_libxavs2_encoder;
801 extern const FFCodec ff_libxvid_encoder;
802 extern const FFCodec ff_libzvbi_teletext_decoder;
803
804 /* text */
805 extern const FFCodec ff_bintext_decoder;
806 extern const FFCodec ff_xbin_decoder;
807 extern const FFCodec ff_idf_decoder;
808
809 /* external libraries, that shouldn't be used by default if one of the
810 * above is available */
811 extern const FFCodec ff_aac_mf_encoder;
812 extern const FFCodec ff_ac3_mf_encoder;
813 extern const FFCodec ff_h263_v4l2m2m_encoder;
814 extern const FFCodec ff_libaom_av1_decoder;
815 /* hwaccel hooks only, so prefer external decoders */
816 extern const FFCodec ff_av1_decoder;
817 extern const FFCodec ff_av1_cuvid_decoder;
818 extern const FFCodec ff_av1_qsv_decoder;
819 extern const FFCodec ff_libopenh264_encoder;
820 extern const FFCodec ff_libopenh264_decoder;
821 extern const FFCodec ff_h264_amf_encoder;
822 extern const FFCodec ff_h264_cuvid_decoder;
823 extern const FFCodec ff_h264_mf_encoder;
824 extern const FFCodec ff_h264_nvenc_encoder;
825 extern const FFCodec ff_h264_omx_encoder;
826 extern const FFCodec ff_h264_qsv_encoder;
827 extern const FFCodec ff_h264_v4l2m2m_encoder;
828 extern const FFCodec ff_h264_vaapi_encoder;
829 extern const FFCodec ff_h264_videotoolbox_encoder;
830 extern const FFCodec ff_hevc_amf_encoder;
831 extern const FFCodec ff_hevc_cuvid_decoder;
832 extern const FFCodec ff_hevc_mediacodec_decoder;
833 extern const FFCodec ff_hevc_mf_encoder;
834 extern const FFCodec ff_hevc_nvenc_encoder;
835 extern const FFCodec ff_hevc_qsv_encoder;
836 extern const FFCodec ff_hevc_v4l2m2m_encoder;
837 extern const FFCodec ff_hevc_vaapi_encoder;
838 extern const FFCodec ff_hevc_videotoolbox_encoder;
839 extern const FFCodec ff_libkvazaar_encoder;
840 extern const FFCodec ff_mjpeg_cuvid_decoder;
841 extern const FFCodec ff_mjpeg_qsv_encoder;
842 extern const FFCodec ff_mjpeg_qsv_decoder;
843 extern const FFCodec ff_mjpeg_vaapi_encoder;
844 extern const FFCodec ff_mp3_mf_encoder;
845 extern const FFCodec ff_mpeg1_cuvid_decoder;
846 extern const FFCodec ff_mpeg2_cuvid_decoder;
847 extern const FFCodec ff_mpeg2_qsv_encoder;
848 extern const FFCodec ff_mpeg2_vaapi_encoder;
849 extern const FFCodec ff_mpeg4_cuvid_decoder;
850 extern const FFCodec ff_mpeg4_mediacodec_decoder;
851 extern const FFCodec ff_mpeg4_omx_encoder;
852 extern const FFCodec ff_mpeg4_v4l2m2m_encoder;
853 extern const FFCodec ff_prores_videotoolbox_encoder;
854 extern const FFCodec ff_vc1_cuvid_decoder;
855 extern const FFCodec ff_vp8_cuvid_decoder;
856 extern const FFCodec ff_vp8_mediacodec_decoder;
857 extern const FFCodec ff_vp8_qsv_decoder;
858 extern const FFCodec ff_vp8_v4l2m2m_encoder;
859 extern const FFCodec ff_vp8_vaapi_encoder;
860 extern const FFCodec ff_vp9_cuvid_decoder;
861 extern const FFCodec ff_vp9_mediacodec_decoder;
862 extern const FFCodec ff_vp9_qsv_decoder;
863 extern const FFCodec ff_vp9_vaapi_encoder;
864 extern const FFCodec ff_vp9_qsv_encoder;
865
866 // The iterate API is not usable with ossfuzz due to the excessive size of binaries created
867 #if CONFIG_OSSFUZZ
868 const FFCodec * codec_list[] = {
869 NULL,
870 NULL,
871 NULL
872 };
873 #else
874 #include "libavcodec/codec_list.c"
875 #endif
876
877 static AVOnce av_codec_static_init = AV_ONCE_INIT;
878 6497 static void av_codec_init_static(void)
879 {
880
2/2
✓ Branch 0 taken 4339996 times.
✓ Branch 1 taken 6497 times.
4346493 for (int i = 0; codec_list[i]; i++) {
881
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4339996 times.
4339996 if (codec_list[i]->init_static_data)
882 codec_list[i]->init_static_data((FFCodec*)codec_list[i]);
883 }
884 6497 }
885
886 71471595 const AVCodec *av_codec_iterate(void **opaque)
887 {
888 71471595 uintptr_t i = (uintptr_t)*opaque;
889 71471595 const FFCodec *c = codec_list[i];
890
891 71471595 ff_thread_once(&av_codec_static_init, av_codec_init_static);
892
893
2/2
✓ Branch 0 taken 71381716 times.
✓ Branch 1 taken 89879 times.
71471595 if (c) {
894 71381716 *opaque = (void*)(i + 1);
895 71381716 return &c->p;
896 }
897 89879 return NULL;
898 }
899
900 30220 static enum AVCodecID remap_deprecated_codec_id(enum AVCodecID id)
901 {
902 switch(id){
903 //This is for future deprecatec codec ids, its empty since
904 //last major bump but will fill up again over time, please don't remove it
905 30220 default : return id;
906 }
907 }
908
909 30220 static const AVCodec *find_codec(enum AVCodecID id, int (*x)(const AVCodec *))
910 {
911 30220 const AVCodec *p, *experimental = NULL;
912 30220 void *i = 0;
913
914 30220 id = remap_deprecated_codec_id(id);
915
916
2/2
✓ Branch 1 taken 13059930 times.
✓ Branch 2 taken 6989 times.
13066919 while ((p = av_codec_iterate(&i))) {
917
2/2
✓ Branch 1 taken 7000300 times.
✓ Branch 2 taken 6059630 times.
13059930 if (!x(p))
918 7000300 continue;
919
2/2
✓ Branch 0 taken 23231 times.
✓ Branch 1 taken 6036399 times.
6059630 if (p->id == id) {
920
1/4
✗ Branch 0 not taken.
✓ Branch 1 taken 23231 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
23231 if (p->capabilities & AV_CODEC_CAP_EXPERIMENTAL && !experimental) {
921 experimental = p;
922 } else
923 23231 return p;
924 }
925 }
926
927 6989 return experimental;
928 }
929
930 9349 const AVCodec *avcodec_find_encoder(enum AVCodecID id)
931 {
932 9349 return find_codec(id, av_codec_is_encoder);
933 }
934
935 20871 const AVCodec *avcodec_find_decoder(enum AVCodecID id)
936 {
937 20871 return find_codec(id, av_codec_is_decoder);
938 }
939
940 11260 static const AVCodec *find_codec_by_name(const char *name, int (*x)(const AVCodec *))
941 {
942 11260 void *i = 0;
943 const AVCodec *p;
944
945
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 11260 times.
11260 if (!name)
946 return NULL;
947
948
2/2
✓ Branch 1 taken 2925785 times.
✓ Branch 2 taken 1 times.
2925786 while ((p = av_codec_iterate(&i))) {
949
2/2
✓ Branch 1 taken 1460340 times.
✓ Branch 2 taken 1465445 times.
2925785 if (!x(p))
950 1460340 continue;
951
2/2
✓ Branch 0 taken 11259 times.
✓ Branch 1 taken 1454186 times.
1465445 if (strcmp(name, p->name) == 0)
952 11259 return p;
953 }
954
955 1 return NULL;
956 }
957
958 3326 const AVCodec *avcodec_find_encoder_by_name(const char *name)
959 {
960 3326 return find_codec_by_name(name, av_codec_is_encoder);
961 }
962
963 7934 const AVCodec *avcodec_find_decoder_by_name(const char *name)
964 {
965 7934 return find_codec_by_name(name, av_codec_is_decoder);
966 }
967