[MPlayer-cvslog] r33303 - trunk/libvo/vo_fbdev2.c
reimar
subversion at mplayerhq.hu
Fri Apr 22 19:03:04 CEST 2011
Author: reimar
Date: Fri Apr 22 19:03:04 2011
New Revision: 33303
Log:
Use memcpy_pic instead of reimplementing it.
Modified:
trunk/libvo/vo_fbdev2.c
Modified: trunk/libvo/vo_fbdev2.c
==============================================================================
--- trunk/libvo/vo_fbdev2.c Fri Apr 22 18:53:01 2011 (r33302)
+++ trunk/libvo/vo_fbdev2.c Fri Apr 22 19:03:04 2011 (r33303)
@@ -358,13 +358,8 @@ static int draw_slice(uint8_t *src[], in
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 check_events(void)
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
}
More information about the MPlayer-cvslog
mailing list