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_ |
+ } |
+} |