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 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 else | 106 else |
107 { | 107 { |
108 vp8_filter_block2d_bil_var_ssse3( | 108 vp8_filter_block2d_bil_var_ssse3( |
109 src_ptr, src_pixels_per_line, | 109 src_ptr, src_pixels_per_line, |
110 dst_ptr, dst_pixels_per_line, 16, | 110 dst_ptr, dst_pixels_per_line, 16, |
111 xoffset, yoffset, | 111 xoffset, yoffset, |
112 &xsum0, &xxsum0); | 112 &xsum0, &xxsum0); |
113 } | 113 } |
114 | 114 |
115 *sse = xxsum0; | 115 *sse = xxsum0; |
116 return (xxsum0 - ((unsigned int)(xsum0 * xsum0) >> 8)); | 116 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 8)); |
117 } | 117 } |
118 | 118 |
119 unsigned int vp8_sub_pixel_variance16x8_ssse3 | 119 unsigned int vp8_sub_pixel_variance16x8_ssse3 |
120 ( | 120 ( |
121 const unsigned char *src_ptr, | 121 const unsigned char *src_ptr, |
122 int src_pixels_per_line, | 122 int src_pixels_per_line, |
123 int xoffset, | 123 int xoffset, |
124 int yoffset, | 124 int yoffset, |
125 const unsigned char *dst_ptr, | 125 const unsigned char *dst_ptr, |
126 int dst_pixels_per_line, | 126 int dst_pixels_per_line, |
(...skipping 28 matching lines...) Expand all Loading... |
155 else | 155 else |
156 { | 156 { |
157 vp8_filter_block2d_bil_var_ssse3( | 157 vp8_filter_block2d_bil_var_ssse3( |
158 src_ptr, src_pixels_per_line, | 158 src_ptr, src_pixels_per_line, |
159 dst_ptr, dst_pixels_per_line, 8, | 159 dst_ptr, dst_pixels_per_line, 8, |
160 xoffset, yoffset, | 160 xoffset, yoffset, |
161 &xsum0, &xxsum0); | 161 &xsum0, &xxsum0); |
162 } | 162 } |
163 | 163 |
164 *sse = xxsum0; | 164 *sse = xxsum0; |
165 return (xxsum0 - ((unsigned int)(xsum0 * xsum0) >> 7)); | 165 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 7)); |
166 } | 166 } |
OLD | NEW |