| 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 <assert.h> | 11 #include <assert.h> |
| 12 #if defined(_MSC_VER) && _MSC_VER <= 1500 | 12 #if defined(_MSC_VER) && _MSC_VER <= 1500 |
| 13 // Need to include math.h before calling tmmintrin.h/intrin.h | 13 // Need to include math.h before calling tmmintrin.h/intrin.h |
| 14 // in certain versions of MSVS. | 14 // in certain versions of MSVS. |
| 15 #include <math.h> | 15 #include <math.h> |
| 16 #endif | 16 #endif |
| 17 #include <tmmintrin.h> // SSSE3 | 17 #include <tmmintrin.h> // SSSE3 |
| 18 |
| 19 #include "./vp9_rtcd.h" |
| 18 #include "vp9/common/x86/vp9_idct_intrin_sse2.h" | 20 #include "vp9/common/x86/vp9_idct_intrin_sse2.h" |
| 19 | 21 |
| 20 void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride, | 22 void vp9_fdct8x8_quant_ssse3(const int16_t *input, int stride, |
| 21 int16_t* coeff_ptr, intptr_t n_coeffs, | 23 int16_t* coeff_ptr, intptr_t n_coeffs, |
| 22 int skip_block, const int16_t* zbin_ptr, | 24 int skip_block, const int16_t* zbin_ptr, |
| 23 const int16_t* round_ptr, const int16_t* quant_ptr, | 25 const int16_t* round_ptr, const int16_t* quant_ptr, |
| 24 const int16_t* quant_shift_ptr, | 26 const int16_t* quant_shift_ptr, |
| 25 int16_t* qcoeff_ptr, | 27 int16_t* qcoeff_ptr, |
| 26 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, | 28 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, |
| 27 uint16_t* eob_ptr, | 29 uint16_t* eob_ptr, |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 do { | 462 do { |
| 461 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero); | 463 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero); |
| 462 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero); | 464 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero); |
| 463 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero); | 465 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero); |
| 464 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero); | 466 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero); |
| 465 n_coeffs += 8 * 2; | 467 n_coeffs += 8 * 2; |
| 466 } while (n_coeffs < 0); | 468 } while (n_coeffs < 0); |
| 467 *eob_ptr = 0; | 469 *eob_ptr = 0; |
| 468 } | 470 } |
| 469 } | 471 } |
| OLD | NEW |