aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-13 22:14:06 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-13 22:14:06 +0000
commita2cb625f1983e7fc4ffcea533a9dd911f6084367 (patch)
treed478a95dacb8b64b5d04bfb16687776e8a156edb
parenta4bcc2e89e8ea42882ef3b54a52092a634311e84 (diff)
fixed to get something - needs a major rewrite
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4145 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--vidix/drivers/mga_vid.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/vidix/drivers/mga_vid.c b/vidix/drivers/mga_vid.c
index 13b594ac4f..20b45b5bb2 100644
--- a/vidix/drivers/mga_vid.c
+++ b/vidix/drivers/mga_vid.c
@@ -1161,6 +1161,10 @@ int vixConfigPlayback(vidix_playback_t *config)
sh = config->src.h;
dw = config->dest.w;
dh = config->dest.h;
+
+ config->dest.pitch.y=32;
+ config->dest.pitch.u=
+ config->dest.pitch.v=16;
printf("[mga] Setting up a %dx%d+%d+%d video window (src %dx%d) format %X\n",
dw, dh, x, y, sw, sh, config->fourcc);
@@ -1193,7 +1197,11 @@ int vixConfigPlayback(vidix_playback_t *config)
// config->frame_size = config->src.h*config->src.w+(config->src.w*config->src.h)/2;
frame_size = config->frame_size;
-
+
+ config->offset.y=0;
+ config->offset.v=((sw + 31) & ~31) * sh;
+ config->offset.u=config->offset.v+((sw + 31) & ~31) * sh /4;
+
mga_src_base = (mga_ram_size*0x100000-config->num_frames*config->frame_size);
if (mga_src_base < 0)
{