changeset 33216:5f00ed06579d

Use memcpy_pic instead of reimplementing it.
author reimar
date Fri, 22 Apr 2011 17:03:04 +0000
parents 4c7b564719e0
children d5dbf016cd58
files libvo/vo_fbdev2.c
diffstat 1 files changed, 5 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev2.c	Fri Apr 22 16:53:01 2011 +0000
+++ b/libvo/vo_fbdev2.c	Fri Apr 22 17:03:04 2011 +0000
@@ -358,13 +358,8 @@
 	uint8_t *dest = next_frame + (in_width * y + x) * fb_pixel_size;
 	int next = in_width * fb_pixel_size;
 #endif
-	int i;
 
-	for (i = 0; i < h; i++) {
-		fast_memcpy(dest, in, w * fb_pixel_size);
-		dest += next;
-		in += stride[0];
-	}
+	memcpy_pic(dest, in, w * fb_pixel_size, h, next, stride[0]);
 	return 0;
 }
 
@@ -375,14 +370,11 @@
 static void flip_page(void)
 {
 #ifndef USE_CONVERT2FB
-	int i, out_offset = 0, in_offset = 0;
+	int out_offset = 0, in_offset = 0;
 
-	for (i = 0; i < in_height; i++) {
-		fast_memcpy(center + out_offset, next_frame + in_offset,
-				in_width * fb_pixel_size);
-		out_offset += fb_line_len;
-		in_offset += in_width * fb_pixel_size;
-	}
+	memcpy_pic(center + out_offset, next_frame + in_offset,
+	           in_width * fb_pixel_size, in_height,
+	           fb_line_len, in_width * fb_pixel_size);
 #endif
 }