2002-06-11 13:41:41 +00:00
|
|
|
/*
|
2010-06-30 15:38:06 +00:00
|
|
|
* Provide registration of all codecs, parsers and bitstream filters for libavcodec.
|
2009-01-19 15:46:40 +00:00
|
|
|
* Copyright (c) 2002 Fabrice Bellard
|
2002-06-11 13:41:41 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2002-06-11 13:41:41 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 15:30:46 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2002-06-11 13:41:41 +00:00
|
|
|
*
|
2006-10-07 15:30:46 +00:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2002-06-11 13:41:41 +00:00
|
|
|
* 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
|
2006-10-07 15:30:46 +00:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2006-01-12 22:43:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2002-06-11 13:41:41 +00:00
|
|
|
*/
|
2003-03-06 11:32:04 +00:00
|
|
|
|
|
|
|
/**
|
2010-04-20 14:45:34 +00:00
|
|
|
* @file
|
2010-06-30 15:38:06 +00:00
|
|
|
* Provide registration of all codecs, parsers and bitstream filters for libavcodec.
|
2003-03-06 11:32:04 +00:00
|
|
|
*/
|
|
|
|
|
2012-08-06 13:49:32 +00:00
|
|
|
#include "config.h"
|
2013-11-05 07:16:31 +00:00
|
|
|
#include "avcodec.h"
|
|
|
|
#include "version.h"
|
2002-06-11 13:41:41 +00:00
|
|
|
|
2012-12-25 14:29:39 +00:00
|
|
|
#define REGISTER_HWACCEL(X, x) \
|
|
|
|
{ \
|
|
|
|
extern AVHWAccel ff_##x##_hwaccel; \
|
|
|
|
if (CONFIG_##X##_HWACCEL) \
|
|
|
|
av_register_hwaccel(&ff_##x##_hwaccel); \
|
|
|
|
}
|
2009-03-10 14:35:55 +00:00
|
|
|
|
2012-12-25 14:29:39 +00:00
|
|
|
#define REGISTER_ENCODER(X, x) \
|
|
|
|
{ \
|
|
|
|
extern AVCodec ff_##x##_encoder; \
|
|
|
|
if (CONFIG_##X##_ENCODER) \
|
|
|
|
avcodec_register(&ff_##x##_encoder); \
|
|
|
|
}
|
2006-11-28 23:55:24 +00:00
|
|
|
|
2012-12-25 14:29:39 +00:00
|
|
|
#define REGISTER_DECODER(X, x) \
|
|
|
|
{ \
|
|
|
|
extern AVCodec ff_##x##_decoder; \
|
|
|
|
if (CONFIG_##X##_DECODER) \
|
|
|
|
avcodec_register(&ff_##x##_decoder); \
|
|
|
|
}
|
|
|
|
|
2013-01-02 05:05:55 +00:00
|
|
|
#define REGISTER_ENCDEC(X, x) REGISTER_ENCODER(X, x); REGISTER_DECODER(X, x)
|
2012-12-25 14:29:39 +00:00
|
|
|
|
|
|
|
#define REGISTER_PARSER(X, x) \
|
|
|
|
{ \
|
|
|
|
extern AVCodecParser ff_##x##_parser; \
|
|
|
|
if (CONFIG_##X##_PARSER) \
|
|
|
|
av_register_codec_parser(&ff_##x##_parser); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define REGISTER_BSF(X, x) \
|
|
|
|
{ \
|
|
|
|
extern AVBitStreamFilter ff_##x##_bsf; \
|
|
|
|
if (CONFIG_##X##_BSF) \
|
|
|
|
av_register_bitstream_filter(&ff_##x##_bsf); \
|
|
|
|
}
|
2006-11-28 23:55:24 +00:00
|
|
|
|
2002-06-11 13:41:41 +00:00
|
|
|
void avcodec_register_all(void)
|
|
|
|
{
|
2008-02-13 09:26:10 +00:00
|
|
|
static int initialized;
|
2005-12-17 18:14:38 +00:00
|
|
|
|
2008-02-13 09:26:10 +00:00
|
|
|
if (initialized)
|
2005-12-22 01:10:11 +00:00
|
|
|
return;
|
2008-02-13 09:26:10 +00:00
|
|
|
initialized = 1;
|
2002-06-11 13:41:41 +00:00
|
|
|
|
2009-03-10 14:35:55 +00:00
|
|
|
/* hardware accelerators */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(H263_VAAPI, h263_vaapi);
|
2015-07-11 11:23:21 +00:00
|
|
|
REGISTER_HWACCEL(H263_VIDEOTOOLBOX, h263_videotoolbox);
|
2015-05-11 08:52:47 +00:00
|
|
|
REGISTER_HWACCEL(H264_D3D11VA, h264_d3d11va);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(H264_DXVA2, h264_dxva2);
|
2015-03-27 22:04:08 +00:00
|
|
|
REGISTER_HWACCEL(H264_MMAL, h264_mmal);
|
2015-02-10 09:40:59 +00:00
|
|
|
REGISTER_HWACCEL(H264_QSV, h264_qsv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(H264_VAAPI, h264_vaapi);
|
|
|
|
REGISTER_HWACCEL(H264_VDA, h264_vda);
|
2014-03-24 00:59:02 +00:00
|
|
|
REGISTER_HWACCEL(H264_VDA_OLD, h264_vda_old);
|
2013-01-12 15:53:46 +00:00
|
|
|
REGISTER_HWACCEL(H264_VDPAU, h264_vdpau);
|
2015-07-11 11:23:21 +00:00
|
|
|
REGISTER_HWACCEL(H264_VIDEOTOOLBOX, h264_videotoolbox);
|
2015-05-11 08:52:47 +00:00
|
|
|
REGISTER_HWACCEL(HEVC_D3D11VA, hevc_d3d11va);
|
2015-01-25 12:01:11 +00:00
|
|
|
REGISTER_HWACCEL(HEVC_DXVA2, hevc_dxva2);
|
2015-06-16 16:22:11 +00:00
|
|
|
REGISTER_HWACCEL(HEVC_QSV, hevc_qsv);
|
2015-08-26 12:55:40 +00:00
|
|
|
REGISTER_HWACCEL(HEVC_VAAPI, hevc_vaapi);
|
2015-06-13 16:42:48 +00:00
|
|
|
REGISTER_HWACCEL(HEVC_VDPAU, hevc_vdpau);
|
2013-12-14 19:29:15 +00:00
|
|
|
REGISTER_HWACCEL(MPEG1_XVMC, mpeg1_xvmc);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_HWACCEL(MPEG1_VDPAU, mpeg1_vdpau);
|
2015-07-11 11:23:21 +00:00
|
|
|
REGISTER_HWACCEL(MPEG1_VIDEOTOOLBOX, mpeg1_videotoolbox);
|
2013-12-14 19:29:15 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_XVMC, mpeg2_xvmc);
|
2015-05-11 08:52:47 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_D3D11VA, mpeg2_d3d11va);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_DXVA2, mpeg2_dxva2);
|
2015-10-21 15:10:48 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_MMAL, mpeg2_mmal);
|
2015-06-16 16:22:11 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_QSV, mpeg2_qsv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_VAAPI, mpeg2_vaapi);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_VDPAU, mpeg2_vdpau);
|
2015-07-11 11:23:21 +00:00
|
|
|
REGISTER_HWACCEL(MPEG2_VIDEOTOOLBOX, mpeg2_videotoolbox);
|
2016-01-28 16:24:40 +00:00
|
|
|
REGISTER_HWACCEL(MPEG4_MMAL, mpeg4_mmal);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(MPEG4_VAAPI, mpeg4_vaapi);
|
2013-01-12 15:53:45 +00:00
|
|
|
REGISTER_HWACCEL(MPEG4_VDPAU, mpeg4_vdpau);
|
2015-07-11 11:23:21 +00:00
|
|
|
REGISTER_HWACCEL(MPEG4_VIDEOTOOLBOX, mpeg4_videotoolbox);
|
2015-05-11 08:52:47 +00:00
|
|
|
REGISTER_HWACCEL(VC1_D3D11VA, vc1_d3d11va);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(VC1_DXVA2, vc1_dxva2);
|
|
|
|
REGISTER_HWACCEL(VC1_VAAPI, vc1_vaapi);
|
2013-01-12 15:53:47 +00:00
|
|
|
REGISTER_HWACCEL(VC1_VDPAU, vc1_vdpau);
|
2015-11-06 11:59:16 +00:00
|
|
|
REGISTER_HWACCEL(VC1_MMAL, vc1_mmal);
|
2015-07-25 16:28:11 +00:00
|
|
|
REGISTER_HWACCEL(VC1_QSV, vc1_qsv);
|
2015-12-03 10:09:51 +00:00
|
|
|
REGISTER_HWACCEL(VP9_D3D11VA, vp9_d3d11va);
|
|
|
|
REGISTER_HWACCEL(VP9_DXVA2, vp9_dxva2);
|
2015-12-19 19:31:00 +00:00
|
|
|
REGISTER_HWACCEL(VP9_VAAPI, vp9_vaapi);
|
2015-05-11 08:52:47 +00:00
|
|
|
REGISTER_HWACCEL(WMV3_D3D11VA, wmv3_d3d11va);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_HWACCEL(WMV3_DXVA2, wmv3_dxva2);
|
|
|
|
REGISTER_HWACCEL(WMV3_VAAPI, wmv3_vaapi);
|
2013-01-12 15:53:47 +00:00
|
|
|
REGISTER_HWACCEL(WMV3_VDPAU, wmv3_vdpau);
|
2009-03-10 14:35:55 +00:00
|
|
|
|
2006-11-28 23:55:24 +00:00
|
|
|
/* video codecs */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCODER(A64MULTI, a64multi);
|
|
|
|
REGISTER_ENCODER(A64MULTI5, a64multi5);
|
|
|
|
REGISTER_DECODER(AASC, aasc);
|
2013-05-16 05:21:08 +00:00
|
|
|
REGISTER_DECODER(AIC, aic);
|
2014-03-20 00:15:25 +00:00
|
|
|
REGISTER_ENCDEC (ALIAS_PIX, alias_pix);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (AMV, amv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ANM, anm);
|
|
|
|
REGISTER_DECODER(ANSI, ansi);
|
2015-03-31 20:58:26 +00:00
|
|
|
REGISTER_ENCDEC (APNG, apng);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (ASV1, asv1);
|
|
|
|
REGISTER_ENCDEC (ASV2, asv2);
|
|
|
|
REGISTER_DECODER(AURA, aura);
|
|
|
|
REGISTER_DECODER(AURA2, aura2);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (AVRP, avrp);
|
|
|
|
REGISTER_DECODER(AVRN, avrn);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(AVS, avs);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (AVUI, avui);
|
|
|
|
REGISTER_ENCDEC (AYUV, ayuv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(BETHSOFTVID, bethsoftvid);
|
|
|
|
REGISTER_DECODER(BFI, bfi);
|
|
|
|
REGISTER_DECODER(BINK, bink);
|
|
|
|
REGISTER_ENCDEC (BMP, bmp);
|
|
|
|
REGISTER_DECODER(BMV_VIDEO, bmv_video);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(BRENDER_PIX, brender_pix);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(C93, c93);
|
|
|
|
REGISTER_DECODER(CAVS, cavs);
|
|
|
|
REGISTER_DECODER(CDGRAPHICS, cdgraphics);
|
|
|
|
REGISTER_DECODER(CDXL, cdxl);
|
2016-01-30 17:39:48 +00:00
|
|
|
REGISTER_DECODER(CFHD, cfhd);
|
2014-01-22 10:12:11 +00:00
|
|
|
REGISTER_ENCDEC (CINEPAK, cinepak);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (CLJR, cljr);
|
|
|
|
REGISTER_DECODER(CLLC, cllc);
|
|
|
|
REGISTER_ENCDEC (COMFORTNOISE, comfortnoise);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(CPIA, cpia);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(CSCD, cscd);
|
|
|
|
REGISTER_DECODER(CYUV, cyuv);
|
2015-05-26 23:30:51 +00:00
|
|
|
REGISTER_DECODER(DDS, dds);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(DFA, dfa);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(DIRAC, dirac);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (DNXHD, dnxhd);
|
|
|
|
REGISTER_ENCDEC (DPX, dpx);
|
|
|
|
REGISTER_DECODER(DSICINVIDEO, dsicinvideo);
|
2016-01-25 20:54:17 +00:00
|
|
|
REGISTER_DECODER(DVAUDIO, dvaudio);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (DVVIDEO, dvvideo);
|
|
|
|
REGISTER_DECODER(DXA, dxa);
|
|
|
|
REGISTER_DECODER(DXTORY, dxtory);
|
2015-08-26 09:31:41 +00:00
|
|
|
REGISTER_DECODER(DXV, dxv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(EACMV, eacmv);
|
|
|
|
REGISTER_DECODER(EAMAD, eamad);
|
|
|
|
REGISTER_DECODER(EATGQ, eatgq);
|
|
|
|
REGISTER_DECODER(EATGV, eatgv);
|
|
|
|
REGISTER_DECODER(EATQI, eatqi);
|
|
|
|
REGISTER_DECODER(EIGHTBPS, eightbps);
|
|
|
|
REGISTER_DECODER(EIGHTSVX_EXP, eightsvx_exp);
|
|
|
|
REGISTER_DECODER(EIGHTSVX_FIB, eightsvx_fib);
|
|
|
|
REGISTER_DECODER(ESCAPE124, escape124);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(ESCAPE130, escape130);
|
|
|
|
REGISTER_DECODER(EXR, exr);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (FFV1, ffv1);
|
|
|
|
REGISTER_ENCDEC (FFVHUFF, ffvhuff);
|
2014-02-07 08:35:07 +00:00
|
|
|
REGISTER_DECODER(FIC, fic);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (FLASHSV, flashsv);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (FLASHSV2, flashsv2);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(FLIC, flic);
|
|
|
|
REGISTER_ENCDEC (FLV, flv);
|
|
|
|
REGISTER_DECODER(FOURXM, fourxm);
|
|
|
|
REGISTER_DECODER(FRAPS, fraps);
|
|
|
|
REGISTER_DECODER(FRWU, frwu);
|
2013-02-25 20:38:25 +00:00
|
|
|
REGISTER_DECODER(G2M, g2m);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (GIF, gif);
|
|
|
|
REGISTER_ENCDEC (H261, h261);
|
|
|
|
REGISTER_ENCDEC (H263, h263);
|
|
|
|
REGISTER_DECODER(H263I, h263i);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (H263P, h263p);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(H264, h264);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(H264_CRYSTALHD, h264_crystalhd);
|
2015-03-27 22:04:08 +00:00
|
|
|
REGISTER_DECODER(H264_MMAL, h264_mmal);
|
2015-02-10 09:40:59 +00:00
|
|
|
REGISTER_DECODER(H264_QSV, h264_qsv);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(H264_VDA, h264_vda);
|
2015-08-17 21:05:34 +00:00
|
|
|
#if FF_API_VDPAU
|
2013-08-17 13:31:14 +00:00
|
|
|
REGISTER_DECODER(H264_VDPAU, h264_vdpau);
|
2015-08-17 21:05:34 +00:00
|
|
|
#endif
|
2015-04-25 22:58:57 +00:00
|
|
|
REGISTER_ENCDEC (HAP, hap);
|
2013-10-12 09:55:48 +00:00
|
|
|
REGISTER_DECODER(HEVC, hevc);
|
2015-06-16 16:22:11 +00:00
|
|
|
REGISTER_DECODER(HEVC_QSV, hevc_qsv);
|
2013-10-28 00:38:02 +00:00
|
|
|
REGISTER_DECODER(HNM4_VIDEO, hnm4_video);
|
2015-04-09 16:12:30 +00:00
|
|
|
REGISTER_DECODER(HQ_HQA, hq_hqa);
|
2015-02-22 18:38:31 +00:00
|
|
|
REGISTER_DECODER(HQX, hqx);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (HUFFYUV, huffyuv);
|
|
|
|
REGISTER_DECODER(IDCIN, idcin);
|
|
|
|
REGISTER_DECODER(IFF_ILBM, iff_ilbm);
|
|
|
|
REGISTER_DECODER(INDEO2, indeo2);
|
|
|
|
REGISTER_DECODER(INDEO3, indeo3);
|
|
|
|
REGISTER_DECODER(INDEO4, indeo4);
|
|
|
|
REGISTER_DECODER(INDEO5, indeo5);
|
|
|
|
REGISTER_DECODER(INTERPLAY_VIDEO, interplay_video);
|
2013-05-31 00:12:22 +00:00
|
|
|
REGISTER_ENCDEC (JPEG2000, jpeg2000);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (JPEGLS, jpegls);
|
|
|
|
REGISTER_DECODER(JV, jv);
|
|
|
|
REGISTER_DECODER(KGV1, kgv1);
|
|
|
|
REGISTER_DECODER(KMVC, kmvc);
|
|
|
|
REGISTER_DECODER(LAGARITH, lagarith);
|
|
|
|
REGISTER_ENCODER(LJPEG, ljpeg);
|
|
|
|
REGISTER_DECODER(LOCO, loco);
|
|
|
|
REGISTER_DECODER(MDEC, mdec);
|
|
|
|
REGISTER_DECODER(MIMIC, mimic);
|
|
|
|
REGISTER_ENCDEC (MJPEG, mjpeg);
|
|
|
|
REGISTER_DECODER(MJPEGB, mjpegb);
|
|
|
|
REGISTER_DECODER(MMVIDEO, mmvideo);
|
|
|
|
REGISTER_DECODER(MOTIONPIXELS, motionpixels);
|
2013-11-05 07:16:31 +00:00
|
|
|
#if FF_API_XVMC
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MPEG_XVMC, mpeg_xvmc);
|
2013-11-05 07:16:31 +00:00
|
|
|
#endif /* FF_API_XVMC */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (MPEG1VIDEO, mpeg1video);
|
|
|
|
REGISTER_ENCDEC (MPEG2VIDEO, mpeg2video);
|
|
|
|
REGISTER_ENCDEC (MPEG4, mpeg4);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(MPEG4_CRYSTALHD, mpeg4_crystalhd);
|
2016-01-28 16:24:40 +00:00
|
|
|
REGISTER_DECODER(MPEG4_MMAL, mpeg4_mmal);
|
2015-08-17 21:05:34 +00:00
|
|
|
#if FF_API_VDPAU
|
2013-08-17 13:31:14 +00:00
|
|
|
REGISTER_DECODER(MPEG4_VDPAU, mpeg4_vdpau);
|
2015-08-17 21:05:34 +00:00
|
|
|
#endif
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(MPEGVIDEO, mpegvideo);
|
2015-08-17 21:05:34 +00:00
|
|
|
#if FF_API_VDPAU
|
2013-08-17 13:31:14 +00:00
|
|
|
REGISTER_DECODER(MPEG_VDPAU, mpeg_vdpau);
|
|
|
|
REGISTER_DECODER(MPEG1_VDPAU, mpeg1_vdpau);
|
2015-08-17 21:05:34 +00:00
|
|
|
#endif
|
2015-10-21 15:10:48 +00:00
|
|
|
REGISTER_DECODER(MPEG2_MMAL, mpeg2_mmal);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(MPEG2_CRYSTALHD, mpeg2_crystalhd);
|
2015-07-25 14:45:20 +00:00
|
|
|
REGISTER_DECODER(MPEG2_QSV, mpeg2_qsv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MSA1, msa1);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(MSMPEG4_CRYSTALHD, msmpeg4_crystalhd);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MSMPEG4V1, msmpeg4v1);
|
|
|
|
REGISTER_ENCDEC (MSMPEG4V2, msmpeg4v2);
|
|
|
|
REGISTER_ENCDEC (MSMPEG4V3, msmpeg4v3);
|
|
|
|
REGISTER_DECODER(MSRLE, msrle);
|
|
|
|
REGISTER_DECODER(MSS1, mss1);
|
|
|
|
REGISTER_DECODER(MSS2, mss2);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (MSVIDEO1, msvideo1);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MSZH, mszh);
|
|
|
|
REGISTER_DECODER(MTS2, mts2);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(MVC1, mvc1);
|
|
|
|
REGISTER_DECODER(MVC2, mvc2);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MXPEG, mxpeg);
|
|
|
|
REGISTER_DECODER(NUV, nuv);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(PAF_VIDEO, paf_video);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PAM, pam);
|
|
|
|
REGISTER_ENCDEC (PBM, pbm);
|
|
|
|
REGISTER_ENCDEC (PCX, pcx);
|
|
|
|
REGISTER_ENCDEC (PGM, pgm);
|
|
|
|
REGISTER_ENCDEC (PGMYUV, pgmyuv);
|
|
|
|
REGISTER_DECODER(PICTOR, pictor);
|
|
|
|
REGISTER_ENCDEC (PNG, png);
|
|
|
|
REGISTER_ENCDEC (PPM, ppm);
|
|
|
|
REGISTER_ENCDEC (PRORES, prores);
|
2013-04-11 20:47:27 +00:00
|
|
|
REGISTER_ENCODER(PRORES_AW, prores_aw);
|
|
|
|
REGISTER_ENCODER(PRORES_KS, prores_ks);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(PRORES_LGPL, prores_lgpl);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(PTX, ptx);
|
|
|
|
REGISTER_DECODER(QDRAW, qdraw);
|
|
|
|
REGISTER_DECODER(QPEG, qpeg);
|
|
|
|
REGISTER_ENCDEC (QTRLE, qtrle);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (R10K, r10k);
|
|
|
|
REGISTER_ENCDEC (R210, r210);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (RAWVIDEO, rawvideo);
|
|
|
|
REGISTER_DECODER(RL2, rl2);
|
|
|
|
REGISTER_ENCDEC (ROQ, roq);
|
|
|
|
REGISTER_DECODER(RPZA, rpza);
|
2015-10-19 12:23:43 +00:00
|
|
|
REGISTER_DECODER(RSCC, rscc);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (RV10, rv10);
|
|
|
|
REGISTER_ENCDEC (RV20, rv20);
|
|
|
|
REGISTER_DECODER(RV30, rv30);
|
|
|
|
REGISTER_DECODER(RV40, rv40);
|
2013-03-15 04:37:07 +00:00
|
|
|
REGISTER_ENCDEC (S302M, s302m);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(SANM, sanm);
|
2015-09-24 22:36:50 +00:00
|
|
|
REGISTER_DECODER(SCREENPRESSO, screenpresso);
|
2015-10-24 18:41:32 +00:00
|
|
|
REGISTER_DECODER(SDX2_DPCM, sdx2_dpcm);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (SGI, sgi);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(SGIRLE, sgirle);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(SMACKER, smacker);
|
|
|
|
REGISTER_DECODER(SMC, smc);
|
2013-05-22 01:16:51 +00:00
|
|
|
REGISTER_DECODER(SMVJPEG, smvjpeg);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (SNOW, snow);
|
|
|
|
REGISTER_DECODER(SP5X, sp5x);
|
|
|
|
REGISTER_ENCDEC (SUNRAST, sunrast);
|
|
|
|
REGISTER_ENCDEC (SVQ1, svq1);
|
|
|
|
REGISTER_DECODER(SVQ3, svq3);
|
|
|
|
REGISTER_ENCDEC (TARGA, targa);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(TARGA_Y216, targa_y216);
|
2015-03-11 20:44:00 +00:00
|
|
|
REGISTER_DECODER(TDSC, tdsc);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(THEORA, theora);
|
|
|
|
REGISTER_DECODER(THP, thp);
|
|
|
|
REGISTER_DECODER(TIERTEXSEQVIDEO, tiertexseqvideo);
|
|
|
|
REGISTER_ENCDEC (TIFF, tiff);
|
|
|
|
REGISTER_DECODER(TMV, tmv);
|
|
|
|
REGISTER_DECODER(TRUEMOTION1, truemotion1);
|
|
|
|
REGISTER_DECODER(TRUEMOTION2, truemotion2);
|
|
|
|
REGISTER_DECODER(TSCC, tscc);
|
|
|
|
REGISTER_DECODER(TSCC2, tscc2);
|
|
|
|
REGISTER_DECODER(TXD, txd);
|
|
|
|
REGISTER_DECODER(ULTI, ulti);
|
|
|
|
REGISTER_ENCDEC (UTVIDEO, utvideo);
|
|
|
|
REGISTER_ENCDEC (V210, v210);
|
|
|
|
REGISTER_DECODER(V210X, v210x);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (V308, v308);
|
|
|
|
REGISTER_ENCDEC (V408, v408);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (V410, v410);
|
|
|
|
REGISTER_DECODER(VB, vb);
|
|
|
|
REGISTER_DECODER(VBLE, vble);
|
|
|
|
REGISTER_DECODER(VC1, vc1);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(VC1_CRYSTALHD, vc1_crystalhd);
|
2015-08-17 21:05:34 +00:00
|
|
|
#if FF_API_VDPAU
|
2013-08-17 13:31:14 +00:00
|
|
|
REGISTER_DECODER(VC1_VDPAU, vc1_vdpau);
|
2015-08-17 21:05:34 +00:00
|
|
|
#endif
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(VC1IMAGE, vc1image);
|
2015-11-06 11:59:16 +00:00
|
|
|
REGISTER_DECODER(VC1_MMAL, vc1_mmal);
|
2015-07-25 16:28:11 +00:00
|
|
|
REGISTER_DECODER(VC1_QSV, vc1_qsv);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(VCR1, vcr1);
|
|
|
|
REGISTER_DECODER(VMDVIDEO, vmdvideo);
|
|
|
|
REGISTER_DECODER(VMNC, vmnc);
|
|
|
|
REGISTER_DECODER(VP3, vp3);
|
|
|
|
REGISTER_DECODER(VP5, vp5);
|
|
|
|
REGISTER_DECODER(VP6, vp6);
|
|
|
|
REGISTER_DECODER(VP6A, vp6a);
|
|
|
|
REGISTER_DECODER(VP6F, vp6f);
|
2014-02-18 10:52:30 +00:00
|
|
|
REGISTER_DECODER(VP7, vp7);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(VP8, vp8);
|
2013-10-01 03:03:30 +00:00
|
|
|
REGISTER_DECODER(VP9, vp9);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(VQA, vqa);
|
2013-03-22 10:38:46 +00:00
|
|
|
REGISTER_DECODER(WEBP, webp);
|
2015-10-09 12:12:04 +00:00
|
|
|
REGISTER_ENCODER(WRAPPED_AVFRAME, wrapped_avframe);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (WMV1, wmv1);
|
|
|
|
REGISTER_ENCDEC (WMV2, wmv2);
|
|
|
|
REGISTER_DECODER(WMV3, wmv3);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(WMV3_CRYSTALHD, wmv3_crystalhd);
|
2015-08-17 21:05:34 +00:00
|
|
|
#if FF_API_VDPAU
|
2013-08-17 13:31:14 +00:00
|
|
|
REGISTER_DECODER(WMV3_VDPAU, wmv3_vdpau);
|
2015-08-17 21:05:34 +00:00
|
|
|
#endif
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(WMV3IMAGE, wmv3image);
|
|
|
|
REGISTER_DECODER(WNV1, wnv1);
|
|
|
|
REGISTER_DECODER(XAN_WC3, xan_wc3);
|
|
|
|
REGISTER_DECODER(XAN_WC4, xan_wc4);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (XBM, xbm);
|
|
|
|
REGISTER_ENCDEC (XFACE, xface);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(XL, xl);
|
|
|
|
REGISTER_ENCDEC (XWD, xwd);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (Y41P, y41p);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(YOP, yop);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (YUV4, yuv4);
|
2013-01-06 16:55:14 +00:00
|
|
|
REGISTER_DECODER(ZERO12V, zero12v);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ZEROCODEC, zerocodec);
|
|
|
|
REGISTER_ENCDEC (ZLIB, zlib);
|
|
|
|
REGISTER_ENCDEC (ZMBV, zmbv);
|
2002-06-11 13:41:41 +00:00
|
|
|
|
2006-11-28 23:55:24 +00:00
|
|
|
/* audio codecs */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (AAC, aac);
|
2015-06-30 09:53:06 +00:00
|
|
|
REGISTER_DECODER(AAC_FIXED, aac_fixed);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(AAC_LATM, aac_latm);
|
|
|
|
REGISTER_ENCDEC (AC3, ac3);
|
2014-04-01 14:31:08 +00:00
|
|
|
REGISTER_ENCDEC (AC3_FIXED, ac3_fixed);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (ALAC, alac);
|
|
|
|
REGISTER_DECODER(ALS, als);
|
|
|
|
REGISTER_DECODER(AMRNB, amrnb);
|
|
|
|
REGISTER_DECODER(AMRWB, amrwb);
|
|
|
|
REGISTER_DECODER(APE, ape);
|
|
|
|
REGISTER_DECODER(ATRAC1, atrac1);
|
|
|
|
REGISTER_DECODER(ATRAC3, atrac3);
|
2013-10-10 18:32:14 +00:00
|
|
|
REGISTER_DECODER(ATRAC3P, atrac3p);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(BINKAUDIO_DCT, binkaudio_dct);
|
|
|
|
REGISTER_DECODER(BINKAUDIO_RDFT, binkaudio_rdft);
|
|
|
|
REGISTER_DECODER(BMV_AUDIO, bmv_audio);
|
|
|
|
REGISTER_DECODER(COOK, cook);
|
2016-01-16 08:07:08 +00:00
|
|
|
REGISTER_ENCODER(DCA, dca);
|
2014-04-14 08:22:32 +00:00
|
|
|
REGISTER_DECODER(DSD_LSBF, dsd_lsbf);
|
|
|
|
REGISTER_DECODER(DSD_MSBF, dsd_msbf);
|
|
|
|
REGISTER_DECODER(DSD_LSBF_PLANAR, dsd_lsbf_planar);
|
|
|
|
REGISTER_DECODER(DSD_MSBF_PLANAR, dsd_msbf_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(DSICINAUDIO, dsicinaudio);
|
2015-02-13 07:36:16 +00:00
|
|
|
REGISTER_DECODER(DSS_SP, dss_sp);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (EAC3, eac3);
|
2013-01-09 10:56:18 +00:00
|
|
|
REGISTER_DECODER(EVRC, evrc);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(FFWAVESYNTH, ffwavesynth);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (FLAC, flac);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (G723_1, g723_1);
|
|
|
|
REGISTER_DECODER(G729, g729);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(GSM, gsm);
|
|
|
|
REGISTER_DECODER(GSM_MS, gsm_ms);
|
|
|
|
REGISTER_DECODER(IAC, iac);
|
|
|
|
REGISTER_DECODER(IMC, imc);
|
2015-10-30 17:15:22 +00:00
|
|
|
REGISTER_DECODER(INTERPLAY_ACM, interplay_acm);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MACE3, mace3);
|
|
|
|
REGISTER_DECODER(MACE6, mace6);
|
2013-08-05 10:55:30 +00:00
|
|
|
REGISTER_DECODER(METASOUND, metasound);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MLP, mlp);
|
|
|
|
REGISTER_DECODER(MP1, mp1);
|
|
|
|
REGISTER_DECODER(MP1FLOAT, mp1float);
|
|
|
|
REGISTER_ENCDEC (MP2, mp2);
|
|
|
|
REGISTER_DECODER(MP2FLOAT, mp2float);
|
2013-11-16 12:15:35 +00:00
|
|
|
REGISTER_ENCODER(MP2FIXED, mp2fixed);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(MP3, mp3);
|
|
|
|
REGISTER_DECODER(MP3FLOAT, mp3float);
|
|
|
|
REGISTER_DECODER(MP3ADU, mp3adu);
|
|
|
|
REGISTER_DECODER(MP3ADUFLOAT, mp3adufloat);
|
|
|
|
REGISTER_DECODER(MP3ON4, mp3on4);
|
|
|
|
REGISTER_DECODER(MP3ON4FLOAT, mp3on4float);
|
|
|
|
REGISTER_DECODER(MPC7, mpc7);
|
|
|
|
REGISTER_DECODER(MPC8, mpc8);
|
|
|
|
REGISTER_ENCDEC (NELLYMOSER, nellymoser);
|
2013-06-09 18:03:33 +00:00
|
|
|
REGISTER_DECODER(ON2AVC, on2avc);
|
2014-04-17 10:51:03 +00:00
|
|
|
REGISTER_DECODER(OPUS, opus);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(PAF_AUDIO, paf_audio);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(QCELP, qcelp);
|
|
|
|
REGISTER_DECODER(QDM2, qdm2);
|
|
|
|
REGISTER_ENCDEC (RA_144, ra_144);
|
|
|
|
REGISTER_DECODER(RA_288, ra_288);
|
|
|
|
REGISTER_DECODER(RALF, ralf);
|
|
|
|
REGISTER_DECODER(SHORTEN, shorten);
|
|
|
|
REGISTER_DECODER(SIPR, sipr);
|
|
|
|
REGISTER_DECODER(SMACKAUD, smackaud);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (SONIC, sonic);
|
|
|
|
REGISTER_ENCODER(SONIC_LS, sonic_ls);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(TAK, tak);
|
|
|
|
REGISTER_DECODER(TRUEHD, truehd);
|
|
|
|
REGISTER_DECODER(TRUESPEECH, truespeech);
|
2013-05-27 13:52:36 +00:00
|
|
|
REGISTER_ENCDEC (TTA, tta);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(TWINVQ, twinvq);
|
|
|
|
REGISTER_DECODER(VMDAUDIO, vmdaudio);
|
|
|
|
REGISTER_ENCDEC (VORBIS, vorbis);
|
2013-01-22 20:05:44 +00:00
|
|
|
REGISTER_ENCDEC (WAVPACK, wavpack);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(WMALOSSLESS, wmalossless);
|
|
|
|
REGISTER_DECODER(WMAPRO, wmapro);
|
|
|
|
REGISTER_ENCDEC (WMAV1, wmav1);
|
|
|
|
REGISTER_ENCDEC (WMAV2, wmav2);
|
|
|
|
REGISTER_DECODER(WMAVOICE, wmavoice);
|
|
|
|
REGISTER_DECODER(WS_SND1, ws_snd1);
|
2015-11-01 12:15:36 +00:00
|
|
|
REGISTER_DECODER(XMA1, xma1);
|
|
|
|
REGISTER_DECODER(XMA2, xma2);
|
2006-02-12 06:49:40 +00:00
|
|
|
|
2008-04-17 22:06:06 +00:00
|
|
|
/* PCM codecs */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_ALAW, pcm_alaw);
|
|
|
|
REGISTER_DECODER(PCM_BLURAY, pcm_bluray);
|
|
|
|
REGISTER_DECODER(PCM_DVD, pcm_dvd);
|
|
|
|
REGISTER_ENCDEC (PCM_F32BE, pcm_f32be);
|
|
|
|
REGISTER_ENCDEC (PCM_F32LE, pcm_f32le);
|
|
|
|
REGISTER_ENCDEC (PCM_F64BE, pcm_f64be);
|
|
|
|
REGISTER_ENCDEC (PCM_F64LE, pcm_f64le);
|
|
|
|
REGISTER_DECODER(PCM_LXF, pcm_lxf);
|
|
|
|
REGISTER_ENCDEC (PCM_MULAW, pcm_mulaw);
|
|
|
|
REGISTER_ENCDEC (PCM_S8, pcm_s8);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S8_PLANAR, pcm_s8_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S16BE, pcm_s16be);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S16BE_PLANAR, pcm_s16be_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S16LE, pcm_s16le);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S16LE_PLANAR, pcm_s16le_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S24BE, pcm_s24be);
|
|
|
|
REGISTER_ENCDEC (PCM_S24DAUD, pcm_s24daud);
|
|
|
|
REGISTER_ENCDEC (PCM_S24LE, pcm_s24le);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S24LE_PLANAR, pcm_s24le_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S32BE, pcm_s32be);
|
|
|
|
REGISTER_ENCDEC (PCM_S32LE, pcm_s32le);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (PCM_S32LE_PLANAR, pcm_s32le_planar);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (PCM_U8, pcm_u8);
|
|
|
|
REGISTER_ENCDEC (PCM_U16BE, pcm_u16be);
|
|
|
|
REGISTER_ENCDEC (PCM_U16LE, pcm_u16le);
|
|
|
|
REGISTER_ENCDEC (PCM_U24BE, pcm_u24be);
|
|
|
|
REGISTER_ENCDEC (PCM_U24LE, pcm_u24le);
|
|
|
|
REGISTER_ENCDEC (PCM_U32BE, pcm_u32be);
|
|
|
|
REGISTER_ENCDEC (PCM_U32LE, pcm_u32le);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(PCM_ZORK, pcm_zork);
|
2003-10-15 03:20:40 +00:00
|
|
|
|
2008-04-17 22:06:06 +00:00
|
|
|
/* DPCM codecs */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(INTERPLAY_DPCM, interplay_dpcm);
|
|
|
|
REGISTER_ENCDEC (ROQ_DPCM, roq_dpcm);
|
|
|
|
REGISTER_DECODER(SOL_DPCM, sol_dpcm);
|
|
|
|
REGISTER_DECODER(XAN_DPCM, xan_dpcm);
|
2006-11-28 23:55:24 +00:00
|
|
|
|
2008-04-17 22:06:06 +00:00
|
|
|
/* ADPCM codecs */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_4XM, adpcm_4xm);
|
|
|
|
REGISTER_ENCDEC (ADPCM_ADX, adpcm_adx);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(ADPCM_AFC, adpcm_afc);
|
2015-10-28 13:51:27 +00:00
|
|
|
REGISTER_DECODER(ADPCM_AICA, adpcm_aica);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_CT, adpcm_ct);
|
2013-05-03 21:07:13 +00:00
|
|
|
REGISTER_DECODER(ADPCM_DTK, adpcm_dtk);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_EA, adpcm_ea);
|
|
|
|
REGISTER_DECODER(ADPCM_EA_MAXIS_XA, adpcm_ea_maxis_xa);
|
|
|
|
REGISTER_DECODER(ADPCM_EA_R1, adpcm_ea_r1);
|
|
|
|
REGISTER_DECODER(ADPCM_EA_R2, adpcm_ea_r2);
|
|
|
|
REGISTER_DECODER(ADPCM_EA_R3, adpcm_ea_r3);
|
|
|
|
REGISTER_DECODER(ADPCM_EA_XAS, adpcm_ea_xas);
|
|
|
|
REGISTER_ENCDEC (ADPCM_G722, adpcm_g722);
|
|
|
|
REGISTER_ENCDEC (ADPCM_G726, adpcm_g726);
|
2013-07-11 12:06:20 +00:00
|
|
|
REGISTER_DECODER(ADPCM_G726LE, adpcm_g726le);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_IMA_AMV, adpcm_ima_amv);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_APC, adpcm_ima_apc);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_DK3, adpcm_ima_dk3);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_DK4, adpcm_ima_dk4);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_EA_EACS, adpcm_ima_ea_eacs);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_EA_SEAD, adpcm_ima_ea_sead);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_ISS, adpcm_ima_iss);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(ADPCM_IMA_OKI, adpcm_ima_oki);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (ADPCM_IMA_QT, adpcm_ima_qt);
|
2013-05-10 19:53:50 +00:00
|
|
|
REGISTER_DECODER(ADPCM_IMA_RAD, adpcm_ima_rad);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_IMA_SMJPEG, adpcm_ima_smjpeg);
|
|
|
|
REGISTER_ENCDEC (ADPCM_IMA_WAV, adpcm_ima_wav);
|
|
|
|
REGISTER_DECODER(ADPCM_IMA_WS, adpcm_ima_ws);
|
|
|
|
REGISTER_ENCDEC (ADPCM_MS, adpcm_ms);
|
2015-10-13 12:16:24 +00:00
|
|
|
REGISTER_DECODER(ADPCM_PSX, adpcm_psx);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_SBPRO_2, adpcm_sbpro_2);
|
|
|
|
REGISTER_DECODER(ADPCM_SBPRO_3, adpcm_sbpro_3);
|
|
|
|
REGISTER_DECODER(ADPCM_SBPRO_4, adpcm_sbpro_4);
|
|
|
|
REGISTER_ENCDEC (ADPCM_SWF, adpcm_swf);
|
|
|
|
REGISTER_DECODER(ADPCM_THP, adpcm_thp);
|
2015-06-20 10:01:14 +00:00
|
|
|
REGISTER_DECODER(ADPCM_THP_LE, adpcm_thp_le);
|
2012-03-19 02:52:08 +00:00
|
|
|
REGISTER_DECODER(ADPCM_VIMA, adpcm_vima);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(ADPCM_XA, adpcm_xa);
|
|
|
|
REGISTER_ENCDEC (ADPCM_YAMAHA, adpcm_yamaha);
|
2003-11-10 15:29:20 +00:00
|
|
|
|
2005-10-26 12:51:10 +00:00
|
|
|
/* subtitles */
|
subtitles: introduce ASS codec id and use it.
Currently, we have a AV_CODEC_ID_SSA, which matches the way the ASS/SSA
markup is muxed in a standalone .ass/.ssa file. This means the AVPacket
data starts with a "Dialogue:" string, followed by a timing information
(start and end of the event as string) and a trailing CRLF after each
line. One packet can contain several lines. We'll refer to this layout
as "SSA" or "SSA lines".
In matroska, this markup is not stored as such: it has no "Dialogue:"
prefix, it contains a ReadOrder field, the timing information is not in
the payload, and it doesn't contain the trailing CRLF. See [1] for more
info. We'll refer to this layout as "ASS".
Since we have only one common codec for both formats, the matroska
demuxer is constructing an AVPacket following the "SSA lines" format.
This causes several problems, so it was decided to change this into
clean ASS packets.
Some insight about what is changed or unchanged in this commit:
CODECS
------
- the decoding process still writes "SSA lines" markup inside the ass
fields of the subtitles rectangles (sub->rects[n]->ass), which is
still the current common way of representing decoded subtitles
markup. It is meant to change later.
- new ASS codec id: AV_CODEC_ID_ASS (which is different from the
legacy AV_CODEC_ID_SSA)
- lavc/assdec: the "ass" decoder is renamed into "ssa" (instead of
"ass") for consistency with the codec id and allows to add a real
ass decoder. This ass decoder receives clean ASS lines (so it starts
with a ReadOrder, is followed by the Layer, etc). We make sure this
is decoded properly in a new ass-line rectangle of the decoded
subtitles (the ssa decoder OTOH is doing a simple straightforward
copy). Using the packet timing instead of data string makes sure the
ass-line now contains the appropriate timing.
- lavc/assenc: just like the ass decoder, the "ssa" encoder is renamed
into "ssa" (instead of "ass") for consistency with the codec id, and
allows to add a real "ass" encoder.
One important thing about this encoder is that it only supports one
ass rectangle: we could have put several dialogue events in the
AVPacket (separated by a \0 for instance) but this would have cause
trouble for the muxer which needs not only the start time, but also
the duration: typically, you have merged events with the same start
time (stored in the AVPacket->pts) but a different duration. At the
moment, only the matroska do the merge with the SSA-line codec.
We will need to make sure all the decoders in the future can't add
more than one rectangle (and only one Dialogue line in it
obviously).
FORMATS
-------
- lavf/assenc: the .ass/.ssa muxer can take both SSA and ASS packets.
In the case of ASS packets as input, it adds the timing based on the
AVPacket pts and duration, and mux it with "Dialogue:", trailing
CRLF, etc.
- lavf/assdec: unchanged; it currently still only outputs SSA-lines
packets.
- lavf/mkv: the demuxer can now output ASS packets without the need of
any "SSA-lines" reconstruction hack. It will become the default at
next libavformat bump, and the SSA support will be dropped from the
demuxer. The muxer can take ASS packets since it's muxed normally,
and still supports the old SSA packets. All the SSA support and
hacks in Matroska code will be dropped at next lavf bump.
[1]: http://www.matroska.org/technical/specs/subtitles/ssa.html
2013-01-03 02:06:43 +00:00
|
|
|
REGISTER_ENCDEC (SSA, ssa);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (ASS, ass);
|
2015-01-06 06:53:34 +00:00
|
|
|
REGISTER_DECODER(CCAPTION, ccaption);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (DVBSUB, dvbsub);
|
|
|
|
REGISTER_ENCDEC (DVDSUB, dvdsub);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(JACOSUB, jacosub);
|
|
|
|
REGISTER_DECODER(MICRODVD, microdvd);
|
|
|
|
REGISTER_ENCDEC (MOVTEXT, movtext);
|
2012-12-27 13:49:33 +00:00
|
|
|
REGISTER_DECODER(MPL2, mpl2);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_DECODER(PGSSUB, pgssub);
|
2012-12-28 04:15:00 +00:00
|
|
|
REGISTER_DECODER(PJS, pjs);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(REALTEXT, realtext);
|
|
|
|
REGISTER_DECODER(SAMI, sami);
|
|
|
|
REGISTER_ENCDEC (SRT, srt);
|
2014-10-20 20:25:39 +00:00
|
|
|
REGISTER_DECODER(STL, stl);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (SUBRIP, subrip);
|
|
|
|
REGISTER_DECODER(SUBVIEWER, subviewer);
|
2012-12-28 23:04:44 +00:00
|
|
|
REGISTER_DECODER(SUBVIEWER1, subviewer1);
|
2015-12-17 11:23:35 +00:00
|
|
|
REGISTER_ENCDEC (TEXT, text);
|
2012-12-27 21:36:47 +00:00
|
|
|
REGISTER_DECODER(VPLAYER, vplayer);
|
2014-05-23 04:20:34 +00:00
|
|
|
REGISTER_ENCDEC (WEBVTT, webvtt);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (XSUB, xsub);
|
2005-06-03 13:59:38 +00:00
|
|
|
|
2007-11-04 01:25:21 +00:00
|
|
|
/* external libraries */
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(LIBCELT, libcelt);
|
2015-03-19 22:56:22 +00:00
|
|
|
REGISTER_DECODER(LIBDCADEC, libdcadec)
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCODER(LIBFAAC, libfaac);
|
2013-08-15 19:40:32 +00:00
|
|
|
REGISTER_ENCDEC (LIBFDK_AAC, libfdk_aac);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (LIBGSM, libgsm);
|
|
|
|
REGISTER_ENCDEC (LIBGSM_MS, libgsm_ms);
|
|
|
|
REGISTER_ENCDEC (LIBILBC, libilbc);
|
|
|
|
REGISTER_ENCODER(LIBMP3LAME, libmp3lame);
|
|
|
|
REGISTER_ENCDEC (LIBOPENCORE_AMRNB, libopencore_amrnb);
|
|
|
|
REGISTER_DECODER(LIBOPENCORE_AMRWB, libopencore_amrwb);
|
|
|
|
REGISTER_ENCDEC (LIBOPENJPEG, libopenjpeg);
|
|
|
|
REGISTER_ENCDEC (LIBOPUS, libopus);
|
|
|
|
REGISTER_ENCDEC (LIBSCHROEDINGER, libschroedinger);
|
2012-07-29 18:20:00 +00:00
|
|
|
REGISTER_ENCODER(LIBSHINE, libshine);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCDEC (LIBSPEEX, libspeex);
|
|
|
|
REGISTER_ENCODER(LIBTHEORA, libtheora);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCODER(LIBTWOLAME, libtwolame);
|
|
|
|
REGISTER_ENCDEC (LIBUTVIDEO, libutvideo);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCODER(LIBVO_AMRWBENC, libvo_amrwbenc);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCDEC (LIBVORBIS, libvorbis);
|
2012-12-30 18:40:20 +00:00
|
|
|
REGISTER_ENCDEC (LIBVPX_VP8, libvpx_vp8);
|
|
|
|
REGISTER_ENCDEC (LIBVPX_VP9, libvpx_vp9);
|
2013-05-25 17:22:59 +00:00
|
|
|
REGISTER_ENCODER(LIBWAVPACK, libwavpack);
|
2015-05-20 01:04:07 +00:00
|
|
|
REGISTER_ENCODER(LIBWEBP_ANIM, libwebp_anim); /* preferred over libwebp */
|
2013-11-22 16:05:13 +00:00
|
|
|
REGISTER_ENCODER(LIBWEBP, libwebp);
|
2015-07-10 12:45:14 +00:00
|
|
|
REGISTER_ENCODER(LIBX262, libx262);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCODER(LIBX264, libx264);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_ENCODER(LIBX264RGB, libx264rgb);
|
2013-10-02 14:46:26 +00:00
|
|
|
REGISTER_ENCODER(LIBX265, libx265);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_ENCODER(LIBXAVS, libxavs);
|
|
|
|
REGISTER_ENCODER(LIBXVID, libxvid);
|
2013-09-01 21:05:50 +00:00
|
|
|
REGISTER_DECODER(LIBZVBI_TELETEXT, libzvbi_teletext);
|
2007-11-04 01:25:21 +00:00
|
|
|
|
2011-09-16 02:50:26 +00:00
|
|
|
/* text */
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_DECODER(BINTEXT, bintext);
|
|
|
|
REGISTER_DECODER(XBIN, xbin);
|
|
|
|
REGISTER_DECODER(IDF, idf);
|
2011-09-16 02:50:26 +00:00
|
|
|
|
2015-03-17 14:16:58 +00:00
|
|
|
/* external libraries, that shouldn't be used by default if one of the
|
|
|
|
* above is available */
|
|
|
|
REGISTER_ENCODER(LIBOPENH264, libopenh264);
|
2015-03-13 09:20:31 +00:00
|
|
|
REGISTER_ENCODER(H264_QSV, h264_qsv);
|
2015-06-06 20:21:56 +00:00
|
|
|
REGISTER_ENCODER(NVENC, nvenc);
|
|
|
|
REGISTER_ENCODER(NVENC_H264, nvenc_h264);
|
|
|
|
REGISTER_ENCODER(NVENC_HEVC, nvenc_hevc);
|
2015-06-16 16:22:11 +00:00
|
|
|
REGISTER_ENCODER(HEVC_QSV, hevc_qsv);
|
2015-07-14 05:53:35 +00:00
|
|
|
REGISTER_ENCODER(LIBKVAZAAR, libkvazaar);
|
2015-06-16 16:22:11 +00:00
|
|
|
REGISTER_ENCODER(MPEG2_QSV, mpeg2_qsv);
|
2015-03-17 14:16:58 +00:00
|
|
|
|
2005-12-17 18:14:38 +00:00
|
|
|
/* parsers */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(AAC, aac);
|
|
|
|
REGISTER_PARSER(AAC_LATM, aac_latm);
|
|
|
|
REGISTER_PARSER(AC3, ac3);
|
|
|
|
REGISTER_PARSER(ADX, adx);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_PARSER(BMP, bmp);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(CAVSVIDEO, cavsvideo);
|
|
|
|
REGISTER_PARSER(COOK, cook);
|
|
|
|
REGISTER_PARSER(DCA, dca);
|
|
|
|
REGISTER_PARSER(DIRAC, dirac);
|
|
|
|
REGISTER_PARSER(DNXHD, dnxhd);
|
2013-10-06 12:51:08 +00:00
|
|
|
REGISTER_PARSER(DPX, dpx);
|
2016-01-27 13:37:09 +00:00
|
|
|
REGISTER_PARSER(DVAUDIO, dvaudio);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(DVBSUB, dvbsub);
|
|
|
|
REGISTER_PARSER(DVDSUB, dvdsub);
|
2013-03-17 09:21:12 +00:00
|
|
|
REGISTER_PARSER(DVD_NAV, dvd_nav);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(FLAC, flac);
|
2015-08-11 17:04:09 +00:00
|
|
|
REGISTER_PARSER(G729, g729);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(GSM, gsm);
|
|
|
|
REGISTER_PARSER(H261, h261);
|
|
|
|
REGISTER_PARSER(H263, h263);
|
|
|
|
REGISTER_PARSER(H264, h264);
|
2013-10-12 09:55:48 +00:00
|
|
|
REGISTER_PARSER(HEVC, hevc);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(MJPEG, mjpeg);
|
|
|
|
REGISTER_PARSER(MLP, mlp);
|
|
|
|
REGISTER_PARSER(MPEG4VIDEO, mpeg4video);
|
|
|
|
REGISTER_PARSER(MPEGAUDIO, mpegaudio);
|
|
|
|
REGISTER_PARSER(MPEGVIDEO, mpegvideo);
|
2014-04-17 10:51:03 +00:00
|
|
|
REGISTER_PARSER(OPUS, opus);
|
2012-12-29 13:27:38 +00:00
|
|
|
REGISTER_PARSER(PNG, png);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_PARSER(PNM, pnm);
|
|
|
|
REGISTER_PARSER(RV30, rv30);
|
|
|
|
REGISTER_PARSER(RV40, rv40);
|
|
|
|
REGISTER_PARSER(TAK, tak);
|
|
|
|
REGISTER_PARSER(VC1, vc1);
|
|
|
|
REGISTER_PARSER(VORBIS, vorbis);
|
|
|
|
REGISTER_PARSER(VP3, vp3);
|
|
|
|
REGISTER_PARSER(VP8, vp8);
|
2013-11-23 14:04:39 +00:00
|
|
|
REGISTER_PARSER(VP9, vp9);
|
2006-07-06 15:04:46 +00:00
|
|
|
|
2007-05-12 23:33:53 +00:00
|
|
|
/* bitstream filters */
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_BSF(AAC_ADTSTOASC, aac_adtstoasc);
|
|
|
|
REGISTER_BSF(CHOMP, chomp);
|
|
|
|
REGISTER_BSF(DUMP_EXTRADATA, dump_extradata);
|
|
|
|
REGISTER_BSF(H264_MP4TOANNEXB, h264_mp4toannexb);
|
2015-07-09 09:28:38 +00:00
|
|
|
REGISTER_BSF(HEVC_MP4TOANNEXB, hevc_mp4toannexb);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_BSF(IMX_DUMP_HEADER, imx_dump_header);
|
|
|
|
REGISTER_BSF(MJPEG2JPEG, mjpeg2jpeg);
|
|
|
|
REGISTER_BSF(MJPEGA_DUMP_HEADER, mjpega_dump_header);
|
|
|
|
REGISTER_BSF(MP3_HEADER_DECOMPRESS, mp3_header_decompress);
|
2015-04-03 16:19:53 +00:00
|
|
|
REGISTER_BSF(MPEG4_UNPACK_BFRAMES, mpeg4_unpack_bframes);
|
2012-12-25 14:29:39 +00:00
|
|
|
REGISTER_BSF(MOV2TEXTSUB, mov2textsub);
|
|
|
|
REGISTER_BSF(NOISE, noise);
|
|
|
|
REGISTER_BSF(REMOVE_EXTRADATA, remove_extradata);
|
|
|
|
REGISTER_BSF(TEXT2MOVSUB, text2movsub);
|
2002-06-11 13:41:41 +00:00
|
|
|
}
|