[MPlayer-cvslog] r23215 - trunk/gui/bitmap.c

reimar subversion at mplayerhq.hu
Wed May 2 18:26:58 CEST 2007


Author: reimar
Date: Wed May  2 18:26:58 2007
New Revision: 23215

Log:
Remove unused function


Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	(original)
+++ trunk/gui/bitmap.c	Wed May  2 18:26:58 2007
@@ -186,29 +186,3 @@ void Convert32to1( txSample * in,txSampl
   if ( nothaveshape ) { free( out->Image ); out->Image=NULL; }
  }
 }
-
-static void Convert1to32( txSample * in,txSample * out )
-{
- if ( in->Image == NULL ) return;
- out->Width=in->Width;
- out->Height=in->Height;
- out->BPP=32;
- out->ImageSize=out->Width * out->Height * 4;
- out->Image=calloc( 1,out->ImageSize );
- mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[c1to32] imagesize: %d\n",out->ImageSize );
- if ( out->Image == NULL ) mp_msg( MSGT_GPLAYER,MSGL_WARN,MSGTR_NotEnoughMemoryC1To32 );
- {
-  int i,b,c=0; unsigned int * buf = NULL; unsigned char tmp = 0;
-  buf=(unsigned int *)out->Image;
-  for ( c=0,i=0;i < (int)(in->Width * in->Height / 8);i++ )
-   {
-    tmp=in->Image[i];
-    for ( b=0;b<8;b++ )
-     {
-      buf[c]=0;
-      if ( tmp&0x1 ) buf[c]=0xffffffff;
-      c++; tmp=tmp>>1;
-     }
-   }
- }
-}



More information about the MPlayer-cvslog mailing list