| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 int source_stride, | 279 int source_stride, |
| 280 const unsigned char *ref_ptr, | 280 const unsigned char *ref_ptr, |
| 281 int recon_stride, | 281 int recon_stride, |
| 282 unsigned int *sse) | 282 unsigned int *sse) |
| 283 { | 283 { |
| 284 return vp8_sub_pixel_variance16x16_c(src_ptr, source_stride, 4, 4, | 284 return vp8_sub_pixel_variance16x16_c(src_ptr, source_stride, 4, 4, |
| 285 ref_ptr, recon_stride, sse); | 285 ref_ptr, recon_stride, sse); |
| 286 } | 286 } |
| 287 | 287 |
| 288 | 288 |
| 289 unsigned int vp8_sub_pixel_mse16x16_c | |
| 290 ( | |
| 291 const unsigned char *src_ptr, | |
| 292 int src_pixels_per_line, | |
| 293 int xoffset, | |
| 294 int yoffset, | |
| 295 const unsigned char *dst_ptr, | |
| 296 int dst_pixels_per_line, | |
| 297 unsigned int *sse | |
| 298 ) | |
| 299 { | |
| 300 vp8_sub_pixel_variance16x16_c(src_ptr, src_pixels_per_line, xoffset, yoffset
, dst_ptr, dst_pixels_per_line, sse); | |
| 301 return *sse; | |
| 302 } | |
| 303 | |
| 304 unsigned int vp8_sub_pixel_variance16x8_c | 289 unsigned int vp8_sub_pixel_variance16x8_c |
| 305 ( | 290 ( |
| 306 const unsigned char *src_ptr, | 291 const unsigned char *src_ptr, |
| 307 int src_pixels_per_line, | 292 int src_pixels_per_line, |
| 308 int xoffset, | 293 int xoffset, |
| 309 int yoffset, | 294 int yoffset, |
| 310 const unsigned char *dst_ptr, | 295 const unsigned char *dst_ptr, |
| 311 int dst_pixels_per_line, | 296 int dst_pixels_per_line, |
| 312 unsigned int *sse | 297 unsigned int *sse |
| 313 ) | 298 ) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 343 | 328 |
| 344 HFilter = vp8_bilinear_filters[xoffset]; | 329 HFilter = vp8_bilinear_filters[xoffset]; |
| 345 VFilter = vp8_bilinear_filters[yoffset]; | 330 VFilter = vp8_bilinear_filters[yoffset]; |
| 346 | 331 |
| 347 | 332 |
| 348 var_filter_block2d_bil_first_pass(src_ptr, FData3, src_pixels_per_line, 1, 1
7, 8, HFilter); | 333 var_filter_block2d_bil_first_pass(src_ptr, FData3, src_pixels_per_line, 1, 1
7, 8, HFilter); |
| 349 var_filter_block2d_bil_second_pass(FData3, temp2, 8, 8, 16, 8, VFilter); | 334 var_filter_block2d_bil_second_pass(FData3, temp2, 8, 8, 16, 8, VFilter); |
| 350 | 335 |
| 351 return variance(temp2, 8, dst_ptr, dst_pixels_per_line, 8, 16, sse); | 336 return variance(temp2, 8, dst_ptr, dst_pixels_per_line, 8, 16, sse); |
| 352 } | 337 } |
| OLD | NEW |