mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 13:38:07 +00:00
Make dequantization equation use less registers on some CPUs.
Originally committed as revision 23391 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
25e20240b1
commit
274793de6e
@ -416,7 +416,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
|
|||||||
|
|
||||||
q = (base_tab[pos] * scale_tab[quant]) >> 8;
|
q = (base_tab[pos] * scale_tab[quant]) >> 8;
|
||||||
if (q > 1)
|
if (q > 1)
|
||||||
val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1));
|
val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1);
|
||||||
trvec[pos] = val;
|
trvec[pos] = val;
|
||||||
col_flags[pos & col_mask] |= !!val; /* track columns containing non-zero coeffs */
|
col_flags[pos & col_mask] |= !!val; /* track columns containing non-zero coeffs */
|
||||||
}// while
|
}// while
|
||||||
|
Loading…
Reference in New Issue
Block a user