diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-21 16:14:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-21 16:14:41 +0100 |
commit | 5f61e09a8f28af45d7db1f5e7767d14322255f49 (patch) | |
tree | df4e8ce30cb60c7fe5a559529dcd2a03bdc22afb /libavcodec | |
parent | db23d5de27187dd8f2ec5c6dfd98a8a363b0fda5 (diff) | |
parent | 93af2734ee609133eaeca28329d7f13241dd411f (diff) | |
download | ffmpeg-5f61e09a8f28af45d7db1f5e7767d14322255f49.tar.gz |
Merge commit '93af2734ee609133eaeca28329d7f13241dd411f'
* commit '93af2734ee609133eaeca28329d7f13241dd411f':
lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.
Conflicts:
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avcodec.h | 12 | ||||
-rw-r--r-- | libavcodec/bfin/dsputil_bfin.c | 3 | ||||
-rw-r--r-- | libavcodec/bink.c | 1 | ||||
-rw-r--r-- | libavcodec/mss2.c | 3 | ||||
-rw-r--r-- | libavcodec/options_table.h | 2 | ||||
-rw-r--r-- | libavcodec/vc1dec.c | 4 | ||||
-rw-r--r-- | libavcodec/version.h | 3 |
7 files changed, 14 insertions, 14 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 9367093265..c3b1b6ac6b 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2890,20 +2890,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 /** diff --git a/libavcodec/bfin/dsputil_bfin.c b/libavcodec/bfin/dsputil_bfin.c index 434d2a7190..a1dcb14224 100644 --- a/libavcodec/bfin/dsputil_bfin.c +++ b/libavcodec/bfin/dsputil_bfin.c @@ -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; diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 2c28495685..892e92184b 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -1300,7 +1300,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); diff --git a/libavcodec/mss2.c b/libavcodec/mss2.c index 3de898b099..d805c7ae73 100644 --- a/libavcodec/mss2.c +++ b/libavcodec/mss2.c @@ -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); diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index 2a31fa64cc..764b5b1d88 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.h @@ -214,8 +214,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"}, diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index fda4c7399d..e0d3d7a200 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5182,10 +5182,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; // ensure static VLC tables are initialized diff --git a/libavcodec/version.h b/libavcodec/version.h index d22ff49531..0bc870936a 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -103,5 +103,8 @@ #ifndef FF_API_MMI #define FF_API_MMI (LIBAVCODEC_VERSION_MAJOR < 55) #endif +#ifndef FF_API_IDCT +#define FF_API_IDCT (LIBAVCODEC_VERSION_MAJOR < 55) +#endif #endif /* AVCODEC_VERSION_H */ |