Commit 980ca632 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

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

Idea stolen from webp - because it's cool.

Change-Id: Ic6e55e026e6533fbd2524ef090e3cbccf8af50dd
parent fce8f063
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment