diff options
author | Jingning Han <jingning@google.com> | 2014-12-22 09:35:29 -0800 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2014-12-22 10:09:25 -0800 |
commit | d0f237702745c4bfc0297d24f9465f960fb988ed (patch) | |
tree | 57183a417ecc6d3552170c14227a6f37608c7833 /vp9/encoder/x86/vp9_quantize_sse2.c | |
parent | f4eab151c57fe7e3b608249ce0be53675e271143 (diff) | |
download | libvpx-d0f237702745c4bfc0297d24f9465f960fb988ed.tar libvpx-d0f237702745c4bfc0297d24f9465f960fb988ed.tar.gz libvpx-d0f237702745c4bfc0297d24f9465f960fb988ed.tar.bz2 libvpx-d0f237702745c4bfc0297d24f9465f960fb988ed.zip |
Revert "Revert "Removal of legacy zbin_extra / zbin_oq_value.""
This reverts commit 9946ee23e0a4c158e26a505b162a072f81b8a3be.
Fix the ssse3 asm function.
Change-Id: I07f77a63aa98087626e45c4e87aa5dcafc0b0b07
Diffstat (limited to 'vp9/encoder/x86/vp9_quantize_sse2.c')
-rw-r--r-- | vp9/encoder/x86/vp9_quantize_sse2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vp9/encoder/x86/vp9_quantize_sse2.c b/vp9/encoder/x86/vp9_quantize_sse2.c index e06eb2f15..679c66e30 100644 --- a/vp9/encoder/x86/vp9_quantize_sse2.c +++ b/vp9/encoder/x86/vp9_quantize_sse2.c @@ -18,7 +18,7 @@ void vp9_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, const int16_t* round_ptr, const int16_t* quant_ptr, const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr, int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, - int zbin_oq_value, uint16_t* eob_ptr, + uint16_t* eob_ptr, const int16_t* scan_ptr, const int16_t* iscan_ptr) { __m128i zero; @@ -39,13 +39,10 @@ void vp9_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, // Setup global values { - __m128i zbin_oq; __m128i pw_1; - zbin_oq = _mm_set1_epi16(zbin_oq_value); zbin = _mm_load_si128((const __m128i*)zbin_ptr); round = _mm_load_si128((const __m128i*)round_ptr); quant = _mm_load_si128((const __m128i*)quant_ptr); - zbin = _mm_add_epi16(zbin, zbin_oq); pw_1 = _mm_set1_epi16(1); zbin = _mm_sub_epi16(zbin, pw_1); dequant = _mm_load_si128((const __m128i*)dequant_ptr); @@ -229,14 +226,13 @@ void vp9_quantize_fp_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, const int16_t* round_ptr, const int16_t* quant_ptr, const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr, int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, - int zbin_oq_value, uint16_t* eob_ptr, + uint16_t* eob_ptr, const int16_t* scan_ptr, const int16_t* iscan_ptr) { __m128i zero; (void)scan_ptr; (void)zbin_ptr; (void)quant_shift_ptr; - (void)zbin_oq_value; coeff_ptr += n_coeffs; iscan_ptr += n_coeffs; |