projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e2024
)
Make dequantization equation use less registers on some CPUs.
author
Maxim Poliakovski
<max_pole@gmx.de>
Sun, 30 May 2010 23:57:51 +0000
(23:57 +0000)
committer
Maxim Poliakovski
<max_pole@gmx.de>
Sun, 30 May 2010 23:57:51 +0000
(23:57 +0000)
Originally committed as revision 23391 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ivi_common.c
patch
|
blob
|
history
diff --git
a/libavcodec/ivi_common.c
b/libavcodec/ivi_common.c
index
565793d
..
5fcaca2
100644
(file)
--- a/
libavcodec/ivi_common.c
+++ b/
libavcodec/ivi_common.c
@@
-416,7
+416,7
@@
int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
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