[MPlayer-dev-eng] [PATCH] vidix with fbdev

Jacek Rembisz jr178783 at zodiac.mimuw.edu.pl
Wed Jul 24 00:10:49 CEST 2002


Hi 

This is a small patch (quick hack) agains cvs.
It makes posible to use -vo fbdev:vidix.
Works at least for me.

Could someone check it please

Jacek

-------------- next part --------------
Index: libvo/vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.65
diff -u -r1.65 vo_fbdev.c
--- libvo/vo_fbdev.c	27 May 2002 17:54:46 -0000	1.65
+++ libvo/vo_fbdev.c	23 Jul 2002 22:16:21 -0000
@@ -1091,19 +1091,21 @@
 	    unsigned image_width,image_height,x_offset,y_offset;
 		image_width=width;
 		image_height=height;
-		if(zoom > 1)
+		if(zoom > 1 || 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,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 +1174,13 @@
 
 	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-dev-eng mailing list