[Mplayer-cvslog] CVS: main/libvo vesa_lvo.c,1.2,1.3

Nick Kurshev nick at mplayer.dev.hu
Sat Nov 17 17:10:44 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv20771/main/libvo

Modified Files:
	vesa_lvo.c 
Log Message:
working draw_slice stuff

Index: vesa_lvo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vesa_lvo.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vesa_lvo.c	16 Nov 2001 18:43:25 -0000	1.2
+++ vesa_lvo.c	17 Nov 2001 16:10:41 -0000	1.3
@@ -34,7 +34,7 @@
 static uint8_t next_frame;
 static mga_vid_config_t mga_vid_config;
 static unsigned image_bpp,image_height,image_width;
-
+extern int verbose;
 
 #define PIXEL_SIZE() ((video_mode_info.BitsPerPixel+7)/8)
 #define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) )
@@ -162,7 +162,7 @@
         src+=stride[2];
         dest += bespitch2;
     }
-#else
+#elsif 0
 /* vo_xv stuff: slightly better for YV12 on radeon_vid */
  uint8_t *src;
  uint8_t *dst;
@@ -201,6 +201,18 @@
      src+=stride[1];
      dst+=image_width/2;
     }
+#else
+ uint8_t *src;
+ uint8_t *dst;
+    dst = lvo_mem + image_width * y + x;
+    src = image[0];
+    w <<= 1;
+    while(h--) {
+	memcpy(dst, src, w);
+	src += stride[0];
+	dst += stride[0];
+    }
+
 #endif
  return 0;
 }
@@ -235,5 +247,6 @@
 
 uint32_t vlvo_query_info(uint32_t format)
 {
+  if(verbose) printf("vesa_lvo: query_format was called: %x (%s)\n",format,vo_format_name(format));
   return 1;
 }




More information about the MPlayer-cvslog mailing list