Mercurial > mplayer.hg
changeset 23196:019bfce0c0dc
Make functions and variables not used outside bitmap.c static
author | reimar |
---|---|
date | Wed, 02 May 2007 16:24:23 +0000 |
parents | c627c0ec88cf |
children | 0e32cc1dda92 |
files | gui/bitmap.c gui/bitmap.h |
diffstat | 2 files changed, 7 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/bitmap.c Wed May 02 16:23:16 2007 +0000 +++ b/gui/bitmap.c Wed May 02 16:24:23 2007 +0000 @@ -12,7 +12,7 @@ #endif #include "libvo/fastmemcpy.h" -int pngRead( unsigned char * fname,txSample * bf ) +static int pngRead( unsigned char * fname,txSample * bf ) { int decode_ok; void *data; @@ -64,7 +64,7 @@ return !(decode_ok && bf->BPP); } -int conv24to32( txSample * bf ) +static int conv24to32( txSample * bf ) { unsigned char * tmpImage; int i,c; @@ -91,7 +91,7 @@ return 0; } -void bgr2rgb( txSample * bf ) +static void bgr2rgb( txSample * bf ) { unsigned char c; int i; @@ -104,7 +104,7 @@ } } -void Normalize( txSample * bf ) +static void Normalize( txSample * bf ) { int i; #ifndef WORDS_BIGENDIAN @@ -114,9 +114,9 @@ #endif } -unsigned char tmp[512]; +static unsigned char tmp[512]; -unsigned char * fExist( unsigned char * fname ) +static unsigned char * fExist( unsigned char * fname ) { FILE * fl; unsigned char ext[][6] = { ".png\0",".PNG\0" }; @@ -187,7 +187,7 @@ } } -void Convert1to32( txSample * in,txSample * out ) +static void Convert1to32( txSample * in,txSample * out ) { if ( in->Image == NULL ) return; out->Width=in->Width;
--- a/gui/bitmap.h Wed May 02 16:23:16 2007 +0000 +++ b/gui/bitmap.h Wed May 02 16:24:23 2007 +0000 @@ -11,8 +11,6 @@ } txSample; int bpRead( char * fname, txSample * bf ); -int conv24to32( txSample * bf ); void Convert32to1( txSample * in,txSample * out,int adaptivlimit ); -void Convert1to32( txSample * in,txSample * out ); #endif /* __BITMAP_H */