summaryrefslogtreecommitdiffstats
path: root/libvo/mga_common.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-25 16:21:39 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-25 16:21:39 +0000
commit20b1e93745f6fa59a90c7261d61ebc107e61d173 (patch)
tree0df9f1a0241d287e886ea0c9194d96484c0409d0 /libvo/mga_common.c
parentcc54e54ca0c43485db6feb27e50de08f6d26dada (diff)
downloadmpv-20b1e93745f6fa59a90c7261d61ebc107e61d173.tar.bz2
mpv-20b1e93745f6fa59a90c7261d61ebc107e61d173.tar.xz
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/mga_common.c')
-rw-r--r--libvo/mga_common.c10
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))){