diff options
author | Ronald S. Bultje <rbultje@google.com> | 2012-07-24 15:22:14 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2012-07-24 15:22:39 -0700 |
commit | 980ca6324f01cdfbf6a456b9abc3eb6a9d497520 (patch) | |
tree | 5cb9cc37b90b980591e0aa0419178b7b4aba55ad /vp8/common | |
parent | fce8f063e38d86725b6b4d81c1ff42a82194146b (diff) | |
download | libvpx-980ca6324f01cdfbf6a456b9abc3eb6a9d497520.tar libvpx-980ca6324f01cdfbf6a456b9abc3eb6a9d497520.tar.gz libvpx-980ca6324f01cdfbf6a456b9abc3eb6a9d497520.tar.bz2 libvpx-980ca6324f01cdfbf6a456b9abc3eb6a9d497520.zip |
Replace x*155/100 by x*101581>>16.
Idea stolen from webp - because it's cool.
Change-Id: Ic6e55e026e6533fbd2524ef090e3cbccf8af50dd
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/quant_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/common/quant_common.c b/vp8/common/quant_common.c index e9833fe33..a0b212cc4 100644 --- a/vp8/common/quant_common.c +++ b/vp8/common/quant_common.c @@ -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; |