summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-02 16:24:23 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-02 16:24:23 +0000
commit14fc62d1176284a5e45b49b1467143ee55e86d2c (patch)
treef96838acabfac3c4faaac3ff01f19c9607b09347 /gui
parent4b0fd35ac20dffa6fbc68953becbe030eb408403 (diff)
downloadmpv-14fc62d1176284a5e45b49b1467143ee55e86d2c.tar.bz2
mpv-14fc62d1176284a5e45b49b1467143ee55e86d2c.tar.xz
Make functions and variables not used outside bitmap.c static
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23214 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui')
-rw-r--r--gui/bitmap.c14
-rw-r--r--gui/bitmap.h2
2 files changed, 7 insertions, 9 deletions
diff --git a/gui/bitmap.c b/gui/bitmap.c
index 766d3594b9..a5b161029a 100644
--- a/gui/bitmap.c
+++ b/gui/bitmap.c
@@ -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 @@ int pngRead( unsigned char * fname,txSample * bf )
return !(decode_ok && bf->BPP);
}
-int conv24to32( txSample * bf )
+static int conv24to32( txSample * bf )
{
unsigned char * tmpImage;
int i,c;
@@ -91,7 +91,7 @@ int conv24to32( txSample * bf )
return 0;
}
-void bgr2rgb( txSample * bf )
+static void bgr2rgb( txSample * bf )
{
unsigned char c;
int i;
@@ -104,7 +104,7 @@ void bgr2rgb( txSample * bf )
}
}
-void Normalize( txSample * bf )
+static void Normalize( txSample * bf )
{
int i;
#ifndef WORDS_BIGENDIAN
@@ -114,9 +114,9 @@ void Normalize( txSample * bf )
#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 Convert32to1( txSample * in,txSample * out,int adaptivlimit )
}
}
-void Convert1to32( txSample * in,txSample * out )
+static void Convert1to32( txSample * in,txSample * out )
{
if ( in->Image == NULL ) return;
out->Width=in->Width;
diff --git a/gui/bitmap.h b/gui/bitmap.h
index 28b98ef9f9..94bc07546c 100644
--- a/gui/bitmap.h
+++ b/gui/bitmap.h
@@ -11,8 +11,6 @@ typedef struct _txSample
} 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 */