Mercurial > libavcodec.hg
comparison dct-test.c @ 1562:bf452704100f libavcodec
optionally merge postscale into quantization table for the float aan dct
author | michael |
---|---|
date | Thu, 23 Oct 2003 09:11:56 +0000 |
parents | 5d53c03186a1 |
children | 1396e33a9cb6 |
comparison
equal
deleted
inserted
replaced
1561:aa71c7981523 | 1562:bf452704100f |
---|---|
159 #endif | 159 #endif |
160 | 160 |
161 fdct_func(block); | 161 fdct_func(block); |
162 emms(); /* for ff_mmx_idct */ | 162 emms(); /* for ff_mmx_idct */ |
163 | 163 |
164 if (fdct_func == fdct_ifast) { | 164 if (fdct_func == fdct_ifast |
165 #ifndef FAAN_POSTSCALE | |
166 || fdct_func == ff_faandct | |
167 #endif | |
168 ) { | |
165 for(i=0; i<64; i++) { | 169 for(i=0; i<64; i++) { |
166 scale = 8*(1 << (AANSCALE_BITS + 11)) / aanscales[i]; | 170 scale = 8*(1 << (AANSCALE_BITS + 11)) / aanscales[i]; |
167 block[i] = (block[i] * scale /*+ (1<<(AANSCALE_BITS-1))*/) >> AANSCALE_BITS; | 171 block[i] = (block[i] * scale /*+ (1<<(AANSCALE_BITS-1))*/) >> AANSCALE_BITS; |
168 } | 172 } |
169 } | 173 } |