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

Side by Side Diff: source/libvpx/vp9/encoder/x86/vp9_variance_sse2.c

Issue 232133009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_variance_mmx.c ('k') | source/libvpx/vp9/vp9_common.mk » ('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
11 #include "./vpx_config.h" 11 #include "./vpx_config.h"
12 12
13 #include "vp9/encoder/vp9_variance.h" 13 #include "vp9/encoder/vp9_variance.h"
14 #include "vp9/common/vp9_pragmas.h" 14 #include "vp9/common/vp9_pragmas.h"
15 #include "vpx_ports/mem.h" 15 #include "vpx_ports/mem.h"
16 16
17 extern unsigned int vp9_get4x4var_mmx 17 extern unsigned int vp9_get4x4var_mmx
18 ( 18 (
19 const unsigned char *src_ptr, 19 const unsigned char *src_ptr,
20 int source_stride, 20 int source_stride,
21 const unsigned char *ref_ptr, 21 const unsigned char *ref_ptr,
22 int recon_stride, 22 int recon_stride,
23 unsigned int *SSE, 23 unsigned int *SSE,
24 int *Sum 24 int *Sum
25 ); 25 );
26 26
27 unsigned int vp9_get_mb_ss_sse2
28 (
29 const int16_t *src_ptr
30 );
31 unsigned int vp9_get16x16var_sse2 27 unsigned int vp9_get16x16var_sse2
32 ( 28 (
33 const unsigned char *src_ptr, 29 const unsigned char *src_ptr,
34 int source_stride, 30 int source_stride,
35 const unsigned char *ref_ptr, 31 const unsigned char *ref_ptr,
36 int recon_stride, 32 int recon_stride,
37 unsigned int *SSE, 33 unsigned int *SSE,
38 int *Sum 34 int *Sum
39 ); 35 );
40 unsigned int vp9_get8x8var_sse2 36 unsigned int vp9_get8x8var_sse2
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 unsigned int xxsum0; 542 unsigned int xxsum0;
547 543
548 vp9_half_horiz_vert_variance16x_h_sse2( 544 vp9_half_horiz_vert_variance16x_h_sse2(
549 src_ptr, src_pixels_per_line, 545 src_ptr, src_pixels_per_line,
550 dst_ptr, dst_pixels_per_line, 16, 546 dst_ptr, dst_pixels_per_line, 16,
551 &xsum0, &xxsum0); 547 &xsum0, &xxsum0);
552 548
553 *sse = xxsum0; 549 *sse = xxsum0;
554 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 8)); 550 return (xxsum0 - (((unsigned int)xsum0 * xsum0) >> 8));
555 } 551 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_variance_mmx.c ('k') | source/libvpx/vp9/vp9_common.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698