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

Side by Side Diff: source/libvpx/vp9/encoder/x86/vp9_variance_mmx.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
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 #include "vp9/encoder/vp9_variance.h" 12 #include "vp9/encoder/vp9_variance.h"
13 #include "vp9/common/vp9_pragmas.h" 13 #include "vp9/common/vp9_pragmas.h"
14 #include "vpx_ports/mem.h" 14 #include "vpx_ports/mem.h"
15 15
16 extern unsigned int vp9_get_mb_ss_mmx(const int16_t *src_ptr);
17 extern unsigned int vp9_get8x8var_mmx 16 extern unsigned int vp9_get8x8var_mmx
18 ( 17 (
19 const unsigned char *src_ptr, 18 const unsigned char *src_ptr,
20 int source_stride, 19 int source_stride,
21 const unsigned char *ref_ptr, 20 const unsigned char *ref_ptr,
22 int recon_stride, 21 int recon_stride,
23 unsigned int *SSE, 22 unsigned int *SSE,
24 int *Sum 23 int *Sum
25 ); 24 );
26 extern unsigned int vp9_get4x4var_mmx 25 extern unsigned int vp9_get4x4var_mmx
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 &sum0); 144 &sum0);
146 vp9_get8x8var_mmx(src_ptr + 8 * source_stride, source_stride, 145 vp9_get8x8var_mmx(src_ptr + 8 * source_stride, source_stride,
147 ref_ptr + 8 * recon_stride, recon_stride, &sse1, &sum1); 146 ref_ptr + 8 * recon_stride, recon_stride, &sse1, &sum1);
148 147
149 var = sse0 + sse1; 148 var = sse0 + sse1;
150 avg = sum0 + sum1; 149 avg = sum0 + sum1;
151 *sse = var; 150 *sse = var;
152 151
153 return (var - (((unsigned int)avg * avg) >> 7)); 152 return (var - (((unsigned int)avg * avg) >> 7));
154 } 153 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_sad4d_intrin_avx2.c ('k') | source/libvpx/vp9/encoder/x86/vp9_variance_sse2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698