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

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

Issue 7624054: Revert r97185 "Update libvpx snapshot to v0.9.7-p1 (Cayuga)." (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party
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
Index: libvpx/source/libvpx/vp8/encoder/x86/variance_sse2.c
diff --git a/libvpx/source/libvpx/vp8/encoder/x86/variance_sse2.c b/libvpx/source/libvpx/vp8/encoder/x86/variance_sse2.c
index 24062eb9be0f52e7e7376b913e4b02fe010f6bcd..0edda30623b88bbeb44fc29ef0224f016c028887 100644
--- a/libvpx/source/libvpx/vp8/encoder/x86/variance_sse2.c
+++ b/libvpx/source/libvpx/vp8/encoder/x86/variance_sse2.c
@@ -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,6 +53,13 @@ unsigned int vp8_get16x16var_sse2
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,
@@ -141,31 +148,30 @@ unsigned int vp8_variance4x4_wmt(
const unsigned char *src_ptr,
int source_stride,
const unsigned char *ref_ptr,
- int recon_stride,
- unsigned int *sse)
+ int recon_stride)
{
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,
- unsigned int *sse)
+ int recon_stride)
{
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 | « libvpx/source/libvpx/vp8/encoder/x86/variance_mmx.c ('k') | libvpx/source/libvpx/vp8/encoder/x86/variance_ssse3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698