mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
39a33038ce
From the wiki page (https://wiki.vexatos.com/dfpwm): > DFPWM (Dynamic Filter Pulse Width Modulation) is an audio codec > created by Ben “GreaseMonkey” Russell in 2012, originally to be used > as a voice codec for asiekierka's pixmess, a C remake of 64pixels. > It is a 1-bit-per-sample codec which uses a dynamic-strength one-pole > low-pass filter as a predictor. Due to the fact that a raw DPFWM decoding > creates a high-pitched whine, it is often followed by some post-processing > filters to make the stream more listenable. It has recently gained popularity through the ComputerCraft mod for Minecraft, which added support for audio through this codec, as well as the Computronics expansion which preceeded the official support. These both implement the slightly adjusted 1a version of the codec, which is the version I have chosen for this patch. This patch adds a new codec (with encoding and decoding) for DFPWM1a. The codec sources are pretty simple: they use the reference codec with a basic wrapper to connect it to the FFmpeg AVCodec system. To clarify, the codec does not have a specific sample rate - it is provided by the container (or user), which is typically 48000, but has also been known to be 32768. The codec does not specify channel info either, and it's pretty much always used with one mono channel. However, since it appears that libavcodec expects both sample rate and channel count to be handled by either the codec or container, I have made the decision to allow multiple channels interleaved, which as far as I know has never been used, but it works fine here nevertheless. The accompanying raw format has a channels option to set this. (I expect most users of this will not use multiple channels, but it remains an option just in case.) This patch will be highly useful to ComputerCraft developers who are working with audio, as it is the standard format for audio, and there are few user-friendly encoders out there, and even fewer decoders. It will streamline the process for importing and listening to audio, replacing the need to write code or use tools that require very specific input formats. You may use the CraftOS-PC program (https://www.craftos-pc.cc) to test out DFPWM playback. To use it, run the program and type this command: "attach left speaker" Then run "speaker play <file.dfpwm>" for each file. The app runs in a sandbox, so files have to be transferred in first; the easiest way to do this is to simply drag the file on the window. (Or copy files to the folder at https://www.craftos-pc.cc/docs/saves.) Sample DFPWM files can be generated with an online tool at https://music.madefor.cc. This is the current best way to encode DFPWM files. Simply drag an audio file onto the page, and it will encode it, giving a download link on the page. I've made sure to update all of the docs as per Developer§7, and I've tested it as per section 8. Test files encoded to DFPWM play correctly in ComputerCraft, and other files that work in CC are correctly decoded. I have also verified that corrupt files do not crash the decoder - this should theoretically not be an issue as the result size is constant with respect to the input size. Signed-off-by: Jack Bruienne <jackbruienne@gmail.com>
956 lines
36 KiB
C
956 lines
36 KiB
C
/*
|
|
* Provide registration of all codecs, parsers and bitstream filters for libavcodec.
|
|
* Copyright (c) 2002 Fabrice Bellard
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* Provide registration of all codecs, parsers and bitstream filters for libavcodec.
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
#include "config.h"
|
|
#include "libavutil/thread.h"
|
|
#include "codec.h"
|
|
#include "codec_id.h"
|
|
|
|
extern const AVCodec ff_a64multi_encoder;
|
|
extern const AVCodec ff_a64multi5_encoder;
|
|
extern const AVCodec ff_aasc_decoder;
|
|
extern const AVCodec ff_aic_decoder;
|
|
extern const AVCodec ff_alias_pix_encoder;
|
|
extern const AVCodec ff_alias_pix_decoder;
|
|
extern const AVCodec ff_agm_decoder;
|
|
extern const AVCodec ff_amv_encoder;
|
|
extern const AVCodec ff_amv_decoder;
|
|
extern const AVCodec ff_anm_decoder;
|
|
extern const AVCodec ff_ansi_decoder;
|
|
extern const AVCodec ff_apng_encoder;
|
|
extern const AVCodec ff_apng_decoder;
|
|
extern const AVCodec ff_arbc_decoder;
|
|
extern const AVCodec ff_argo_decoder;
|
|
extern const AVCodec ff_asv1_encoder;
|
|
extern const AVCodec ff_asv1_decoder;
|
|
extern const AVCodec ff_asv2_encoder;
|
|
extern const AVCodec ff_asv2_decoder;
|
|
extern const AVCodec ff_aura_decoder;
|
|
extern const AVCodec ff_aura2_decoder;
|
|
extern const AVCodec ff_avrp_encoder;
|
|
extern const AVCodec ff_avrp_decoder;
|
|
extern const AVCodec ff_avrn_decoder;
|
|
extern const AVCodec ff_avs_decoder;
|
|
extern const AVCodec ff_avui_encoder;
|
|
extern const AVCodec ff_avui_decoder;
|
|
extern const AVCodec ff_ayuv_encoder;
|
|
extern const AVCodec ff_ayuv_decoder;
|
|
extern const AVCodec ff_bethsoftvid_decoder;
|
|
extern const AVCodec ff_bfi_decoder;
|
|
extern const AVCodec ff_bink_decoder;
|
|
extern const AVCodec ff_bitpacked_decoder;
|
|
extern const AVCodec ff_bitpacked_encoder;
|
|
extern const AVCodec ff_bmp_encoder;
|
|
extern const AVCodec ff_bmp_decoder;
|
|
extern const AVCodec ff_bmv_video_decoder;
|
|
extern const AVCodec ff_brender_pix_decoder;
|
|
extern const AVCodec ff_c93_decoder;
|
|
extern const AVCodec ff_cavs_decoder;
|
|
extern const AVCodec ff_cdgraphics_decoder;
|
|
extern const AVCodec ff_cdtoons_decoder;
|
|
extern const AVCodec ff_cdxl_decoder;
|
|
extern const AVCodec ff_cfhd_encoder;
|
|
extern const AVCodec ff_cfhd_decoder;
|
|
extern const AVCodec ff_cinepak_encoder;
|
|
extern const AVCodec ff_cinepak_decoder;
|
|
extern const AVCodec ff_clearvideo_decoder;
|
|
extern const AVCodec ff_cljr_encoder;
|
|
extern const AVCodec ff_cljr_decoder;
|
|
extern const AVCodec ff_cllc_decoder;
|
|
extern const AVCodec ff_comfortnoise_encoder;
|
|
extern const AVCodec ff_comfortnoise_decoder;
|
|
extern const AVCodec ff_cpia_decoder;
|
|
extern const AVCodec ff_cri_decoder;
|
|
extern const AVCodec ff_cscd_decoder;
|
|
extern const AVCodec ff_cyuv_decoder;
|
|
extern const AVCodec ff_dds_decoder;
|
|
extern const AVCodec ff_dfa_decoder;
|
|
extern const AVCodec ff_dirac_decoder;
|
|
extern const AVCodec ff_dnxhd_encoder;
|
|
extern const AVCodec ff_dnxhd_decoder;
|
|
extern const AVCodec ff_dpx_encoder;
|
|
extern const AVCodec ff_dpx_decoder;
|
|
extern const AVCodec ff_dsicinvideo_decoder;
|
|
extern const AVCodec ff_dvaudio_decoder;
|
|
extern const AVCodec ff_dvvideo_encoder;
|
|
extern const AVCodec ff_dvvideo_decoder;
|
|
extern const AVCodec ff_dxa_decoder;
|
|
extern const AVCodec ff_dxtory_decoder;
|
|
extern const AVCodec ff_dxv_decoder;
|
|
extern const AVCodec ff_eacmv_decoder;
|
|
extern const AVCodec ff_eamad_decoder;
|
|
extern const AVCodec ff_eatgq_decoder;
|
|
extern const AVCodec ff_eatgv_decoder;
|
|
extern const AVCodec ff_eatqi_decoder;
|
|
extern const AVCodec ff_eightbps_decoder;
|
|
extern const AVCodec ff_eightsvx_exp_decoder;
|
|
extern const AVCodec ff_eightsvx_fib_decoder;
|
|
extern const AVCodec ff_escape124_decoder;
|
|
extern const AVCodec ff_escape130_decoder;
|
|
extern const AVCodec ff_exr_encoder;
|
|
extern const AVCodec ff_exr_decoder;
|
|
extern const AVCodec ff_ffv1_encoder;
|
|
extern const AVCodec ff_ffv1_decoder;
|
|
extern const AVCodec ff_ffvhuff_encoder;
|
|
extern const AVCodec ff_ffvhuff_decoder;
|
|
extern const AVCodec ff_fic_decoder;
|
|
extern const AVCodec ff_fits_encoder;
|
|
extern const AVCodec ff_fits_decoder;
|
|
extern const AVCodec ff_flashsv_encoder;
|
|
extern const AVCodec ff_flashsv_decoder;
|
|
extern const AVCodec ff_flashsv2_encoder;
|
|
extern const AVCodec ff_flashsv2_decoder;
|
|
extern const AVCodec ff_flic_decoder;
|
|
extern const AVCodec ff_flv_encoder;
|
|
extern const AVCodec ff_flv_decoder;
|
|
extern const AVCodec ff_fmvc_decoder;
|
|
extern const AVCodec ff_fourxm_decoder;
|
|
extern const AVCodec ff_fraps_decoder;
|
|
extern const AVCodec ff_frwu_decoder;
|
|
extern const AVCodec ff_g2m_decoder;
|
|
extern const AVCodec ff_gdv_decoder;
|
|
extern const AVCodec ff_gem_decoder;
|
|
extern const AVCodec ff_gif_encoder;
|
|
extern const AVCodec ff_gif_decoder;
|
|
extern const AVCodec ff_h261_encoder;
|
|
extern const AVCodec ff_h261_decoder;
|
|
extern const AVCodec ff_h263_encoder;
|
|
extern const AVCodec ff_h263_decoder;
|
|
extern const AVCodec ff_h263i_decoder;
|
|
extern const AVCodec ff_h263p_encoder;
|
|
extern const AVCodec ff_h263p_decoder;
|
|
extern const AVCodec ff_h263_v4l2m2m_decoder;
|
|
extern const AVCodec ff_h264_decoder;
|
|
extern const AVCodec ff_h264_crystalhd_decoder;
|
|
extern const AVCodec ff_h264_v4l2m2m_decoder;
|
|
extern const AVCodec ff_h264_mediacodec_decoder;
|
|
extern const AVCodec ff_h264_mmal_decoder;
|
|
extern const AVCodec ff_h264_qsv_decoder;
|
|
extern const AVCodec ff_h264_rkmpp_decoder;
|
|
extern const AVCodec ff_hap_encoder;
|
|
extern const AVCodec ff_hap_decoder;
|
|
extern const AVCodec ff_hevc_decoder;
|
|
extern const AVCodec ff_hevc_qsv_decoder;
|
|
extern const AVCodec ff_hevc_rkmpp_decoder;
|
|
extern const AVCodec ff_hevc_v4l2m2m_decoder;
|
|
extern const AVCodec ff_hnm4_video_decoder;
|
|
extern const AVCodec ff_hq_hqa_decoder;
|
|
extern const AVCodec ff_hqx_decoder;
|
|
extern const AVCodec ff_huffyuv_encoder;
|
|
extern const AVCodec ff_huffyuv_decoder;
|
|
extern const AVCodec ff_hymt_decoder;
|
|
extern const AVCodec ff_idcin_decoder;
|
|
extern const AVCodec ff_iff_ilbm_decoder;
|
|
extern const AVCodec ff_imm4_decoder;
|
|
extern const AVCodec ff_imm5_decoder;
|
|
extern const AVCodec ff_indeo2_decoder;
|
|
extern const AVCodec ff_indeo3_decoder;
|
|
extern const AVCodec ff_indeo4_decoder;
|
|
extern const AVCodec ff_indeo5_decoder;
|
|
extern const AVCodec ff_interplay_video_decoder;
|
|
extern const AVCodec ff_ipu_decoder;
|
|
extern const AVCodec ff_jpeg2000_encoder;
|
|
extern const AVCodec ff_jpeg2000_decoder;
|
|
extern const AVCodec ff_jpegls_encoder;
|
|
extern const AVCodec ff_jpegls_decoder;
|
|
extern const AVCodec ff_jv_decoder;
|
|
extern const AVCodec ff_kgv1_decoder;
|
|
extern const AVCodec ff_kmvc_decoder;
|
|
extern const AVCodec ff_lagarith_decoder;
|
|
extern const AVCodec ff_ljpeg_encoder;
|
|
extern const AVCodec ff_loco_decoder;
|
|
extern const AVCodec ff_lscr_decoder;
|
|
extern const AVCodec ff_m101_decoder;
|
|
extern const AVCodec ff_magicyuv_encoder;
|
|
extern const AVCodec ff_magicyuv_decoder;
|
|
extern const AVCodec ff_mdec_decoder;
|
|
extern const AVCodec ff_mimic_decoder;
|
|
extern const AVCodec ff_mjpeg_encoder;
|
|
extern const AVCodec ff_mjpeg_decoder;
|
|
extern const AVCodec ff_mjpegb_decoder;
|
|
extern const AVCodec ff_mmvideo_decoder;
|
|
extern const AVCodec ff_mobiclip_decoder;
|
|
extern const AVCodec ff_motionpixels_decoder;
|
|
extern const AVCodec ff_mpeg1video_encoder;
|
|
extern const AVCodec ff_mpeg1video_decoder;
|
|
extern const AVCodec ff_mpeg2video_encoder;
|
|
extern const AVCodec ff_mpeg2video_decoder;
|
|
extern const AVCodec ff_mpeg4_encoder;
|
|
extern const AVCodec ff_mpeg4_decoder;
|
|
extern const AVCodec ff_mpeg4_crystalhd_decoder;
|
|
extern const AVCodec ff_mpeg4_v4l2m2m_decoder;
|
|
extern const AVCodec ff_mpeg4_mmal_decoder;
|
|
extern const AVCodec ff_mpegvideo_decoder;
|
|
extern const AVCodec ff_mpeg1_v4l2m2m_decoder;
|
|
extern const AVCodec ff_mpeg2_mmal_decoder;
|
|
extern const AVCodec ff_mpeg2_crystalhd_decoder;
|
|
extern const AVCodec ff_mpeg2_v4l2m2m_decoder;
|
|
extern const AVCodec ff_mpeg2_qsv_decoder;
|
|
extern const AVCodec ff_mpeg2_mediacodec_decoder;
|
|
extern const AVCodec ff_msa1_decoder;
|
|
extern const AVCodec ff_mscc_decoder;
|
|
extern const AVCodec ff_msmpeg4v1_decoder;
|
|
extern const AVCodec ff_msmpeg4v2_encoder;
|
|
extern const AVCodec ff_msmpeg4v2_decoder;
|
|
extern const AVCodec ff_msmpeg4v3_encoder;
|
|
extern const AVCodec ff_msmpeg4v3_decoder;
|
|
extern const AVCodec ff_msmpeg4_crystalhd_decoder;
|
|
extern const AVCodec ff_msp2_decoder;
|
|
extern const AVCodec ff_msrle_decoder;
|
|
extern const AVCodec ff_mss1_decoder;
|
|
extern const AVCodec ff_mss2_decoder;
|
|
extern const AVCodec ff_msvideo1_encoder;
|
|
extern const AVCodec ff_msvideo1_decoder;
|
|
extern const AVCodec ff_mszh_decoder;
|
|
extern const AVCodec ff_mts2_decoder;
|
|
extern const AVCodec ff_mv30_decoder;
|
|
extern const AVCodec ff_mvc1_decoder;
|
|
extern const AVCodec ff_mvc2_decoder;
|
|
extern const AVCodec ff_mvdv_decoder;
|
|
extern const AVCodec ff_mvha_decoder;
|
|
extern const AVCodec ff_mwsc_decoder;
|
|
extern const AVCodec ff_mxpeg_decoder;
|
|
extern const AVCodec ff_notchlc_decoder;
|
|
extern const AVCodec ff_nuv_decoder;
|
|
extern const AVCodec ff_paf_video_decoder;
|
|
extern const AVCodec ff_pam_encoder;
|
|
extern const AVCodec ff_pam_decoder;
|
|
extern const AVCodec ff_pbm_encoder;
|
|
extern const AVCodec ff_pbm_decoder;
|
|
extern const AVCodec ff_pcx_encoder;
|
|
extern const AVCodec ff_pcx_decoder;
|
|
extern const AVCodec ff_pfm_encoder;
|
|
extern const AVCodec ff_pfm_decoder;
|
|
extern const AVCodec ff_pgm_encoder;
|
|
extern const AVCodec ff_pgm_decoder;
|
|
extern const AVCodec ff_pgmyuv_encoder;
|
|
extern const AVCodec ff_pgmyuv_decoder;
|
|
extern const AVCodec ff_pgx_decoder;
|
|
extern const AVCodec ff_photocd_decoder;
|
|
extern const AVCodec ff_pictor_decoder;
|
|
extern const AVCodec ff_pixlet_decoder;
|
|
extern const AVCodec ff_png_encoder;
|
|
extern const AVCodec ff_png_decoder;
|
|
extern const AVCodec ff_ppm_encoder;
|
|
extern const AVCodec ff_ppm_decoder;
|
|
extern const AVCodec ff_prores_encoder;
|
|
extern const AVCodec ff_prores_decoder;
|
|
extern const AVCodec ff_prores_aw_encoder;
|
|
extern const AVCodec ff_prores_ks_encoder;
|
|
extern const AVCodec ff_prosumer_decoder;
|
|
extern const AVCodec ff_psd_decoder;
|
|
extern const AVCodec ff_ptx_decoder;
|
|
extern const AVCodec ff_qdraw_decoder;
|
|
extern const AVCodec ff_qpeg_decoder;
|
|
extern const AVCodec ff_qtrle_encoder;
|
|
extern const AVCodec ff_qtrle_decoder;
|
|
extern const AVCodec ff_r10k_encoder;
|
|
extern const AVCodec ff_r10k_decoder;
|
|
extern const AVCodec ff_r210_encoder;
|
|
extern const AVCodec ff_r210_decoder;
|
|
extern const AVCodec ff_rasc_decoder;
|
|
extern const AVCodec ff_rawvideo_encoder;
|
|
extern const AVCodec ff_rawvideo_decoder;
|
|
extern const AVCodec ff_rl2_decoder;
|
|
extern const AVCodec ff_roq_encoder;
|
|
extern const AVCodec ff_roq_decoder;
|
|
extern const AVCodec ff_rpza_encoder;
|
|
extern const AVCodec ff_rpza_decoder;
|
|
extern const AVCodec ff_rscc_decoder;
|
|
extern const AVCodec ff_rv10_encoder;
|
|
extern const AVCodec ff_rv10_decoder;
|
|
extern const AVCodec ff_rv20_encoder;
|
|
extern const AVCodec ff_rv20_decoder;
|
|
extern const AVCodec ff_rv30_decoder;
|
|
extern const AVCodec ff_rv40_decoder;
|
|
extern const AVCodec ff_s302m_encoder;
|
|
extern const AVCodec ff_s302m_decoder;
|
|
extern const AVCodec ff_sanm_decoder;
|
|
extern const AVCodec ff_scpr_decoder;
|
|
extern const AVCodec ff_screenpresso_decoder;
|
|
extern const AVCodec ff_sga_decoder;
|
|
extern const AVCodec ff_sgi_encoder;
|
|
extern const AVCodec ff_sgi_decoder;
|
|
extern const AVCodec ff_sgirle_decoder;
|
|
extern const AVCodec ff_sheervideo_decoder;
|
|
extern const AVCodec ff_simbiosis_imx_decoder;
|
|
extern const AVCodec ff_smacker_decoder;
|
|
extern const AVCodec ff_smc_encoder;
|
|
extern const AVCodec ff_smc_decoder;
|
|
extern const AVCodec ff_smvjpeg_decoder;
|
|
extern const AVCodec ff_snow_encoder;
|
|
extern const AVCodec ff_snow_decoder;
|
|
extern const AVCodec ff_sp5x_decoder;
|
|
extern const AVCodec ff_speedhq_decoder;
|
|
extern const AVCodec ff_speedhq_encoder;
|
|
extern const AVCodec ff_speex_decoder;
|
|
extern const AVCodec ff_srgc_decoder;
|
|
extern const AVCodec ff_sunrast_encoder;
|
|
extern const AVCodec ff_sunrast_decoder;
|
|
extern const AVCodec ff_svq1_encoder;
|
|
extern const AVCodec ff_svq1_decoder;
|
|
extern const AVCodec ff_svq3_decoder;
|
|
extern const AVCodec ff_targa_encoder;
|
|
extern const AVCodec ff_targa_decoder;
|
|
extern const AVCodec ff_targa_y216_decoder;
|
|
extern const AVCodec ff_tdsc_decoder;
|
|
extern const AVCodec ff_theora_decoder;
|
|
extern const AVCodec ff_thp_decoder;
|
|
extern const AVCodec ff_tiertexseqvideo_decoder;
|
|
extern const AVCodec ff_tiff_encoder;
|
|
extern const AVCodec ff_tiff_decoder;
|
|
extern const AVCodec ff_tmv_decoder;
|
|
extern const AVCodec ff_truemotion1_decoder;
|
|
extern const AVCodec ff_truemotion2_decoder;
|
|
extern const AVCodec ff_truemotion2rt_decoder;
|
|
extern const AVCodec ff_tscc_decoder;
|
|
extern const AVCodec ff_tscc2_decoder;
|
|
extern const AVCodec ff_txd_decoder;
|
|
extern const AVCodec ff_ulti_decoder;
|
|
extern const AVCodec ff_utvideo_encoder;
|
|
extern const AVCodec ff_utvideo_decoder;
|
|
extern const AVCodec ff_v210_encoder;
|
|
extern const AVCodec ff_v210_decoder;
|
|
extern const AVCodec ff_v210x_decoder;
|
|
extern const AVCodec ff_v308_encoder;
|
|
extern const AVCodec ff_v308_decoder;
|
|
extern const AVCodec ff_v408_encoder;
|
|
extern const AVCodec ff_v408_decoder;
|
|
extern const AVCodec ff_v410_encoder;
|
|
extern const AVCodec ff_v410_decoder;
|
|
extern const AVCodec ff_vb_decoder;
|
|
extern const AVCodec ff_vble_decoder;
|
|
extern const AVCodec ff_vc1_decoder;
|
|
extern const AVCodec ff_vc1_crystalhd_decoder;
|
|
extern const AVCodec ff_vc1image_decoder;
|
|
extern const AVCodec ff_vc1_mmal_decoder;
|
|
extern const AVCodec ff_vc1_qsv_decoder;
|
|
extern const AVCodec ff_vc1_v4l2m2m_decoder;
|
|
extern const AVCodec ff_vc2_encoder;
|
|
extern const AVCodec ff_vcr1_decoder;
|
|
extern const AVCodec ff_vmdvideo_decoder;
|
|
extern const AVCodec ff_vmnc_decoder;
|
|
extern const AVCodec ff_vp3_decoder;
|
|
extern const AVCodec ff_vp4_decoder;
|
|
extern const AVCodec ff_vp5_decoder;
|
|
extern const AVCodec ff_vp6_decoder;
|
|
extern const AVCodec ff_vp6a_decoder;
|
|
extern const AVCodec ff_vp6f_decoder;
|
|
extern const AVCodec ff_vp7_decoder;
|
|
extern const AVCodec ff_vp8_decoder;
|
|
extern const AVCodec ff_vp8_rkmpp_decoder;
|
|
extern const AVCodec ff_vp8_v4l2m2m_decoder;
|
|
extern const AVCodec ff_vp9_decoder;
|
|
extern const AVCodec ff_vp9_rkmpp_decoder;
|
|
extern const AVCodec ff_vp9_v4l2m2m_decoder;
|
|
extern const AVCodec ff_vqa_decoder;
|
|
extern const AVCodec ff_webp_decoder;
|
|
extern const AVCodec ff_wcmv_decoder;
|
|
extern const AVCodec ff_wrapped_avframe_encoder;
|
|
extern const AVCodec ff_wrapped_avframe_decoder;
|
|
extern const AVCodec ff_wmv1_encoder;
|
|
extern const AVCodec ff_wmv1_decoder;
|
|
extern const AVCodec ff_wmv2_encoder;
|
|
extern const AVCodec ff_wmv2_decoder;
|
|
extern const AVCodec ff_wmv3_decoder;
|
|
extern const AVCodec ff_wmv3_crystalhd_decoder;
|
|
extern const AVCodec ff_wmv3image_decoder;
|
|
extern const AVCodec ff_wnv1_decoder;
|
|
extern const AVCodec ff_xan_wc3_decoder;
|
|
extern const AVCodec ff_xan_wc4_decoder;
|
|
extern const AVCodec ff_xbm_encoder;
|
|
extern const AVCodec ff_xbm_decoder;
|
|
extern const AVCodec ff_xface_encoder;
|
|
extern const AVCodec ff_xface_decoder;
|
|
extern const AVCodec ff_xl_decoder;
|
|
extern const AVCodec ff_xpm_decoder;
|
|
extern const AVCodec ff_xwd_encoder;
|
|
extern const AVCodec ff_xwd_decoder;
|
|
extern const AVCodec ff_y41p_encoder;
|
|
extern const AVCodec ff_y41p_decoder;
|
|
extern const AVCodec ff_ylc_decoder;
|
|
extern const AVCodec ff_yop_decoder;
|
|
extern const AVCodec ff_yuv4_encoder;
|
|
extern const AVCodec ff_yuv4_decoder;
|
|
extern const AVCodec ff_zero12v_decoder;
|
|
extern const AVCodec ff_zerocodec_decoder;
|
|
extern const AVCodec ff_zlib_encoder;
|
|
extern const AVCodec ff_zlib_decoder;
|
|
extern const AVCodec ff_zmbv_encoder;
|
|
extern const AVCodec ff_zmbv_decoder;
|
|
|
|
/* audio codecs */
|
|
extern const AVCodec ff_aac_encoder;
|
|
extern const AVCodec ff_aac_decoder;
|
|
extern const AVCodec ff_aac_fixed_decoder;
|
|
extern const AVCodec ff_aac_latm_decoder;
|
|
extern const AVCodec ff_ac3_encoder;
|
|
extern const AVCodec ff_ac3_decoder;
|
|
extern const AVCodec ff_ac3_fixed_encoder;
|
|
extern const AVCodec ff_ac3_fixed_decoder;
|
|
extern const AVCodec ff_acelp_kelvin_decoder;
|
|
extern const AVCodec ff_alac_encoder;
|
|
extern const AVCodec ff_alac_decoder;
|
|
extern const AVCodec ff_als_decoder;
|
|
extern const AVCodec ff_amrnb_decoder;
|
|
extern const AVCodec ff_amrwb_decoder;
|
|
extern const AVCodec ff_ape_decoder;
|
|
extern const AVCodec ff_aptx_encoder;
|
|
extern const AVCodec ff_aptx_decoder;
|
|
extern const AVCodec ff_aptx_hd_encoder;
|
|
extern const AVCodec ff_aptx_hd_decoder;
|
|
extern const AVCodec ff_atrac1_decoder;
|
|
extern const AVCodec ff_atrac3_decoder;
|
|
extern const AVCodec ff_atrac3al_decoder;
|
|
extern const AVCodec ff_atrac3p_decoder;
|
|
extern const AVCodec ff_atrac3pal_decoder;
|
|
extern const AVCodec ff_atrac9_decoder;
|
|
extern const AVCodec ff_binkaudio_dct_decoder;
|
|
extern const AVCodec ff_binkaudio_rdft_decoder;
|
|
extern const AVCodec ff_bmv_audio_decoder;
|
|
extern const AVCodec ff_cook_decoder;
|
|
extern const AVCodec ff_dca_encoder;
|
|
extern const AVCodec ff_dca_decoder;
|
|
extern const AVCodec ff_dfpwm_encoder;
|
|
extern const AVCodec ff_dfpwm_decoder;
|
|
extern const AVCodec ff_dolby_e_decoder;
|
|
extern const AVCodec ff_dsd_lsbf_decoder;
|
|
extern const AVCodec ff_dsd_msbf_decoder;
|
|
extern const AVCodec ff_dsd_lsbf_planar_decoder;
|
|
extern const AVCodec ff_dsd_msbf_planar_decoder;
|
|
extern const AVCodec ff_dsicinaudio_decoder;
|
|
extern const AVCodec ff_dss_sp_decoder;
|
|
extern const AVCodec ff_dst_decoder;
|
|
extern const AVCodec ff_eac3_encoder;
|
|
extern const AVCodec ff_eac3_decoder;
|
|
extern const AVCodec ff_evrc_decoder;
|
|
extern const AVCodec ff_fastaudio_decoder;
|
|
extern const AVCodec ff_ffwavesynth_decoder;
|
|
extern const AVCodec ff_flac_encoder;
|
|
extern const AVCodec ff_flac_decoder;
|
|
extern const AVCodec ff_g723_1_encoder;
|
|
extern const AVCodec ff_g723_1_decoder;
|
|
extern const AVCodec ff_g729_decoder;
|
|
extern const AVCodec ff_gsm_decoder;
|
|
extern const AVCodec ff_gsm_ms_decoder;
|
|
extern const AVCodec ff_hca_decoder;
|
|
extern const AVCodec ff_hcom_decoder;
|
|
extern const AVCodec ff_iac_decoder;
|
|
extern const AVCodec ff_ilbc_decoder;
|
|
extern const AVCodec ff_imc_decoder;
|
|
extern const AVCodec ff_interplay_acm_decoder;
|
|
extern const AVCodec ff_mace3_decoder;
|
|
extern const AVCodec ff_mace6_decoder;
|
|
extern const AVCodec ff_metasound_decoder;
|
|
extern const AVCodec ff_mlp_encoder;
|
|
extern const AVCodec ff_mlp_decoder;
|
|
extern const AVCodec ff_mp1_decoder;
|
|
extern const AVCodec ff_mp1float_decoder;
|
|
extern const AVCodec ff_mp2_encoder;
|
|
extern const AVCodec ff_mp2_decoder;
|
|
extern const AVCodec ff_mp2float_decoder;
|
|
extern const AVCodec ff_mp2fixed_encoder;
|
|
extern const AVCodec ff_mp3float_decoder;
|
|
extern const AVCodec ff_mp3_decoder;
|
|
extern const AVCodec ff_mp3adufloat_decoder;
|
|
extern const AVCodec ff_mp3adu_decoder;
|
|
extern const AVCodec ff_mp3on4float_decoder;
|
|
extern const AVCodec ff_mp3on4_decoder;
|
|
extern const AVCodec ff_mpc7_decoder;
|
|
extern const AVCodec ff_mpc8_decoder;
|
|
extern const AVCodec ff_msnsiren_decoder;
|
|
extern const AVCodec ff_nellymoser_encoder;
|
|
extern const AVCodec ff_nellymoser_decoder;
|
|
extern const AVCodec ff_on2avc_decoder;
|
|
extern const AVCodec ff_opus_encoder;
|
|
extern const AVCodec ff_opus_decoder;
|
|
extern const AVCodec ff_paf_audio_decoder;
|
|
extern const AVCodec ff_qcelp_decoder;
|
|
extern const AVCodec ff_qdm2_decoder;
|
|
extern const AVCodec ff_qdmc_decoder;
|
|
extern const AVCodec ff_ra_144_encoder;
|
|
extern const AVCodec ff_ra_144_decoder;
|
|
extern const AVCodec ff_ra_288_decoder;
|
|
extern const AVCodec ff_ralf_decoder;
|
|
extern const AVCodec ff_sbc_encoder;
|
|
extern const AVCodec ff_sbc_decoder;
|
|
extern const AVCodec ff_shorten_decoder;
|
|
extern const AVCodec ff_sipr_decoder;
|
|
extern const AVCodec ff_siren_decoder;
|
|
extern const AVCodec ff_smackaud_decoder;
|
|
extern const AVCodec ff_sonic_encoder;
|
|
extern const AVCodec ff_sonic_decoder;
|
|
extern const AVCodec ff_sonic_ls_encoder;
|
|
extern const AVCodec ff_tak_decoder;
|
|
extern const AVCodec ff_truehd_encoder;
|
|
extern const AVCodec ff_truehd_decoder;
|
|
extern const AVCodec ff_truespeech_decoder;
|
|
extern const AVCodec ff_tta_encoder;
|
|
extern const AVCodec ff_tta_decoder;
|
|
extern const AVCodec ff_twinvq_decoder;
|
|
extern const AVCodec ff_vmdaudio_decoder;
|
|
extern const AVCodec ff_vorbis_encoder;
|
|
extern const AVCodec ff_vorbis_decoder;
|
|
extern const AVCodec ff_wavpack_encoder;
|
|
extern const AVCodec ff_wavpack_decoder;
|
|
extern const AVCodec ff_wmalossless_decoder;
|
|
extern const AVCodec ff_wmapro_decoder;
|
|
extern const AVCodec ff_wmav1_encoder;
|
|
extern const AVCodec ff_wmav1_decoder;
|
|
extern const AVCodec ff_wmav2_encoder;
|
|
extern const AVCodec ff_wmav2_decoder;
|
|
extern const AVCodec ff_wmavoice_decoder;
|
|
extern const AVCodec ff_ws_snd1_decoder;
|
|
extern const AVCodec ff_xma1_decoder;
|
|
extern const AVCodec ff_xma2_decoder;
|
|
|
|
/* PCM codecs */
|
|
extern const AVCodec ff_pcm_alaw_encoder;
|
|
extern const AVCodec ff_pcm_alaw_decoder;
|
|
extern const AVCodec ff_pcm_bluray_encoder;
|
|
extern const AVCodec ff_pcm_bluray_decoder;
|
|
extern const AVCodec ff_pcm_dvd_encoder;
|
|
extern const AVCodec ff_pcm_dvd_decoder;
|
|
extern const AVCodec ff_pcm_f16le_decoder;
|
|
extern const AVCodec ff_pcm_f24le_decoder;
|
|
extern const AVCodec ff_pcm_f32be_encoder;
|
|
extern const AVCodec ff_pcm_f32be_decoder;
|
|
extern const AVCodec ff_pcm_f32le_encoder;
|
|
extern const AVCodec ff_pcm_f32le_decoder;
|
|
extern const AVCodec ff_pcm_f64be_encoder;
|
|
extern const AVCodec ff_pcm_f64be_decoder;
|
|
extern const AVCodec ff_pcm_f64le_encoder;
|
|
extern const AVCodec ff_pcm_f64le_decoder;
|
|
extern const AVCodec ff_pcm_lxf_decoder;
|
|
extern const AVCodec ff_pcm_mulaw_encoder;
|
|
extern const AVCodec ff_pcm_mulaw_decoder;
|
|
extern const AVCodec ff_pcm_s8_encoder;
|
|
extern const AVCodec ff_pcm_s8_decoder;
|
|
extern const AVCodec ff_pcm_s8_planar_encoder;
|
|
extern const AVCodec ff_pcm_s8_planar_decoder;
|
|
extern const AVCodec ff_pcm_s16be_encoder;
|
|
extern const AVCodec ff_pcm_s16be_decoder;
|
|
extern const AVCodec ff_pcm_s16be_planar_encoder;
|
|
extern const AVCodec ff_pcm_s16be_planar_decoder;
|
|
extern const AVCodec ff_pcm_s16le_encoder;
|
|
extern const AVCodec ff_pcm_s16le_decoder;
|
|
extern const AVCodec ff_pcm_s16le_planar_encoder;
|
|
extern const AVCodec ff_pcm_s16le_planar_decoder;
|
|
extern const AVCodec ff_pcm_s24be_encoder;
|
|
extern const AVCodec ff_pcm_s24be_decoder;
|
|
extern const AVCodec ff_pcm_s24daud_encoder;
|
|
extern const AVCodec ff_pcm_s24daud_decoder;
|
|
extern const AVCodec ff_pcm_s24le_encoder;
|
|
extern const AVCodec ff_pcm_s24le_decoder;
|
|
extern const AVCodec ff_pcm_s24le_planar_encoder;
|
|
extern const AVCodec ff_pcm_s24le_planar_decoder;
|
|
extern const AVCodec ff_pcm_s32be_encoder;
|
|
extern const AVCodec ff_pcm_s32be_decoder;
|
|
extern const AVCodec ff_pcm_s32le_encoder;
|
|
extern const AVCodec ff_pcm_s32le_decoder;
|
|
extern const AVCodec ff_pcm_s32le_planar_encoder;
|
|
extern const AVCodec ff_pcm_s32le_planar_decoder;
|
|
extern const AVCodec ff_pcm_s64be_encoder;
|
|
extern const AVCodec ff_pcm_s64be_decoder;
|
|
extern const AVCodec ff_pcm_s64le_encoder;
|
|
extern const AVCodec ff_pcm_s64le_decoder;
|
|
extern const AVCodec ff_pcm_sga_decoder;
|
|
extern const AVCodec ff_pcm_u8_encoder;
|
|
extern const AVCodec ff_pcm_u8_decoder;
|
|
extern const AVCodec ff_pcm_u16be_encoder;
|
|
extern const AVCodec ff_pcm_u16be_decoder;
|
|
extern const AVCodec ff_pcm_u16le_encoder;
|
|
extern const AVCodec ff_pcm_u16le_decoder;
|
|
extern const AVCodec ff_pcm_u24be_encoder;
|
|
extern const AVCodec ff_pcm_u24be_decoder;
|
|
extern const AVCodec ff_pcm_u24le_encoder;
|
|
extern const AVCodec ff_pcm_u24le_decoder;
|
|
extern const AVCodec ff_pcm_u32be_encoder;
|
|
extern const AVCodec ff_pcm_u32be_decoder;
|
|
extern const AVCodec ff_pcm_u32le_encoder;
|
|
extern const AVCodec ff_pcm_u32le_decoder;
|
|
extern const AVCodec ff_pcm_vidc_encoder;
|
|
extern const AVCodec ff_pcm_vidc_decoder;
|
|
|
|
/* DPCM codecs */
|
|
extern const AVCodec ff_derf_dpcm_decoder;
|
|
extern const AVCodec ff_gremlin_dpcm_decoder;
|
|
extern const AVCodec ff_interplay_dpcm_decoder;
|
|
extern const AVCodec ff_roq_dpcm_encoder;
|
|
extern const AVCodec ff_roq_dpcm_decoder;
|
|
extern const AVCodec ff_sdx2_dpcm_decoder;
|
|
extern const AVCodec ff_sol_dpcm_decoder;
|
|
extern const AVCodec ff_xan_dpcm_decoder;
|
|
|
|
/* ADPCM codecs */
|
|
extern const AVCodec ff_adpcm_4xm_decoder;
|
|
extern const AVCodec ff_adpcm_adx_encoder;
|
|
extern const AVCodec ff_adpcm_adx_decoder;
|
|
extern const AVCodec ff_adpcm_afc_decoder;
|
|
extern const AVCodec ff_adpcm_agm_decoder;
|
|
extern const AVCodec ff_adpcm_aica_decoder;
|
|
extern const AVCodec ff_adpcm_argo_decoder;
|
|
extern const AVCodec ff_adpcm_argo_encoder;
|
|
extern const AVCodec ff_adpcm_ct_decoder;
|
|
extern const AVCodec ff_adpcm_dtk_decoder;
|
|
extern const AVCodec ff_adpcm_ea_decoder;
|
|
extern const AVCodec ff_adpcm_ea_maxis_xa_decoder;
|
|
extern const AVCodec ff_adpcm_ea_r1_decoder;
|
|
extern const AVCodec ff_adpcm_ea_r2_decoder;
|
|
extern const AVCodec ff_adpcm_ea_r3_decoder;
|
|
extern const AVCodec ff_adpcm_ea_xas_decoder;
|
|
extern const AVCodec ff_adpcm_g722_encoder;
|
|
extern const AVCodec ff_adpcm_g722_decoder;
|
|
extern const AVCodec ff_adpcm_g726_encoder;
|
|
extern const AVCodec ff_adpcm_g726_decoder;
|
|
extern const AVCodec ff_adpcm_g726le_encoder;
|
|
extern const AVCodec ff_adpcm_g726le_decoder;
|
|
extern const AVCodec ff_adpcm_ima_acorn_decoder;
|
|
extern const AVCodec ff_adpcm_ima_amv_decoder;
|
|
extern const AVCodec ff_adpcm_ima_amv_encoder;
|
|
extern const AVCodec ff_adpcm_ima_alp_decoder;
|
|
extern const AVCodec ff_adpcm_ima_alp_encoder;
|
|
extern const AVCodec ff_adpcm_ima_apc_decoder;
|
|
extern const AVCodec ff_adpcm_ima_apm_decoder;
|
|
extern const AVCodec ff_adpcm_ima_apm_encoder;
|
|
extern const AVCodec ff_adpcm_ima_cunning_decoder;
|
|
extern const AVCodec ff_adpcm_ima_dat4_decoder;
|
|
extern const AVCodec ff_adpcm_ima_dk3_decoder;
|
|
extern const AVCodec ff_adpcm_ima_dk4_decoder;
|
|
extern const AVCodec ff_adpcm_ima_ea_eacs_decoder;
|
|
extern const AVCodec ff_adpcm_ima_ea_sead_decoder;
|
|
extern const AVCodec ff_adpcm_ima_iss_decoder;
|
|
extern const AVCodec ff_adpcm_ima_moflex_decoder;
|
|
extern const AVCodec ff_adpcm_ima_mtf_decoder;
|
|
extern const AVCodec ff_adpcm_ima_oki_decoder;
|
|
extern const AVCodec ff_adpcm_ima_qt_encoder;
|
|
extern const AVCodec ff_adpcm_ima_qt_decoder;
|
|
extern const AVCodec ff_adpcm_ima_rad_decoder;
|
|
extern const AVCodec ff_adpcm_ima_ssi_decoder;
|
|
extern const AVCodec ff_adpcm_ima_ssi_encoder;
|
|
extern const AVCodec ff_adpcm_ima_smjpeg_decoder;
|
|
extern const AVCodec ff_adpcm_ima_wav_encoder;
|
|
extern const AVCodec ff_adpcm_ima_wav_decoder;
|
|
extern const AVCodec ff_adpcm_ima_ws_encoder;
|
|
extern const AVCodec ff_adpcm_ima_ws_decoder;
|
|
extern const AVCodec ff_adpcm_ms_encoder;
|
|
extern const AVCodec ff_adpcm_ms_decoder;
|
|
extern const AVCodec ff_adpcm_mtaf_decoder;
|
|
extern const AVCodec ff_adpcm_psx_decoder;
|
|
extern const AVCodec ff_adpcm_sbpro_2_decoder;
|
|
extern const AVCodec ff_adpcm_sbpro_3_decoder;
|
|
extern const AVCodec ff_adpcm_sbpro_4_decoder;
|
|
extern const AVCodec ff_adpcm_swf_encoder;
|
|
extern const AVCodec ff_adpcm_swf_decoder;
|
|
extern const AVCodec ff_adpcm_thp_decoder;
|
|
extern const AVCodec ff_adpcm_thp_le_decoder;
|
|
extern const AVCodec ff_adpcm_vima_decoder;
|
|
extern const AVCodec ff_adpcm_xa_decoder;
|
|
extern const AVCodec ff_adpcm_yamaha_encoder;
|
|
extern const AVCodec ff_adpcm_yamaha_decoder;
|
|
extern const AVCodec ff_adpcm_zork_decoder;
|
|
|
|
/* subtitles */
|
|
extern const AVCodec ff_ssa_encoder;
|
|
extern const AVCodec ff_ssa_decoder;
|
|
extern const AVCodec ff_ass_encoder;
|
|
extern const AVCodec ff_ass_decoder;
|
|
extern const AVCodec ff_ccaption_decoder;
|
|
extern const AVCodec ff_dvbsub_encoder;
|
|
extern const AVCodec ff_dvbsub_decoder;
|
|
extern const AVCodec ff_dvdsub_encoder;
|
|
extern const AVCodec ff_dvdsub_decoder;
|
|
extern const AVCodec ff_jacosub_decoder;
|
|
extern const AVCodec ff_microdvd_decoder;
|
|
extern const AVCodec ff_movtext_encoder;
|
|
extern const AVCodec ff_movtext_decoder;
|
|
extern const AVCodec ff_mpl2_decoder;
|
|
extern const AVCodec ff_pgssub_decoder;
|
|
extern const AVCodec ff_pjs_decoder;
|
|
extern const AVCodec ff_realtext_decoder;
|
|
extern const AVCodec ff_sami_decoder;
|
|
extern const AVCodec ff_srt_encoder;
|
|
extern const AVCodec ff_srt_decoder;
|
|
extern const AVCodec ff_stl_decoder;
|
|
extern const AVCodec ff_subrip_encoder;
|
|
extern const AVCodec ff_subrip_decoder;
|
|
extern const AVCodec ff_subviewer_decoder;
|
|
extern const AVCodec ff_subviewer1_decoder;
|
|
extern const AVCodec ff_text_encoder;
|
|
extern const AVCodec ff_text_decoder;
|
|
extern const AVCodec ff_ttml_encoder;
|
|
extern const AVCodec ff_vplayer_decoder;
|
|
extern const AVCodec ff_webvtt_encoder;
|
|
extern const AVCodec ff_webvtt_decoder;
|
|
extern const AVCodec ff_xsub_encoder;
|
|
extern const AVCodec ff_xsub_decoder;
|
|
|
|
/* external libraries */
|
|
extern const AVCodec ff_aac_at_encoder;
|
|
extern const AVCodec ff_aac_at_decoder;
|
|
extern const AVCodec ff_ac3_at_decoder;
|
|
extern const AVCodec ff_adpcm_ima_qt_at_decoder;
|
|
extern const AVCodec ff_alac_at_encoder;
|
|
extern const AVCodec ff_alac_at_decoder;
|
|
extern const AVCodec ff_amr_nb_at_decoder;
|
|
extern const AVCodec ff_eac3_at_decoder;
|
|
extern const AVCodec ff_gsm_ms_at_decoder;
|
|
extern const AVCodec ff_ilbc_at_encoder;
|
|
extern const AVCodec ff_ilbc_at_decoder;
|
|
extern const AVCodec ff_mp1_at_decoder;
|
|
extern const AVCodec ff_mp2_at_decoder;
|
|
extern const AVCodec ff_mp3_at_decoder;
|
|
extern const AVCodec ff_pcm_alaw_at_encoder;
|
|
extern const AVCodec ff_pcm_alaw_at_decoder;
|
|
extern const AVCodec ff_pcm_mulaw_at_encoder;
|
|
extern const AVCodec ff_pcm_mulaw_at_decoder;
|
|
extern const AVCodec ff_qdmc_at_decoder;
|
|
extern const AVCodec ff_qdm2_at_decoder;
|
|
extern AVCodec ff_libaom_av1_encoder;
|
|
extern const AVCodec ff_libaribb24_decoder;
|
|
extern const AVCodec ff_libcelt_decoder;
|
|
extern const AVCodec ff_libcodec2_encoder;
|
|
extern const AVCodec ff_libcodec2_decoder;
|
|
extern const AVCodec ff_libdav1d_decoder;
|
|
extern const AVCodec ff_libdavs2_decoder;
|
|
extern const AVCodec ff_libfdk_aac_encoder;
|
|
extern const AVCodec ff_libfdk_aac_decoder;
|
|
extern const AVCodec ff_libgsm_encoder;
|
|
extern const AVCodec ff_libgsm_decoder;
|
|
extern const AVCodec ff_libgsm_ms_encoder;
|
|
extern const AVCodec ff_libgsm_ms_decoder;
|
|
extern const AVCodec ff_libilbc_encoder;
|
|
extern const AVCodec ff_libilbc_decoder;
|
|
extern const AVCodec ff_libmp3lame_encoder;
|
|
extern const AVCodec ff_libopencore_amrnb_encoder;
|
|
extern const AVCodec ff_libopencore_amrnb_decoder;
|
|
extern const AVCodec ff_libopencore_amrwb_decoder;
|
|
extern const AVCodec ff_libopenjpeg_encoder;
|
|
extern const AVCodec ff_libopenjpeg_decoder;
|
|
extern const AVCodec ff_libopus_encoder;
|
|
extern const AVCodec ff_libopus_decoder;
|
|
extern const AVCodec ff_librav1e_encoder;
|
|
extern const AVCodec ff_librsvg_decoder;
|
|
extern const AVCodec ff_libshine_encoder;
|
|
extern const AVCodec ff_libspeex_encoder;
|
|
extern const AVCodec ff_libspeex_decoder;
|
|
extern const AVCodec ff_libsvtav1_encoder;
|
|
extern const AVCodec ff_libtheora_encoder;
|
|
extern const AVCodec ff_libtwolame_encoder;
|
|
extern const AVCodec ff_libuavs3d_decoder;
|
|
extern const AVCodec ff_libvo_amrwbenc_encoder;
|
|
extern const AVCodec ff_libvorbis_encoder;
|
|
extern const AVCodec ff_libvorbis_decoder;
|
|
extern const AVCodec ff_libvpx_vp8_encoder;
|
|
extern const AVCodec ff_libvpx_vp8_decoder;
|
|
extern AVCodec ff_libvpx_vp9_encoder;
|
|
extern AVCodec ff_libvpx_vp9_decoder;
|
|
/* preferred over libwebp */
|
|
extern const AVCodec ff_libwebp_anim_encoder;
|
|
extern const AVCodec ff_libwebp_encoder;
|
|
extern const AVCodec ff_libx262_encoder;
|
|
#if CONFIG_LIBX264_ENCODER
|
|
#include <x264.h>
|
|
#if X264_BUILD < 153
|
|
#define LIBX264_CONST
|
|
#else
|
|
#define LIBX264_CONST const
|
|
#endif
|
|
extern LIBX264_CONST AVCodec ff_libx264_encoder;
|
|
#endif
|
|
extern const AVCodec ff_libx264rgb_encoder;
|
|
extern AVCodec ff_libx265_encoder;
|
|
extern const AVCodec ff_libxavs_encoder;
|
|
extern const AVCodec ff_libxavs2_encoder;
|
|
extern const AVCodec ff_libxvid_encoder;
|
|
extern const AVCodec ff_libzvbi_teletext_decoder;
|
|
|
|
/* text */
|
|
extern const AVCodec ff_bintext_decoder;
|
|
extern const AVCodec ff_xbin_decoder;
|
|
extern const AVCodec ff_idf_decoder;
|
|
|
|
/* external libraries, that shouldn't be used by default if one of the
|
|
* above is available */
|
|
extern const AVCodec ff_aac_mf_encoder;
|
|
extern const AVCodec ff_ac3_mf_encoder;
|
|
extern const AVCodec ff_h263_v4l2m2m_encoder;
|
|
extern const AVCodec ff_libaom_av1_decoder;
|
|
/* hwaccel hooks only, so prefer external decoders */
|
|
extern const AVCodec ff_av1_decoder;
|
|
extern const AVCodec ff_av1_cuvid_decoder;
|
|
extern const AVCodec ff_av1_qsv_decoder;
|
|
extern const AVCodec ff_libopenh264_encoder;
|
|
extern const AVCodec ff_libopenh264_decoder;
|
|
extern const AVCodec ff_h264_amf_encoder;
|
|
extern const AVCodec ff_h264_cuvid_decoder;
|
|
extern const AVCodec ff_h264_mf_encoder;
|
|
extern const AVCodec ff_h264_nvenc_encoder;
|
|
extern const AVCodec ff_h264_omx_encoder;
|
|
extern const AVCodec ff_h264_qsv_encoder;
|
|
extern const AVCodec ff_h264_v4l2m2m_encoder;
|
|
extern const AVCodec ff_h264_vaapi_encoder;
|
|
extern const AVCodec ff_h264_videotoolbox_encoder;
|
|
extern const AVCodec ff_hevc_amf_encoder;
|
|
extern const AVCodec ff_hevc_cuvid_decoder;
|
|
extern const AVCodec ff_hevc_mediacodec_decoder;
|
|
extern const AVCodec ff_hevc_mf_encoder;
|
|
extern const AVCodec ff_hevc_nvenc_encoder;
|
|
extern const AVCodec ff_hevc_qsv_encoder;
|
|
extern const AVCodec ff_hevc_v4l2m2m_encoder;
|
|
extern const AVCodec ff_hevc_vaapi_encoder;
|
|
extern const AVCodec ff_hevc_videotoolbox_encoder;
|
|
extern const AVCodec ff_libkvazaar_encoder;
|
|
extern const AVCodec ff_mjpeg_cuvid_decoder;
|
|
extern const AVCodec ff_mjpeg_qsv_encoder;
|
|
extern const AVCodec ff_mjpeg_qsv_decoder;
|
|
extern const AVCodec ff_mjpeg_vaapi_encoder;
|
|
extern const AVCodec ff_mp3_mf_encoder;
|
|
extern const AVCodec ff_mpeg1_cuvid_decoder;
|
|
extern const AVCodec ff_mpeg2_cuvid_decoder;
|
|
extern const AVCodec ff_mpeg2_qsv_encoder;
|
|
extern const AVCodec ff_mpeg2_vaapi_encoder;
|
|
extern const AVCodec ff_mpeg4_cuvid_decoder;
|
|
extern const AVCodec ff_mpeg4_mediacodec_decoder;
|
|
extern const AVCodec ff_mpeg4_omx_encoder;
|
|
extern const AVCodec ff_mpeg4_v4l2m2m_encoder;
|
|
extern const AVCodec ff_prores_videotoolbox_encoder;
|
|
extern const AVCodec ff_vc1_cuvid_decoder;
|
|
extern const AVCodec ff_vp8_cuvid_decoder;
|
|
extern const AVCodec ff_vp8_mediacodec_decoder;
|
|
extern const AVCodec ff_vp8_qsv_decoder;
|
|
extern const AVCodec ff_vp8_v4l2m2m_encoder;
|
|
extern const AVCodec ff_vp8_vaapi_encoder;
|
|
extern const AVCodec ff_vp9_cuvid_decoder;
|
|
extern const AVCodec ff_vp9_mediacodec_decoder;
|
|
extern const AVCodec ff_vp9_qsv_decoder;
|
|
extern const AVCodec ff_vp9_vaapi_encoder;
|
|
extern const AVCodec ff_vp9_qsv_encoder;
|
|
|
|
// The iterate API is not usable with ossfuzz due to the excessive size of binaries created
|
|
#if CONFIG_OSSFUZZ
|
|
const AVCodec * codec_list[] = {
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
#else
|
|
#include "libavcodec/codec_list.c"
|
|
#endif
|
|
|
|
static AVOnce av_codec_static_init = AV_ONCE_INIT;
|
|
static void av_codec_init_static(void)
|
|
{
|
|
for (int i = 0; codec_list[i]; i++) {
|
|
if (codec_list[i]->init_static_data)
|
|
codec_list[i]->init_static_data((AVCodec*)codec_list[i]);
|
|
}
|
|
}
|
|
|
|
const AVCodec *av_codec_iterate(void **opaque)
|
|
{
|
|
uintptr_t i = (uintptr_t)*opaque;
|
|
const AVCodec *c = codec_list[i];
|
|
|
|
ff_thread_once(&av_codec_static_init, av_codec_init_static);
|
|
|
|
if (c)
|
|
*opaque = (void*)(i + 1);
|
|
|
|
return c;
|
|
}
|
|
|
|
static enum AVCodecID remap_deprecated_codec_id(enum AVCodecID id)
|
|
{
|
|
switch(id){
|
|
//This is for future deprecatec codec ids, its empty since
|
|
//last major bump but will fill up again over time, please don't remove it
|
|
default : return id;
|
|
}
|
|
}
|
|
|
|
static const AVCodec *find_codec(enum AVCodecID id, int (*x)(const AVCodec *))
|
|
{
|
|
const AVCodec *p, *experimental = NULL;
|
|
void *i = 0;
|
|
|
|
id = remap_deprecated_codec_id(id);
|
|
|
|
while ((p = av_codec_iterate(&i))) {
|
|
if (!x(p))
|
|
continue;
|
|
if (p->id == id) {
|
|
if (p->capabilities & AV_CODEC_CAP_EXPERIMENTAL && !experimental) {
|
|
experimental = p;
|
|
} else
|
|
return p;
|
|
}
|
|
}
|
|
|
|
return experimental;
|
|
}
|
|
|
|
const AVCodec *avcodec_find_encoder(enum AVCodecID id)
|
|
{
|
|
return find_codec(id, av_codec_is_encoder);
|
|
}
|
|
|
|
const AVCodec *avcodec_find_decoder(enum AVCodecID id)
|
|
{
|
|
return find_codec(id, av_codec_is_decoder);
|
|
}
|
|
|
|
static const AVCodec *find_codec_by_name(const char *name, int (*x)(const AVCodec *))
|
|
{
|
|
void *i = 0;
|
|
const AVCodec *p;
|
|
|
|
if (!name)
|
|
return NULL;
|
|
|
|
while ((p = av_codec_iterate(&i))) {
|
|
if (!x(p))
|
|
continue;
|
|
if (strcmp(name, p->name) == 0)
|
|
return p;
|
|
}
|
|
|
|
return NULL;
|
|
}
|
|
|
|
const AVCodec *avcodec_find_encoder_by_name(const char *name)
|
|
{
|
|
return find_codec_by_name(name, av_codec_is_encoder);
|
|
}
|
|
|
|
const AVCodec *avcodec_find_decoder_by_name(const char *name)
|
|
{
|
|
return find_codec_by_name(name, av_codec_is_decoder);
|
|
}
|