diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-26 16:20:15 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-06-26 16:20:15 +0000 |
commit | 95dcb653798ef9b070d58e8958830bee3ddeca72 (patch) | |
tree | 2a07d169a481b184bcbf833e4870ed0ca25ae400 | |
parent | 32a7d61acc6df033b55a341b38afd5d709e37882 (diff) | |
download | mpv-95dcb653798ef9b070d58e8958830bee3ddeca72.tar.bz2 mpv-95dcb653798ef9b070d58e8958830bee3ddeca72.tar.xz |
Use memcpy_pic2 instead of reimplementing it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29402 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_fbdev.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c index 8c668fe8b4..24870a3c96 100644 --- a/libvo/vo_fbdev.c +++ b/libvo/vo_fbdev.c @@ -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; } |