[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.64,1.65

Alex Beregszaszi alex at mplayerhq.hu
Mon May 27 19:54:49 CEST 2002


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

Modified Files:
	vo_fbdev.c 
Log Message:
query_format revised

Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- vo_fbdev.c	27 May 2002 15:40:25 -0000	1.64
+++ vo_fbdev.c	27 May 2002 17:54:46 -0000	1.65
@@ -1168,7 +1168,7 @@
 
 static uint32_t query_format(uint32_t format)
 {
-	int ret = 0x4; /* osd/sub is supported on every bpp */
+	int ret = VFCAP_OSD|VFCAP_CSP_SUPPORTED; /* osd/sub is supported on every bpp */
 
 	if (!fb_preinit())
 		return 0;
@@ -1176,14 +1176,14 @@
 		int bpp = format & 0xff;
 
 		if (bpp == fb_bpp)
-			return ret|0x2;
+			return ret|VFCAP_CSP_SUPPORTED_BY_HW;
 		else if (bpp == 15 && fb_bpp == 16)
-			return ret|0x1;
+			return ret;
 		else if (bpp == 24 && fb_bpp == 32)
-			return ret|0x1;
+			return ret;
 	}
 	if (format == IMGFMT_YV12)
-		return ret|0x1;
+		return ret;
 	return 0;
 }
 




More information about the MPlayer-cvslog mailing list