[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.18,1.19

Zoltan Mark Vician se7encode at users.sourceforge.net
Tue Apr 17 21:06:01 CEST 2001


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

Modified Files:
	vo_svga.c 
Log Message:
Thanx to Arpi, There is no more YUY2 bug.

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** vo_svga.c	2001/04/17 17:43:40	1.18
--- vo_svga.c	2001/04/17 19:05:59	1.19
***************
*** 351,373 ****
    if (vo_dbpp) {
      switch (vo_dbpp) {
!       case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR|32))
                   return ((bpp_avail & BPP_32) ? 1 : 0);
  	       break;
!       case 24: if ((format == IMGFMT_RGB24) || (format == IMGFMT_BGR|24))
                   return ((bpp_avail & BPP_24) ? 1 : 0);
  	       break;
!       case 16: if ((format == IMGFMT_RGB16) || (format == IMGFMT_BGR|16))
                   return ((bpp_avail & BPP_16) ? 1 : 0);
  	       break;
!       case 15: if ((format == IMGFMT_RGB15) || (format == IMGFMT_BGR|15))
                   return ((bpp_avail & BPP_15) ? 1 : 0);
  	       break;
      }
!   } else
        switch (format) {
          case IMGFMT_RGB32: 
!         case IMGFMT_BGR|32: return ((bpp_avail & BPP_32) ? 1 : 0); break;
          case IMGFMT_RGB24: 
!         case IMGFMT_BGR|24: {
            res = (bpp_avail & BPP_24) ? 1 : 0;
            if (!res)
--- 351,373 ----
    if (vo_dbpp) {
      switch (vo_dbpp) {
!       case 32: if ((format == IMGFMT_RGB32) || (format == IMGFMT_BGR32))
                   return ((bpp_avail & BPP_32) ? 1 : 0);
  	       break;
!       case 24: if ((format == IMGFMT_RGB24) || (format == IMGFMT_BGR24))
                   return ((bpp_avail & BPP_24) ? 1 : 0);
  	       break;
!       case 16: if ((format == IMGFMT_RGB16) || (format == IMGFMT_BGR16))
                   return ((bpp_avail & BPP_16) ? 1 : 0);
  	       break;
!       case 15: if ((format == IMGFMT_RGB15) || (format == IMGFMT_BGR15))
                   return ((bpp_avail & BPP_15) ? 1 : 0);
  	       break;
      }
!   } else {
        switch (format) {
          case IMGFMT_RGB32: 
!         case IMGFMT_BGR32: return ((bpp_avail & BPP_32) ? 1 : 0); break;
          case IMGFMT_RGB24: 
!         case IMGFMT_BGR24: {
            res = (bpp_avail & BPP_24) ? 1 : 0;
            if (!res)
***************
*** 376,382 ****
          } break;
          case IMGFMT_RGB16: 
!         case IMGFMT_BGR|16: return ((bpp_avail & BPP_16) ? 1 : 0); break;
          case IMGFMT_RGB15: 
!         case IMGFMT_BGR|15: {
            res = (bpp_avail & BPP_15) ? 1 : 0;
            if (!res)
--- 376,382 ----
          } break;
          case IMGFMT_RGB16: 
!         case IMGFMT_BGR16: return ((bpp_avail & BPP_16) ? 1 : 0); break;
          case IMGFMT_RGB15: 
!         case IMGFMT_BGR15: {
            res = (bpp_avail & BPP_15) ? 1 : 0;
            if (!res)
***************
*** 386,389 ****
--- 386,390 ----
          case IMGFMT_YV12: return (1); break;
        }
+     }
    return (0);
  }


_______________________________________________
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