diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-13 22:14:06 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-13 22:14:06 +0000 |
commit | a2cb625f1983e7fc4ffcea533a9dd911f6084367 (patch) | |
tree | d478a95dacb8b64b5d04bfb16687776e8a156edb | |
parent | a4bcc2e89e8ea42882ef3b54a52092a634311e84 (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.c | 10 |
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) { |