[Mplayer-cvslog] CVS: main/vidix/drivers mga_vid.c,1.1,1.2
Arpi of Ize
arpi at mplayer.dev.hu
Sun Jan 13 23:14:09 CET 2002
Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv2672
Modified Files:
mga_vid.c
Log Message:
fixed to get something - needs a major rewrite
Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mga_vid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mga_vid.c 13 Jan 2002 16:54:32 -0000 1.1
+++ mga_vid.c 13 Jan 2002 22:14:06 -0000 1.2
@@ -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)
{
More information about the MPlayer-cvslog
mailing list