From c3782458eccc3c5883ee6c44bfefded234981498 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 6 Mar 2002 15:48:54 +0000 Subject: using mem2agpcpy_pic() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4950 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/mga_common.c | 55 +++++++++++++++--------------------------------------- 1 file changed, 15 insertions(+), 40 deletions(-) (limited to 'libvo/mga_common.c') diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 9e08fcdf74..6bfbd3de8a 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -43,13 +43,7 @@ draw_slice_g200(uint8_t *image[], int stride[], int width,int height,int x,int y bespitch = (mga_vid_config.src_width + 31) & ~31; dest = vid_data + bespitch*y + x; - src = image[0]; - for(h=0; h < height; h++) - { - memcpy(dest, src, width); - src += stride[0]; - dest += bespitch; - } + mem2agpcpy_pic(dest, image[0], width, height, bespitch, stride[0]); width/=2;height/=2;x/=2;y/=2; @@ -121,38 +115,32 @@ draw_slice_g400(uint8_t *image[], int stride[], int w,int h,int x,int y) bespitch2 = bespitch/2; dest = vid_data + bespitch * y + x; - src = image[0]; - for(i=0;i