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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 var_filter_block2d_bil_first_pass(src, fdata3, src_stride, 1, H + 1, W, \ | 149 var_filter_block2d_bil_first_pass(src, fdata3, src_stride, 1, H + 1, W, \ |
150 BILINEAR_FILTERS_2TAP(xoffset)); \ | 150 BILINEAR_FILTERS_2TAP(xoffset)); \ |
151 var_filter_block2d_bil_second_pass(fdata3, temp2, W, W, H, W, \ | 151 var_filter_block2d_bil_second_pass(fdata3, temp2, W, W, H, W, \ |
152 BILINEAR_FILTERS_2TAP(yoffset)); \ | 152 BILINEAR_FILTERS_2TAP(yoffset)); \ |
153 \ | 153 \ |
154 vp9_comp_avg_pred(temp3, second_pred, W, H, temp2, W); \ | 154 vp9_comp_avg_pred(temp3, second_pred, W, H, temp2, W); \ |
155 \ | 155 \ |
156 return vp9_variance##W##x##H##_c(temp3, W, dst, dst_stride, sse); \ | 156 return vp9_variance##W##x##H##_c(temp3, W, dst, dst_stride, sse); \ |
157 } | 157 } |
158 | 158 |
| 159 void vp9_get16x16var_c(const uint8_t *src_ptr, int source_stride, |
| 160 const uint8_t *ref_ptr, int ref_stride, |
| 161 unsigned int *sse, int *sum) { |
| 162 variance(src_ptr, source_stride, ref_ptr, ref_stride, 16, 16, sse, sum); |
| 163 } |
| 164 |
| 165 void vp9_get8x8var_c(const uint8_t *src_ptr, int source_stride, |
| 166 const uint8_t *ref_ptr, int ref_stride, |
| 167 unsigned int *sse, int *sum) { |
| 168 variance(src_ptr, source_stride, ref_ptr, ref_stride, 8, 8, sse, sum); |
| 169 } |
| 170 |
159 unsigned int vp9_mse16x16_c(const uint8_t *src, int src_stride, | 171 unsigned int vp9_mse16x16_c(const uint8_t *src, int src_stride, |
160 const uint8_t *ref, int ref_stride, | 172 const uint8_t *ref, int ref_stride, |
161 unsigned int *sse) { | 173 unsigned int *sse) { |
162 int sum; | 174 int sum; |
163 variance(src, src_stride, ref, ref_stride, 16, 16, sse, &sum); | 175 variance(src, src_stride, ref, ref_stride, 16, 16, sse, &sum); |
164 return *sse; | 176 return *sse; |
165 } | 177 } |
166 | 178 |
167 unsigned int vp9_mse16x8_c(const uint8_t *src, int src_stride, | 179 unsigned int vp9_mse16x8_c(const uint8_t *src, int src_stride, |
168 const uint8_t *ref, int ref_stride, | 180 const uint8_t *ref, int ref_stride, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 for (i = 0; i < height; i++) { | 259 for (i = 0; i < height; i++) { |
248 for (j = 0; j < width; j++) { | 260 for (j = 0; j < width; j++) { |
249 const int tmp = pred[j] + ref[j]; | 261 const int tmp = pred[j] + ref[j]; |
250 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1); | 262 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1); |
251 } | 263 } |
252 comp_pred += width; | 264 comp_pred += width; |
253 pred += width; | 265 pred += width; |
254 ref += ref_stride; | 266 ref += ref_stride; |
255 } | 267 } |
256 } | 268 } |
OLD | NEW |