diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-25 16:21:39 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-25 16:21:39 +0000 |
commit | 20b1e93745f6fa59a90c7261d61ebc107e61d173 (patch) | |
tree | 0df9f1a0241d287e886ea0c9194d96484c0409d0 /libvo | |
parent | cc54e54ca0c43485db6feb27e50de08f6d26dada (diff) |
disabel DR and UV swapping for g200 planar modes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5336 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/mga_common.c | 10 |
1 files changed, 3 insertions, 7 deletions
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))){ |