diff options
author | Johann <johannkoenig@google.com> | 2014-10-31 13:42:55 -0700 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2014-10-31 13:42:55 -0700 |
commit | 2134eb2f054baaec9a796784aeeafb0b669ff601 (patch) | |
tree | e2816daadf199792fd563257fc67c72e1df275a0 /vp8/encoder/quantize.c | |
parent | 7ae75c3d525d79b9b28652fb34082cf81a5de9ab (diff) | |
download | libvpx-2134eb2f054baaec9a796784aeeafb0b669ff601.tar libvpx-2134eb2f054baaec9a796784aeeafb0b669ff601.tar.gz libvpx-2134eb2f054baaec9a796784aeeafb0b669ff601.tar.bz2 libvpx-2134eb2f054baaec9a796784aeeafb0b669ff601.zip |
Remove pair quantization
The intrinsics version of the pair quant is slower than running it
individually.
Change-Id: I7b4ea8599d4aab04be0a5a0c59b8b29a7fc283f4
Diffstat (limited to 'vp8/encoder/quantize.c')
-rw-r--r-- | vp8/encoder/quantize.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/vp8/encoder/quantize.c b/vp8/encoder/quantize.c index 9953bd686..2feb316b3 100644 --- a/vp8/encoder/quantize.c +++ b/vp8/encoder/quantize.c @@ -101,7 +101,7 @@ void vp8_regular_quantize_b_c(BLOCK *b, BLOCKD *d) *d->eob = (char)(eob + 1); } -void vp8_quantize_mby_c(MACROBLOCK *x) +void vp8_quantize_mby(MACROBLOCK *x) { int i; int has_2nd_order = (x->e_mbd.mode_info_context->mbmi.mode != B_PRED @@ -114,7 +114,7 @@ void vp8_quantize_mby_c(MACROBLOCK *x) x->quantize_b(&x->block[24], &x->e_mbd.block[24]); } -void vp8_quantize_mb_c(MACROBLOCK *x) +void vp8_quantize_mb(MACROBLOCK *x) { int i; int has_2nd_order=(x->e_mbd.mode_info_context->mbmi.mode != B_PRED @@ -125,7 +125,7 @@ void vp8_quantize_mb_c(MACROBLOCK *x) } -void vp8_quantize_mbuv_c(MACROBLOCK *x) +void vp8_quantize_mbuv(MACROBLOCK *x) { int i; @@ -133,23 +133,6 @@ void vp8_quantize_mbuv_c(MACROBLOCK *x) x->quantize_b(&x->block[i], &x->e_mbd.block[i]); } -/* quantize_b_pair function pointer in MACROBLOCK structure is set to one of - * these two C functions if corresponding optimized routine is not available. - * NEON optimized version implements currently the fast quantization for pair - * of blocks. */ -void vp8_regular_quantize_b_pair(BLOCK *b1, BLOCK *b2, BLOCKD *d1, BLOCKD *d2) -{ - vp8_regular_quantize_b(b1, d1); - vp8_regular_quantize_b(b2, d2); -} - -void vp8_fast_quantize_b_pair_c(BLOCK *b1, BLOCK *b2, BLOCKD *d1, BLOCKD *d2) -{ - vp8_fast_quantize_b_c(b1, d1); - vp8_fast_quantize_b_c(b2, d2); -} - - static const int qrounding_factors[129] = { 48, 48, 48, 48, 48, 48, 48, 48, |