[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.61,1.62

Michael Niedermayer CVS michael at mplayerhq.hu
Thu Jan 30 10:15:22 CET 2003


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

Modified Files:
	vo_svga.c 
Log Message:
fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)


Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- vo_svga.c	25 Jan 2003 09:30:13 -0000	1.61
+++ vo_svga.c	30 Jan 2003 09:15:09 -0000	1.62
@@ -517,7 +517,10 @@
   }	
 #endif
   if (pformat == IMGFMT_YV12) {
-    yuv2rgb_init(bpp, MODE_RGB);
+    if(bpp==4)
+        yuv2rgb_init(bpp|128, MODE_RGB);
+    else
+        yuv2rgb_init(bpp, MODE_RGB);
   }
 
   x_pos = (WIDTH - maxw) / 2;
@@ -748,7 +751,7 @@
       case 8 : if ((format == IMGFMT_RGB8 ) || (format == IMGFMT_BGR8))
                  return ((bpp_avail & BPP_8 ) ? 1 : 0);
 	       break;
-      case 4 : if ((format == IMGFMT_RGB4 ) || (format == IMGFMT_BGR4))
+      case 4 : if ((format == IMGFMT_RG4B ) || (format == IMGFMT_BG4B))
                  return ((bpp_avail & BPP_4 ) ? 1 : 0);
 	       break;
       case 1 : if ((format == IMGFMT_RGB1 ) || (format == IMGFMT_BGR1))



More information about the MPlayer-cvslog mailing list