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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 const __m128i k__cospi_p04_p28 = pair_set_epi16(cospi_4_64, cospi_28_64); | 29 const __m128i k__cospi_p04_p28 = pair_set_epi16(cospi_4_64, cospi_28_64); |
30 const __m128i k__cospi_p12_m20 = pair_set_epi16(cospi_12_64, -cospi_20_64); | 30 const __m128i k__cospi_p12_m20 = pair_set_epi16(cospi_12_64, -cospi_20_64); |
31 const __m128i k__cospi_p20_p12 = pair_set_epi16(cospi_20_64, cospi_12_64); | 31 const __m128i k__cospi_p20_p12 = pair_set_epi16(cospi_20_64, cospi_12_64); |
32 const __m128i k__cospi_p24_m08 = pair_set_epi16(cospi_24_64, -cospi_8_64); | 32 const __m128i k__cospi_p24_m08 = pair_set_epi16(cospi_24_64, -cospi_8_64); |
33 const __m128i k__cospi_p08_p24 = pair_set_epi16(cospi_8_64, cospi_24_64); | 33 const __m128i k__cospi_p08_p24 = pair_set_epi16(cospi_8_64, cospi_24_64); |
34 const __m128i k__cospi_m08_p24 = pair_set_epi16(-cospi_8_64, cospi_24_64); | 34 const __m128i k__cospi_m08_p24 = pair_set_epi16(-cospi_8_64, cospi_24_64); |
35 const __m128i k__cospi_p24_p08 = pair_set_epi16(cospi_24_64, cospi_8_64); | 35 const __m128i k__cospi_p24_p08 = pair_set_epi16(cospi_24_64, cospi_8_64); |
36 const __m128i k__cospi_m24_m08 = pair_set_epi16(-cospi_24_64, -cospi_8_64); | 36 const __m128i k__cospi_m24_m08 = pair_set_epi16(-cospi_24_64, -cospi_8_64); |
37 const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32(DCT_CONST_ROUNDING); | 37 const __m128i k__DCT_CONST_ROUNDING = _mm_set1_epi32(DCT_CONST_ROUNDING); |
38 const __m128i k__cospi_p16_p16_x2 = pair_set_epi16(23170, 23170); | 38 const __m128i k__cospi_p16_p16_x2 = pair_set_epi16(23170, 23170); |
39 const __m128i k__cospi_p16_p16 = _mm_set1_epi16(cospi_16_64); | 39 const __m128i k__cospi_p16_p16 = _mm_set1_epi16((int16_t)cospi_16_64); |
40 const __m128i k__cospi_m16_p16 = pair_set_epi16(-cospi_16_64, cospi_16_64); | 40 const __m128i k__cospi_m16_p16 = pair_set_epi16(-cospi_16_64, cospi_16_64); |
41 | 41 |
42 __m128i v[16], u[16], s[16], t[16]; | 42 __m128i v[16], u[16], s[16], t[16]; |
43 | 43 |
44 // stage 1 | 44 // stage 1 |
45 s[0] = in[0]; | 45 s[0] = in[0]; |
46 s[1] = in[8]; | 46 s[1] = in[8]; |
47 s[2] = in[4]; | 47 s[2] = in[4]; |
48 s[3] = in[12]; | 48 s[3] = in[12]; |
49 s[4] = in[2]; | 49 s[4] = in[2]; |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 RECON_AND_STORE(dest, in[10]); | 753 RECON_AND_STORE(dest, in[10]); |
754 RECON_AND_STORE(dest, in[11]); | 754 RECON_AND_STORE(dest, in[11]); |
755 RECON_AND_STORE(dest, in[12]); | 755 RECON_AND_STORE(dest, in[12]); |
756 RECON_AND_STORE(dest, in[13]); | 756 RECON_AND_STORE(dest, in[13]); |
757 RECON_AND_STORE(dest, in[14]); | 757 RECON_AND_STORE(dest, in[14]); |
758 RECON_AND_STORE(dest, in[15]); | 758 RECON_AND_STORE(dest, in[15]); |
759 | 759 |
760 dest += 8 - (stride * 16); | 760 dest += 8 - (stride * 16); |
761 } | 761 } |
762 } | 762 } |
OLD | NEW |