diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-02 16:26:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-02 16:26:58 +0000 |
commit | 20d27407649f7a2e3fcaa700d6a6b71bd66df306 (patch) | |
tree | 178574cb80211e6e1c69c9313852f05afb80cf10 /gui/bitmap.c | |
parent | 14fc62d1176284a5e45b49b1467143ee55e86d2c (diff) | |
download | mpv-20d27407649f7a2e3fcaa700d6a6b71bd66df306.tar.bz2 mpv-20d27407649f7a2e3fcaa700d6a6b71bd66df306.tar.xz |
Remove unused function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23215 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui/bitmap.c')
-rw-r--r-- | gui/bitmap.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gui/bitmap.c b/gui/bitmap.c index a5b161029a..ccd99befa9 100644 --- a/gui/bitmap.c +++ b/gui/bitmap.c @@ -186,29 +186,3 @@ void Convert32to1( txSample * in,txSample * out,int adaptivlimit ) 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; - } - } - } -} |