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> // SSE2 | 11 #include <emmintrin.h> // SSE2 |
| 12 |
| 13 #include "./vp9_rtcd.h" |
12 #include "vp9/common/vp9_idct.h" // for cospi constants | 14 #include "vp9/common/vp9_idct.h" // for cospi constants |
13 #include "vp9/encoder/vp9_dct.h" | 15 #include "vp9/encoder/vp9_dct.h" |
14 #include "vp9/encoder/x86/vp9_dct_sse2.h" | 16 #include "vp9/encoder/x86/vp9_dct_sse2.h" |
15 #include "vpx_ports/mem.h" | 17 #include "vpx_ports/mem.h" |
16 | 18 |
17 #if DCT_HIGH_BIT_DEPTH | 19 #if DCT_HIGH_BIT_DEPTH |
18 #define ADD_EPI16 _mm_adds_epi16 | 20 #define ADD_EPI16 _mm_adds_epi16 |
19 #define SUB_EPI16 _mm_subs_epi16 | 21 #define SUB_EPI16 _mm_subs_epi16 |
20 | 22 |
21 #else | 23 #else |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 out1 += 8*16; | 1015 out1 += 8*16; |
1014 } | 1016 } |
1015 } | 1017 } |
1016 // Setup in/out for next pass. | 1018 // Setup in/out for next pass. |
1017 in = intermediate; | 1019 in = intermediate; |
1018 } | 1020 } |
1019 } | 1021 } |
1020 | 1022 |
1021 #undef ADD_EPI16 | 1023 #undef ADD_EPI16 |
1022 #undef SUB_EPI16 | 1024 #undef SUB_EPI16 |
OLD | NEW |