diff options
author | Johann <johannkoenig@google.com> | 2011-01-25 13:40:28 -0800 |
---|---|---|
committer | Code Review <code-review@webmproject.org> | 2011-01-25 13:40:28 -0800 |
commit | 907e98fbb5d66133e57dd3b499d3d7d77420a7ce (patch) | |
tree | 051248a07c17868da4155438b9aa8a3281738bbd /vp8/encoder/quantize.c | |
parent | 58f19cc6972919a4164ba7ed4c9f0e5b5cbcb8fe (diff) | |
parent | 15f9bea73b136df73ee5efd1589e19924162e8fe (diff) | |
download | libvpx-907e98fbb5d66133e57dd3b499d3d7d77420a7ce.tar libvpx-907e98fbb5d66133e57dd3b499d3d7d77420a7ce.tar.gz libvpx-907e98fbb5d66133e57dd3b499d3d7d77420a7ce.tar.bz2 libvpx-907e98fbb5d66133e57dd3b499d3d7d77420a7ce.zip |
Merge "update sse2 regular quantizer"
Diffstat (limited to 'vp8/encoder/quantize.c')
-rw-r--r-- | vp8/encoder/quantize.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vp8/encoder/quantize.c b/vp8/encoder/quantize.c index be9f26c7f..4a2329fc1 100644 --- a/vp8/encoder/quantize.c +++ b/vp8/encoder/quantize.c @@ -129,9 +129,6 @@ void vp8_regular_quantize_b(BLOCK *b, BLOCKD *d) rc = vp8_default_zig_zag1d[i]; z = coeff_ptr[rc]; - //if ( i == 0 ) - // zbin = zbin_ptr[rc] + *zbin_boost_ptr + zbin_oq_value/2; - //else zbin = zbin_ptr[rc] + *zbin_boost_ptr + zbin_oq_value; zbin_boost_ptr ++; @@ -144,13 +141,13 @@ void vp8_regular_quantize_b(BLOCK *b, BLOCKD *d) y = (((x * quant_ptr[rc]) >> 16) + x) >> quant_shift_ptr[rc]; // quantize (x) x = (y ^ sz) - sz; // get the sign back - qcoeff_ptr[rc] = x; // write to destination - dqcoeff_ptr[rc] = x * dequant_ptr[rc]; // dequantized value + qcoeff_ptr[rc] = x; // write to destination + dqcoeff_ptr[rc] = x * dequant_ptr[rc]; // dequantized value if (y) { eob = i; // last nonzero coeffs - zbin_boost_ptr = &b->zrun_zbin_boost[0]; // reset zero runlength + zbin_boost_ptr = b->zrun_zbin_boost; // reset zero runlength } } } |