From 20b1e93745f6fa59a90c7261d61ebc107e61d173 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 25 Mar 2002 16:21:39 +0000 Subject: disabel DR and UV swapping for g200 planar modes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5336 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/mga_common.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libvo') diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 64b64571b3..53b5845d3e 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -85,13 +85,8 @@ draw_slice_g200(uint8_t *image[], int stride[], int width,int height,int x,int y width/=2;height/=2;x/=2;y/=2; dest = vid_data + bespitch*mga_vid_config.src_height + bespitch*y + 2*x; - if(mga_vid_config.format==MGA_VID_FORMAT_YV12){ - src = image[1]; - src2 = image[2]; - } else { - src = image[2]; - src2 = image[1]; - } + src = image[1]; + src2 = image[2]; for(h=0; h < height; h++) { @@ -238,6 +233,7 @@ get_image(mp_image_t *mpi){ // printf("mga: get_image() called\n"); if(mpi->type==MP_IMGTYPE_STATIC && mga_vid_config.num_frames>1) return VO_FALSE; // it is not static if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram + if(mga_vid_config.card_type == MGA_G200 && mpi->flags&MP_IMGFLAG_PLANAR) return VO_FALSE; // printf("width=%d vs. bespitch=%d, flags=0x%X \n",mpi->width,bespitch,mpi->flags); if((mpi->width==bespitch) || (mpi->flags&(MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_ACCEPT_WIDTH))){ -- cgit v1.2.3