From b4c3816cfaee19638f0d8b71a31fced84c34236c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 23 Oct 2003 09:11:56 +0000 Subject: optionally merge postscale into quantization table for the float aan dct Originally committed as revision 2420 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dct-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/dct-test.c') diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 958ce52..f5813b7 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -161,7 +161,11 @@ void dct_error(const char *name, int is_idct, fdct_func(block); emms(); /* for ff_mmx_idct */ - if (fdct_func == fdct_ifast) { + if (fdct_func == fdct_ifast +#ifndef FAAN_POSTSCALE + || fdct_func == ff_faandct +#endif + ) { for(i=0; i<64; i++) { scale = 8*(1 << (AANSCALE_BITS + 11)) / aanscales[i]; block[i] = (block[i] * scale /*+ (1<<(AANSCALE_BITS-1))*/) >> AANSCALE_BITS; -- cgit v1.1