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

Arpi of Ize arpi at mplayerhq.hu
Tue Jul 30 20:53:00 CEST 2002


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

Modified Files:
	vo_fbdev.c 
Log Message:
- fixed size/aspect for -fs
- use vidix's query_format for vidix mode (10l bug)
patch by Jacek Rembisz <jr178783 at zodiac.mimuw.edu.pl>


Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- vo_fbdev.c	27 May 2002 17:54:46 -0000	1.65
+++ vo_fbdev.c	30 Jul 2002 18:52:57 -0000	1.66
@@ -902,15 +902,15 @@
 }
 
 static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
-		uint32_t d_height, uint32_t fullscreen, char *title,
+		uint32_t d_height, uint32_t flags, char *title,
 		uint32_t format,const vo_tune_info_t *info)
 {
 	struct fb_cmap *cmap;
-	int vm = fullscreen & 0x02;
-	int zoom = fullscreen & 0x04;
+	int vm = flags & 0x02;
+	int zoom = flags & 0x04;
 
-	fs = fullscreen & 0x01;
-	flip = fullscreen & 0x08;
+	fs = flags & 0x01;
+	flip = flags & 0x08;
 
 	if(pre_init_err == -2)
 	{
@@ -1089,21 +1089,15 @@
 	if(vidix_name)
 	{
 	    unsigned image_width,image_height,x_offset,y_offset;
+	    if(zoom || fs){
+		aspect_save_orig(width,height);
+		aspect_save_prescale(d_width,d_height);
+		aspect_save_screenres(fb_xres,fb_yres);
+		aspect(&image_width,&image_height,fs ? A_ZOOM : A_NOZOOM);
+	    } else {
 		image_width=width;
 		image_height=height;
-		if(zoom > 1)
-		{
-		        aspect_save_orig(width,height);
-			aspect_save_prescale(d_width,d_height);
-			aspect_save_screenres(fb_xres,fb_yres);
-			aspect(&image_width,&image_height,A_ZOOM);
-		}
-		else
-		if(fs)
-		{
-			image_width = fb_xres;
-			image_height = fb_yres;
-		}
+	    }
 		if(fb_xres > image_width)
 		    x_offset = (fb_xres - image_width) / 2;
 		else x_offset = 0;
@@ -1172,6 +1166,10 @@
 
 	if (!fb_preinit())
 		return 0;
+#ifdef CONFIG_VIDIX
+	if(vidix_name)
+		return (vidix_query_fourcc(format));
+#endif
 	if ((format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
 		int bpp = format & 0xff;
 




More information about the MPlayer-cvslog mailing list