[FFmpeg-cvslog] r23391 - trunk/libavcodec/ivi_common.c
maxim
subversion
Mon May 31 01:57:51 CEST 2010
Author: maxim
Date: Mon May 31 01:57:51 2010
New Revision: 23391
Log:
Make dequantization equation use less registers on some CPUs.
Modified:
trunk/libavcodec/ivi_common.c
Modified: trunk/libavcodec/ivi_common.c
==============================================================================
--- trunk/libavcodec/ivi_common.c Mon May 31 00:25:40 2010 (r23390)
+++ trunk/libavcodec/ivi_common.c Mon May 31 01:57:51 2010 (r23391)
@@ -416,7 +416,7 @@ int ff_ivi_decode_blocks(GetBitContext *
q = (base_tab[pos] * scale_tab[quant]) >> 8;
if (q > 1)
- val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1));
+ val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1);
trvec[pos] = val;
col_flags[pos & col_mask] |= !!val; /* track columns containing non-zero coeffs */
}// while
More information about the ffmpeg-cvslog
mailing list