[MPlayer-cvslog] r29402 - trunk/libvo/vo_fbdev.c

reimar subversion at mplayerhq.hu
Fri Jun 26 18:20:15 CEST 2009


Author: reimar
Date: Fri Jun 26 18:20:15 2009
New Revision: 29402

Log:
Use memcpy_pic2 instead of reimplementing it.

Modified:
   trunk/libvo/vo_fbdev.c

Modified: trunk/libvo/vo_fbdev.c
==============================================================================
--- trunk/libvo/vo_fbdev.c	Fri Jun 26 17:41:34 2009	(r29401)
+++ trunk/libvo/vo_fbdev.c	Fri Jun 26 18:20:15 2009	(r29402)
@@ -1011,17 +1011,11 @@ static int draw_frame(uint8_t *src[])
 
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
-    uint8_t *d, *s;
+    uint8_t *d;
 
     d = center + fb_line_len * y + fb_pixel_size * x;
 
-    s = src[0];
-    while (h) {
-        fast_memcpy(d, s, w * fb_pixel_size);
-        d += fb_line_len;
-        s += stride[0];
-        h--;
-    }
+    memcpy_pic2(d, src[0], w * fb_pixel_size, h, fb_line_len, stride[0], 1);
 
     return 0;
 }


More information about the MPlayer-cvslog mailing list