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

Unified Diff: source/libvpx/vp8/encoder/x86/variance_sse2.c

Issue 7671004: Update libvpx snapshot to v0.9.7-p1 (Cayuga). (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vp8/encoder/x86/variance_mmx.c ('k') | source/libvpx/vp8/encoder/x86/variance_ssse3.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vp8/encoder/x86/variance_sse2.c
===================================================================
--- source/libvpx/vp8/encoder/x86/variance_sse2.c (revision 96967)
+++ source/libvpx/vp8/encoder/x86/variance_sse2.c (working copy)
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-
+#include "vpx_config.h"
#include "vp8/encoder/variance.h"
#include "vp8/common/pragmas.h"
#include "vpx_ports/mem.h"
@@ -53,13 +53,6 @@
unsigned int *SSE,
int *Sum
);
-unsigned int vp8_get16x16pred_error_sse2
-(
- const unsigned char *src_ptr,
- int src_stride,
- const unsigned char *ref_ptr,
- int ref_stride
-);
unsigned int vp8_get8x8var_sse2
(
const unsigned char *src_ptr,
@@ -148,30 +141,31 @@
const unsigned char *src_ptr,
int source_stride,
const unsigned char *ref_ptr,
- int recon_stride)
+ int recon_stride,
+ unsigned int *sse)
{
unsigned int var;
int avg;
vp8_get4x4var_mmx(src_ptr, source_stride, ref_ptr, recon_stride, &var, &avg) ;
+ *sse = var;
return (var - ((avg * avg) >> 4));
}
-
-
unsigned int vp8_variance8x8_wmt
(
const unsigned char *src_ptr,
int source_stride,
const unsigned char *ref_ptr,
- int recon_stride)
+ int recon_stride,
+ unsigned int *sse)
{
unsigned int var;
int avg;
vp8_get8x8var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &var, &avg) ;
-
+ *sse = var;
return (var - ((avg * avg) >> 6));
}
« no previous file with comments | « source/libvpx/vp8/encoder/x86/variance_mmx.c ('k') | source/libvpx/vp8/encoder/x86/variance_ssse3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698