diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2011-07-23 15:46:35 +0200 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-27 14:39:56 +0100 |
commit | 2968bedf129558024ea87a1aabc4aa2d3a5bcb6e (patch) | |
tree | abe755aee5abd6698fef19f58d14142434d38b24 /libavcodec/dsputil.c | |
parent | 001e600c3b8668191f96d7a1e46da0d7fff546de (diff) | |
download | ffmpeg-2968bedf129558024ea87a1aabc4aa2d3a5bcb6e.tar.gz |
bink: make IDCT take 32-bit input
Since IDCT transforming 32-bit input to 8-bit output is unusual and unpractical
for most codecs, move Bink IDCT into separate context. Get rid of an additional
permutation table while at it since SIMD support for Bink IDCT is unlikely to
be implemented in foreseeable future.
Quantisation tables also have to change type to signed for proper
dequantisation of DCT coefficients.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 09e58f46d2..04c2ff67a4 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2894,11 +2894,6 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx) }else if(CONFIG_EATGQ_DECODER && avctx->idct_algo==FF_IDCT_EA) { c->idct_put= ff_ea_idct_put_c; c->idct_permutation_type= FF_NO_IDCT_PERM; - }else if(CONFIG_BINK_DECODER && avctx->idct_algo==FF_IDCT_BINK) { - c->idct = ff_bink_idct_c; - c->idct_add = ff_bink_idct_add_c; - c->idct_put = ff_bink_idct_put_c; - c->idct_permutation_type = FF_NO_IDCT_PERM; }else{ //accurate/default c->idct_put = ff_simple_idct_put_8; c->idct_add = ff_simple_idct_add_8; |