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

Unified Diff: libvpx/source/libvpx/vp8/encoder/variance_c.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
« no previous file with comments | « libvpx/source/libvpx/vp8/encoder/variance.h ('k') | libvpx/source/libvpx/vp8/encoder/x86/dct_sse2.asm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libvpx/source/libvpx/vp8/encoder/variance_c.c
diff --git a/libvpx/source/libvpx/vp8/encoder/variance_c.c b/libvpx/source/libvpx/vp8/encoder/variance_c.c
index c7b9c22093646e35b11fd461bea30041b8ba5916..ede07c8db3bf877aa6a8cc8b9359b70c371d9647 100644
--- a/libvpx/source/libvpx/vp8/encoder/variance_c.c
+++ b/libvpx/source/libvpx/vp8/encoder/variance_c.c
@@ -61,6 +61,40 @@ static void variance(
}
}
+unsigned int
+vp8_get8x8var_c
+(
+ const unsigned char *src_ptr,
+ int source_stride,
+ const unsigned char *ref_ptr,
+ int recon_stride,
+ unsigned int *SSE,
+ int *Sum
+)
+{
+
+ variance(src_ptr, source_stride, ref_ptr, recon_stride, 8, 8, SSE, Sum);
+ return (*SSE - (((*Sum) * (*Sum)) >> 6));
+}
+
+unsigned int
+vp8_get16x16var_c
+(
+ const unsigned char *src_ptr,
+ int source_stride,
+ const unsigned char *ref_ptr,
+ int recon_stride,
+ unsigned int *SSE,
+ int *Sum
+)
+{
+
+ variance(src_ptr, source_stride, ref_ptr, recon_stride, 16, 16, SSE, Sum);
+ return (*SSE - (((*Sum) * (*Sum)) >> 8));
+
+}
+
+
unsigned int vp8_variance16x16_c(
const unsigned char *src_ptr,
« no previous file with comments | « libvpx/source/libvpx/vp8/encoder/variance.h ('k') | libvpx/source/libvpx/vp8/encoder/x86/dct_sse2.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698