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

Unified Diff: source/libvpx/vp8/common/copy_c.c

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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/common/common.h ('k') | source/libvpx/vp8/common/debugmodes.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vp8/common/copy_c.c
diff --git a/source/libvpx/vp8/common/mv.h b/source/libvpx/vp8/common/copy_c.c
similarity index 53%
copy from source/libvpx/vp8/common/mv.h
copy to source/libvpx/vp8/common/copy_c.c
index 111ccd63c7226f15cec8452458354718a089cf9d..fd96c863491129e84da11a8c4d9a019729221d5d 100644
--- a/source/libvpx/vp8/common/mv.h
+++ b/source/libvpx/vp8/common/copy_c.c
@@ -9,28 +9,24 @@
*/
-#ifndef VP8_COMMON_MV_H_
-#define VP8_COMMON_MV_H_
-#include "vpx/vpx_integer.h"
+#include <string.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "vpx_config.h"
+#include "vpx/vpx_integer.h"
-typedef struct
+/* Copy 2 macroblocks to a buffer */
+void vp8_copy32xn_c(unsigned char *src_ptr, int src_stride,
+ unsigned char *dst_ptr, int dst_stride,
+ int height)
{
- short row;
- short col;
-} MV;
+ int r;
-typedef union int_mv
-{
- uint32_t as_int;
- MV as_mv;
-} int_mv; /* facilitates faster equality tests and copies */
+ for (r = 0; r < height; r++)
+ {
+ memcpy(dst_ptr, src_ptr, 32);
-#ifdef __cplusplus
-} // extern "C"
-#endif
+ src_ptr += src_stride;
+ dst_ptr += dst_stride;
-#endif // VP8_COMMON_MV_H_
+ }
+}
« no previous file with comments | « source/libvpx/vp8/common/common.h ('k') | source/libvpx/vp8/common/debugmodes.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698