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 |
| 11 #include "./vp8_rtcd.h" |
11 #include "vpx_config.h" | 12 #include "vpx_config.h" |
12 #include "vp8/common/variance.h" | 13 #include "vp8/common/variance.h" |
13 #include "vpx_ports/mem.h" | 14 #include "vpx_ports/mem.h" |
14 | 15 |
15 extern unsigned int vp8_get16x16var_sse2 | |
16 ( | |
17 const unsigned char *src_ptr, | |
18 int source_stride, | |
19 const unsigned char *ref_ptr, | |
20 int recon_stride, | |
21 unsigned int *SSE, | |
22 int *Sum | |
23 ); | |
24 extern void vp8_half_horiz_vert_variance16x_h_sse2 | 16 extern void vp8_half_horiz_vert_variance16x_h_sse2 |
25 ( | 17 ( |
26 const unsigned char *ref_ptr, | 18 const unsigned char *ref_ptr, |
27 int ref_pixels_per_line, | 19 int ref_pixels_per_line, |
28 const unsigned char *src_ptr, | 20 const unsigned char *src_ptr, |
29 int src_pixels_per_line, | 21 int src_pixels_per_line, |
30 unsigned int Height, | 22 unsigned int Height, |
31 int *sum, | 23 int *sum, |
32 unsigned int *sumsquared | 24 unsigned int *sumsquared |
33 ); | 25 ); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 vp8_filter_block2d_bil_var_ssse3( | 148 vp8_filter_block2d_bil_var_ssse3( |
157 src_ptr, src_pixels_per_line, | 149 src_ptr, src_pixels_per_line, |
158 dst_ptr, dst_pixels_per_line, 8, | 150 dst_ptr, dst_pixels_per_line, 8, |
159 xoffset, yoffset, | 151 xoffset, yoffset, |
160 &xsum0, &xxsum0); | 152 &xsum0, &xxsum0); |
161 } | 153 } |
162 | 154 |
163 *sse = xxsum0; | 155 *sse = xxsum0; |
164 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 7)); | 156 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 7)); |
165 } | 157 } |
OLD | NEW |