[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.12,1.13

Zoltan Mark Vician se7encode at users.sourceforge.net
Sat Apr 14 20:19:42 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv12653

Modified Files:
	vo_svga.c 
Log Message:

-bpp added.

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** vo_svga.c	2001/04/14 17:51:37	1.12
--- vo_svga.c	2001/04/14 18:19:40	1.13
***************
*** 90,95 ****
  
    pformat = format;
!   if (format == IMGFMT_YV12) bpp = 32;
!   else bpp = format & 255;
    if (wid > 800)
      switch (bpp) {
--- 90,120 ----
  
    pformat = format;
!   
!   // -bpp check
!   if (!vo_dbpp) {
!     if (format == IMGFMT_YV12) bpp = 32;
!     else bpp = format & 255;
!   } else {
!       bpp = vo_dbpp;
!       switch (bpp) {
!         case 32: if (!(vid_modes[_640x480x16M32] | vid_modes[_800x600x16M32] | vid_modes[_1024x768x16M32])) {
! 	           printf("vo_svga: %dbpp not supported by HW or SVGAlib",bpp);
! 		   return(1);
!                  }
!         case 24: if (!(vid_modes[_640x480x16M] | vid_modes[_800x600x16M] | vid_modes[_1024x768x16M])) {
! 	           printf("vo_svga: %dbpp not supported by HW or SVGAlib",bpp);
! 		   return(1);
!                  }
!         case 16: if (!(vid_modes[_640x480x64K] | vid_modes[_800x600x64K] | vid_modes[_1024x768x64K])) {
! 	           printf("vo_svga: %dbpp not supported by HW or SVGAlib",bpp);
! 		   return(1);
!                  }
!         case 15: if (!(vid_modes[_640x480x32K] | vid_modes[_800x600x32K] | vid_modes[_1024x768x32K])) {
! 	           printf("vo_svga: %dbpp not supported by HW or SVGAlib",bpp);
! 		   return(1);
!                  }
!       }
!     }
!   
    if (wid > 800)
      switch (bpp) {


_______________________________________________
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