mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 12:24:52 +00:00
lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.
This allows us to get rid of them on the next major bump. All of the above are functionally irrelevant, and most of them are unused, except the vp3 one, which is used wrongly in the bfin arch optimizations.
This commit is contained in:
parent
e6bc38fd49
commit
93af2734ee
@ -2680,20 +2680,22 @@ typedef struct AVCodecContext {
|
||||
#define FF_IDCT_ALTIVEC 8
|
||||
#define FF_IDCT_SH4 9
|
||||
#define FF_IDCT_SIMPLEARM 10
|
||||
#define FF_IDCT_H264 11
|
||||
#define FF_IDCT_VP3 12
|
||||
#define FF_IDCT_IPP 13
|
||||
#define FF_IDCT_XVIDMMX 14
|
||||
#define FF_IDCT_CAVS 15
|
||||
#define FF_IDCT_SIMPLEARMV5TE 16
|
||||
#define FF_IDCT_SIMPLEARMV6 17
|
||||
#define FF_IDCT_SIMPLEVIS 18
|
||||
#define FF_IDCT_WMV2 19
|
||||
#define FF_IDCT_FAAN 20
|
||||
#define FF_IDCT_EA 21
|
||||
#define FF_IDCT_SIMPLENEON 22
|
||||
#define FF_IDCT_SIMPLEALPHA 23
|
||||
#if FF_API_IDCT
|
||||
#define FF_IDCT_H264 11
|
||||
#define FF_IDCT_VP3 12
|
||||
#define FF_IDCT_CAVS 15
|
||||
#define FF_IDCT_WMV2 19
|
||||
#define FF_IDCT_EA 21
|
||||
#define FF_IDCT_BINK 24
|
||||
#endif
|
||||
|
||||
#if FF_API_DSP_MASK
|
||||
/**
|
||||
|
@ -257,7 +257,8 @@ void ff_dsputil_init_bfin( DSPContext* c, AVCodecContext *avctx )
|
||||
if (avctx->dct_algo == FF_DCT_AUTO)
|
||||
c->fdct = ff_bfin_fdct;
|
||||
|
||||
if (avctx->idct_algo == FF_IDCT_VP3) {
|
||||
// FIXME convert to VP3DSPContext
|
||||
if (0) { // avctx->idct_algo == FF_IDCT_VP3) {
|
||||
c->idct_permutation_type = FF_NO_IDCT_PERM;
|
||||
c->idct = ff_bfin_vp3_idct;
|
||||
c->idct_add = ff_bfin_vp3_idct_add;
|
||||
|
@ -1304,7 +1304,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
|
||||
avctx->pix_fmt = c->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P;
|
||||
|
||||
avctx->idct_algo = FF_IDCT_BINK;
|
||||
ff_dsputil_init(&c->dsp, avctx);
|
||||
ff_binkdsp_init(&c->bdsp);
|
||||
|
||||
|
@ -760,9 +760,6 @@ static av_cold int wmv9_init(AVCodecContext *avctx)
|
||||
avctx->flags |= CODEC_FLAG_EMU_EDGE;
|
||||
v->s.flags |= CODEC_FLAG_EMU_EDGE;
|
||||
|
||||
if (avctx->idct_algo == FF_IDCT_AUTO)
|
||||
avctx->idct_algo = FF_IDCT_WMV2;
|
||||
|
||||
if ((ret = ff_vc1_init_common(v)) < 0)
|
||||
return ret;
|
||||
ff_vc1dsp_init(&v->vc1dsp);
|
||||
|
@ -207,8 +207,10 @@ static const AVOption options[]={
|
||||
{"simplearmv6", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEARMV6 }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
{"simpleneon", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLENEON }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
{"simplealpha", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEALPHA }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
#if FF_API_IDCT
|
||||
{"h264", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_H264 }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
{"vp3", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_VP3 }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
#endif
|
||||
{"ipp", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_IPP }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
{"xvidmmx", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_XVIDMMX }, INT_MIN, INT_MAX, V|E|D, "idct"},
|
||||
{"faani", "floating point AAN IDCT", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_FAAN }, INT_MIN, INT_MAX, V|D|E, "idct"},
|
||||
|
@ -5162,10 +5162,6 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
|
||||
avctx->flags |= CODEC_FLAG_EMU_EDGE;
|
||||
v->s.flags |= CODEC_FLAG_EMU_EDGE;
|
||||
|
||||
if (avctx->idct_algo == FF_IDCT_AUTO) {
|
||||
avctx->idct_algo = FF_IDCT_WMV2;
|
||||
}
|
||||
|
||||
if (ff_vc1_init_common(v) < 0)
|
||||
return -1;
|
||||
ff_vc1dsp_init(&v->vc1dsp);
|
||||
|
@ -94,5 +94,8 @@
|
||||
#ifndef FF_API_SNOW
|
||||
#define FF_API_SNOW (LIBAVCODEC_VERSION_MAJOR < 55)
|
||||
#endif
|
||||
#ifndef FF_API_IDCT
|
||||
#define FF_API_IDCT (LIBAVCODEC_VERSION_MAJOR < 55)
|
||||
#endif
|
||||
|
||||
#endif /* AVCODEC_VERSION_H */
|
||||
|
Loading…
Reference in New Issue
Block a user