Mercurial > mplayer.hg
changeset 4144:501620ec9b40
fixed to get something - needs a major rewrite
author | arpi |
---|---|
date | Sun, 13 Jan 2002 22:14:06 +0000 |
parents | d416ca893952 |
children | c66fddd8867c |
files | vidix/drivers/mga_vid.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vidix/drivers/mga_vid.c Sun Jan 13 20:51:49 2002 +0000 +++ b/vidix/drivers/mga_vid.c Sun Jan 13 22:14:06 2002 +0000 @@ -1161,6 +1161,10 @@ 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 @@ // 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) {