[Mplayer-cvslog] CVS: main/vidix/drivers genfb_vid.c,1.2,1.3

Alex Beregszaszi alex at mplayer.dev.hu
Wed Jan 23 20:33:26 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv5349

Modified Files:
	genfb_vid.c 
Log Message:
added cap.author

Index: genfb_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/genfb_vid.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- genfb_vid.c	16 Jan 2002 08:33:17 -0000	1.2
+++ genfb_vid.c	23 Jan 2002 19:33:24 -0000	1.3
@@ -27,10 +27,11 @@
 static vidix_capability_t genfb_cap =
 {
     "General Framebuffer",
+    "alex",
     TYPE_OUTPUT,
     { 0, 0, 0, 0 },
-    1024,
-    768,
+    2048,
+    2048,
     4,
     4,
     -1,
@@ -111,6 +112,13 @@
 
     info->num_frames = 2;
     info->frame_size = info->src.w*info->src.h+(info->src.w*info->src.h)/2;
+    info->dest.pitch.y = 32;
+    info->dest.pitch.u = info->dest.pitch.v = 16;
+    info->offsets[0] = 0;
+    info->offsets[1] = info->frame_size;
+    info->offset.y = 0;
+    info->offset.v = ((info->src.w+31) & ~31) * info->src.h;
+    info->offset.u = info->offset.v+((info->src.w+31) & ~31) * info->src.h/4;    
     info->dga_addr = malloc(info->num_frames*info->frame_size);   
     printf("[genfb] frame_size: %d, dga_addr: %x\n",
 	info->frame_size, info->dga_addr);
@@ -132,5 +140,6 @@
 
 int vixPlaybackFrameSelect(unsigned int frame)
 {
+    printf("[genfb] frameselect: %d\n", frame);
     return(0);
 }




More information about the MPlayer-cvslog mailing list