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 |
| 13 #include "./vp9_rtcd.h" |
12 #include "vpx_ports/mem.h" | 14 #include "vpx_ports/mem.h" |
13 #include "vp9/encoder/vp9_variance.h" | 15 #include "vp9/encoder/vp9_variance.h" |
14 | 16 |
15 DECLARE_ALIGNED(32, static const uint8_t, bilinear_filters_avx2[512]) = { | 17 DECLARE_ALIGNED(32, static const uint8_t, bilinear_filters_avx2[512]) = { |
16 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, | 18 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, |
17 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, | 19 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, 16, 0, |
18 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, | 20 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, |
19 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, | 21 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, |
20 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, | 22 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, |
21 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, | 23 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, 14, 2, |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 src_pack = src_reg; | 532 src_pack = src_reg; |
531 sec+= sec_stride; | 533 sec+= sec_stride; |
532 CALC_SUM_SSE_INSIDE_LOOP | 534 CALC_SUM_SSE_INSIDE_LOOP |
533 dst+= dst_stride; | 535 dst+= dst_stride; |
534 } | 536 } |
535 } | 537 } |
536 } | 538 } |
537 CALC_SUM_AND_SSE | 539 CALC_SUM_AND_SSE |
538 return sum; | 540 return sum; |
539 } | 541 } |
OLD | NEW |