Replace x*155/100 by x*101581>>16.

Idea stolen from webp - because it's cool.

Change-Id: Ic6e55e026e6533fbd2524ef090e3cbccf8af50dd
This commit is contained in:
Ronald S. Bultje 2012-07-24 15:22:14 -07:00
parent fce8f063e3
commit 980ca6324f

View File

@ -109,7 +109,7 @@ int vp8_ac2quant(int QIndex, int Delta)
else if (QIndex < 0)
QIndex = 0;
retval = (ac_qlookup[ QIndex ] * 155) / 100;
retval = (ac_qlookup[ QIndex ] * 101581) >> 16;
if (retval < 8)
retval = 8;