optionally merge postscale into quantization table for the float aan dct

Originally committed as revision 2420 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2003-10-23 09:11:56 +00:00
parent 10becaaf12
commit b4c3816cfa
4 changed files with 30 additions and 11 deletions

View File

@@ -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;