Replace x*155/100 by x*101581>>16.
Idea stolen from webp - because it's cool. Change-Id: Ic6e55e026e6533fbd2524ef090e3cbccf8af50dd
This commit is contained in:
parent
fce8f063e3
commit
980ca6324f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user