| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Constants and Macros used by all idct/dct functions | 26 // Constants and Macros used by all idct/dct functions |
| 27 #define DCT_CONST_BITS 14 | 27 #define DCT_CONST_BITS 14 |
| 28 #define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1)) | 28 #define DCT_CONST_ROUNDING (1 << (DCT_CONST_BITS - 1)) |
| 29 | 29 |
| 30 #define UNIT_QUANT_SHIFT 2 | 30 #define UNIT_QUANT_SHIFT 2 |
| 31 #define UNIT_QUANT_FACTOR (1 << UNIT_QUANT_SHIFT) | 31 #define UNIT_QUANT_FACTOR (1 << UNIT_QUANT_SHIFT) |
| 32 | 32 |
| 33 #define pair_set_epi16(a, b) \ | 33 #define pair_set_epi16(a, b) \ |
| 34 _mm_set_epi16(b, a, b, a, b, a, b, a) | 34 _mm_set_epi16(b, a, b, a, b, a, b, a) |
| 35 | 35 |
| 36 #define dual_set_epi16(a, b) \ |
| 37 _mm_set_epi16(b, b, b, b, a, a, a, a) |
| 38 |
| 36 // Constants: | 39 // Constants: |
| 37 // for (int i = 1; i< 32; ++i) | 40 // for (int i = 1; i< 32; ++i) |
| 38 // printf("static const int cospi_%d_64 = %.0f;\n", i, | 41 // printf("static const int cospi_%d_64 = %.0f;\n", i, |
| 39 // round(16384 * cos(i*M_PI/64))); | 42 // round(16384 * cos(i*M_PI/64))); |
| 40 // Note: sin(k*Pi/64) = cos((32-k)*Pi/64) | 43 // Note: sin(k*Pi/64) = cos((32-k)*Pi/64) |
| 41 static const int cospi_1_64 = 16364; | 44 static const int cospi_1_64 = 16364; |
| 42 static const int cospi_2_64 = 16305; | 45 static const int cospi_2_64 = 16305; |
| 43 static const int cospi_3_64 = 16207; | 46 static const int cospi_3_64 = 16207; |
| 44 static const int cospi_4_64 = 16069; | 47 static const int cospi_4_64 = 16069; |
| 45 static const int cospi_5_64 = 15893; | 48 static const int cospi_5_64 = 15893; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 int stride, int eob); | 105 int stride, int eob); |
| 103 void vp9_iht16x16_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest, | 106 void vp9_iht16x16_add(TX_TYPE tx_type, const int16_t *input, uint8_t *dest, |
| 104 int stride, int eob); | 107 int stride, int eob); |
| 105 | 108 |
| 106 | 109 |
| 107 #ifdef __cplusplus | 110 #ifdef __cplusplus |
| 108 } // extern "C" | 111 } // extern "C" |
| 109 #endif | 112 #endif |
| 110 | 113 |
| 111 #endif // VP9_COMMON_VP9_IDCT_H_ | 114 #endif // VP9_COMMON_VP9_IDCT_H_ |
| OLD | NEW |