OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <immintrin.h> // AVX2 | 11 #include <immintrin.h> // AVX2 |
12 #include "vp9/common/vp9_idct.h" // for cospi constants | 12 #include "vp9/common/vp9_idct.h" // for cospi constants |
13 #include "vpx_ports/mem.h" | 13 #include "vpx_ports/mem.h" |
14 | 14 |
15 | 15 |
16 #define FDCT32x32_2D_AVX2 vp9_fdct32x32_rd_avx2 | 16 #define FDCT32x32_2D_AVX2 vp9_fdct32x32_rd_avx2 |
17 #define FDCT32x32_HIGH_PRECISION 0 | 17 #define FDCT32x32_HIGH_PRECISION 0 |
18 #include "vp9/encoder/x86/vp9_dct32x32_avx2.c" | 18 #include "vp9/encoder/x86/vp9_dct32x32_avx2_impl.h" |
19 #undef FDCT32x32_2D_AVX2 | 19 #undef FDCT32x32_2D_AVX2 |
20 #undef FDCT32x32_HIGH_PRECISION | 20 #undef FDCT32x32_HIGH_PRECISION |
21 | 21 |
22 #define FDCT32x32_2D_AVX2 vp9_fdct32x32_avx2 | 22 #define FDCT32x32_2D_AVX2 vp9_fdct32x32_avx2 |
23 #define FDCT32x32_HIGH_PRECISION 1 | 23 #define FDCT32x32_HIGH_PRECISION 1 |
24 #include "vp9/encoder/x86/vp9_dct32x32_avx2.c" // NOLINT | 24 #include "vp9/encoder/x86/vp9_dct32x32_avx2_impl.h" // NOLINT |
25 #undef FDCT32x32_2D_AVX2 | 25 #undef FDCT32x32_2D_AVX2 |
26 #undef FDCT32x32_HIGH_PRECISION | 26 #undef FDCT32x32_HIGH_PRECISION |
OLD | NEW |