[Mplayer-cvslog] CVS: main/libvo vo_mga.c,1.23,1.24
Arpi of Ize
arpi at mplayer.dev.hu
Sat Feb 9 02:10:25 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_3dfx.c,1.11,1.12 vo_aa.c,1.20,1.21 vo_dga.c,1.40,1.41 vo_directfb.c,1.10,1.11 vo_dxr3.c,1.45,1.46 vo_fbdev.c,1.60,1.61 vo_fsdga.c,1.9,1.10 vo_ggi.c,1.14,1.15 vo_gl.c,1.21,1.22 vo_gl2.c,1.14,1.15 vo_md5.c,1.10,1.11 vo_mga.c,1.24,1.25 vo_mpegpes.c,1.19,1.20 vo_null.c,1.6,1.7 vo_odivx.c,1.10,1.11 vo_pgm.c,1.10,1.11 vo_png.c,1.12,1.13 vo_sdl.c,1.66,1.67 vo_svga.c,1.42,1.43 vo_syncfb.c,1.10,1.11 vo_tdfxfb.c,1.6,1.7 vo_vesa.c,1.66,1.67 vo_x11.c,1.59,1.60 vo_xmga.c,1.44,1.45 vo_xv.c,1.52,1.53 vo_xvidix.c,1.19,1.20 vo_zr.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv30520
Modified Files:
vo_mga.c
Log Message:
screensize from fbdev ioctl - patch by Jason Lunz <j at falooley.org>
Index: vo_mga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_mga.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- vo_mga.c 9 Feb 2002 00:47:26 -0000 1.23
+++ vo_mga.c 9 Feb 2002 01:10:22 -0000 1.24
@@ -38,6 +38,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
+#include <linux/fb.h>
#include "drivers/mga_vid.h"
#include "sub.h"
@@ -54,10 +55,29 @@
#include "mga_common.c"
+#define FBDEV "/dev/fb0"
+
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 format,const vo_tune_info_t *info)
{
char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
+
+ if(!vo_screenwidth || !vo_screenheight) {
+ int fd;
+ struct fb_var_screeninfo fbinfo;
+
+ if(-1 != (fd = open(FBDEV, O_RDONLY))) {
+ if(0 == ioctl(fd, FBIOGET_VSCREENINFO, &fbinfo)) {
+ if(!vo_screenwidth) vo_screenwidth = fbinfo.xres;
+ if(!vo_screenheight) vo_screenheight = fbinfo.yres;
+ } else {
+ perror("FBIOGET_VSCREENINFO");
+ }
+ close(fd);
+ } else {
+ perror(FBDEV);
+ }
+ }
if(vo_screenwidth && vo_screenheight){
aspect_save_orig(width,height);
- Previous message: [Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.36,1.37
- Next message: [Mplayer-cvslog] CVS: main/libvo vo_3dfx.c,1.11,1.12 vo_aa.c,1.20,1.21 vo_dga.c,1.40,1.41 vo_directfb.c,1.10,1.11 vo_dxr3.c,1.45,1.46 vo_fbdev.c,1.60,1.61 vo_fsdga.c,1.9,1.10 vo_ggi.c,1.14,1.15 vo_gl.c,1.21,1.22 vo_gl2.c,1.14,1.15 vo_md5.c,1.10,1.11 vo_mga.c,1.24,1.25 vo_mpegpes.c,1.19,1.20 vo_null.c,1.6,1.7 vo_odivx.c,1.10,1.11 vo_pgm.c,1.10,1.11 vo_png.c,1.12,1.13 vo_sdl.c,1.66,1.67 vo_svga.c,1.42,1.43 vo_syncfb.c,1.10,1.11 vo_tdfxfb.c,1.6,1.7 vo_vesa.c,1.66,1.67 vo_x11.c,1.59,1.60 vo_xmga.c,1.44,1.45 vo_xv.c,1.52,1.53 vo_xvidix.c,1.19,1.20 vo_zr.c,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list