[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.17,1.18

Felix Buenemann atmosfear at users.sourceforge.net
Fri May 11 16:41:49 CEST 2001


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

Modified Files:
	vo_x11.c 
Log Message:
Added support for flipped BGR/RGB via -flip cmdline switch.


Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** vo_x11.c	2001/04/24 11:42:04	1.17
--- vo_x11.c	2001/05/11 14:41:47	1.18
***************
*** 90,93 ****
--- 90,95 ----
  static int CompletionType=-1;
  
+ static int Flip_Flag;
+ 
  static void InstallXErrorHandler()
  {
***************
*** 112,118 ****
  }
  
! static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t fullscreen,char *title,uint32_t format )
  {
   int screen;
   int interval, prefer_blank, allow_exp, nothing;
   unsigned int fg,bg;
--- 114,121 ----
  }
  
! static uint32_t init( uint32_t width,uint32_t height,uint32_t d_width,uint32_t d_height,uint32_t flags,char *title,uint32_t format )
  {
   int screen;
+  int fullscreen=0;
   int interval, prefer_blank, allow_exp, nothing;
   unsigned int fg,bg;
***************
*** 149,152 ****
--- 152,158 ----
   hint.width=image_width;
   hint.height=image_height;
+  
+  if( flags&0x01 ) fullscreen = 1;
+  if( flags&0x08 ) Flip_Flag = 1;
  
  #ifdef HAVE_XF86VM
***************
*** 435,438 ****
--- 441,445 ----
    else
     {
+     int i;
      int sbpp=( ( image_format&0xFF )+7 )/8;
      int dbpp=( bpp+7 )/8;
***************
*** 491,495 ****
        else
  #endif
!        { memcpy( d,s,sbpp*image_width*image_height ); }
     }
     else
--- 498,514 ----
        else
  #endif
!        {
!         if( Flip_Flag )
!          {
!           s+=sbpp*image_width*image_height;
! 	  for( i=0;i < image_height;i++ )
!            {
! 	    s-=sbpp*image_width;
! 	    memcpy( d,s,sbpp*image_width );
! 	    d+=sbpp*image_width;
! 	   }
!          }
!         else memcpy( d,s,sbpp*image_width*image_height );
!        }
     }
     else


_______________________________________________
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