[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.7,1.8
Szabolcs Berecz
szabii at users.sourceforge.net
Tue Apr 3 16:03:54 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv16944
Modified Files:
vo_fbdev.c
Log Message:
report more info on fb
Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** vo_fbdev.c 2001/03/29 17:59:21 1.7
--- vo_fbdev.c 2001/04/03 14:03:51 1.8
***************
*** 53,62 ****
static int fb_init(void)
{
! int fd, vt;
char vt_name[11];
struct vt_stat vt_state;
struct vt_mode vt_mode;
- #if 0
/* get a free vt */
if ((fd = open("/dev/tty0", O_WRONLY, 0)) == -1) {
--- 53,63 ----
static int fb_init(void)
{
! int fd;
! #if 0
! int vt;
char vt_name[11];
struct vt_stat vt_state;
struct vt_mode vt_mode;
/* get a free vt */
if ((fd = open("/dev/tty0", O_WRONLY, 0)) == -1) {
***************
*** 69,74 ****
}
close(fd);
! #endif
! #if 0
/* open the vt */
snprintf(vt_name, 10, "/dev/tty%d", vt);
--- 70,74 ----
}
close(fd);
!
/* open the vt */
snprintf(vt_name, 10, "/dev/tty%d", vt);
***************
*** 87,92 ****
close(fd);
}
! #endif
! #if 0
/* switch to the new vt */
if (ioctl(vt_fd, VT_ACTIVATE, vt_active))
--- 87,91 ----
close(fd);
}
!
/* switch to the new vt */
if (ioctl(vt_fd, VT_ACTIVATE, vt_active))
***************
*** 178,181 ****
--- 177,186 ----
printf("fb_init: pixel per line: %d\n", screen_width / (fb_bpp / 8));
printf("fb_init: visual: %d\n", fb_fix_info.visual);
+ printf("fb_init: red: %d %d %d\n", fb_var_info.red.offset,
+ fb_var_info.red.length, fb_var_info.red.msb_right);
+ printf("fb_init: green: %d %d %d\n", fb_var_info.green.offset,
+ fb_var_info.green.length, fb_var_info.green.msb_right);
+ printf("fb_init: blue: %d %d %d\n", fb_var_info.blue.offset,
+ fb_var_info.blue.length, fb_var_info.blue.msb_right);
fb_init_done = 1;
***************
*** 217,220 ****
--- 222,226 ----
case IMGFMT_YV12:
goto supported;
+ /*
case IMGFMT_RGB32:
if (fb_bpp == 32)
***************
*** 233,236 ****
--- 239,243 ----
goto supported;
break;
+ */
case IMGFMT_BGR|32:
if (fb_bpp == 32)
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list