Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: source/libvpx/vp8/common/variance_c.c

Issue 1169543007: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp8/common/rtcd_defs.pl ('k') | source/libvpx/vp8/common/x86/vp8_variance_mmx.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/rtcd_defs.pl ('k') | source/libvpx/vp8/common/x86/vp8_variance_mmx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698