OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <emmintrin.h> | 11 #include <emmintrin.h> |
12 #include <xmmintrin.h> | 12 #include <xmmintrin.h> |
13 | 13 |
| 14 #include "./vp9_rtcd.h" |
14 #include "vpx/vpx_integer.h" | 15 #include "vpx/vpx_integer.h" |
15 | 16 |
16 void vp9_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, | 17 void vp9_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, |
17 int skip_block, const int16_t* zbin_ptr, | 18 int skip_block, const int16_t* zbin_ptr, |
18 const int16_t* round_ptr, const int16_t* quant_ptr, | 19 const int16_t* round_ptr, const int16_t* quant_ptr, |
19 const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr, | 20 const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr, |
20 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, | 21 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, |
21 uint16_t* eob_ptr, | 22 uint16_t* eob_ptr, |
22 const int16_t* scan_ptr, | 23 const int16_t* scan_ptr, |
23 const int16_t* iscan_ptr) { | 24 const int16_t* iscan_ptr) { |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 do { | 410 do { |
410 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero); | 411 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero); |
411 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero); | 412 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero); |
412 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero); | 413 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero); |
413 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero); | 414 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero); |
414 n_coeffs += 8 * 2; | 415 n_coeffs += 8 * 2; |
415 } while (n_coeffs < 0); | 416 } while (n_coeffs < 0); |
416 *eob_ptr = 0; | 417 *eob_ptr = 0; |
417 } | 418 } |
418 } | 419 } |
OLD | NEW |