aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 16:22:17 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-16 16:22:17 +0000
commit6833ea6ab29a4789cc267d41fb72bd1b0341a77f (patch)
treef81cbf3afa57e0fea8c75043088069b945912a5f
parenta6207aaa68400ffcba36c7abc6a0cd31ed9428e7 (diff)
libvo: Mark functions not used outside of their files as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30598 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/spuenc.c4
-rw-r--r--libvo/sub.c6
-rw-r--r--libvo/vo_aa.c2
-rw-r--r--libvo/vo_directfb2.c14
-rw-r--r--libvo/vo_mpegpes.c7
-rw-r--r--libvo/vo_s3fb.c20
-rw-r--r--libvo/vo_zr.c12
-rw-r--r--libvo/x11_common.c2
8 files changed, 43 insertions, 24 deletions
diff --git a/libvo/spuenc.c b/libvo/spuenc.c
index 670a393bc2..6ba45a1b6c 100644
--- a/libvo/spuenc.c
+++ b/libvo/spuenc.c
@@ -231,7 +231,7 @@ pixbuf_encode_rle(int x, int y, int w, int h, char *inbuf, int stride,encodedat
}
-void
+static void
pixbuf_load_xpm( pixbuf* pb, char* xpm[] ) {
int colors, chrs, l, n;
char c[4], table[256];
@@ -271,7 +271,7 @@ pixbuf_load_xpm( pixbuf* pb, char* xpm[] ) {
}
}
-void
+static void
pixbuf_delete( pixbuf* pb ) {
free( pb->pixels );
}
diff --git a/libvo/sub.c b/libvo/sub.c
index d0abbf30cc..79780ce974 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -1090,8 +1090,10 @@ void free_osd_list(void){
#define FONT_LOAD_DEFER 6
-int vo_update_osd_ext(int dxs,int dys, int left_border, int top_border,
- int right_border, int bottom_border, int orig_w, int orig_h){
+static int vo_update_osd_ext(int dxs,int dys, int left_border, int top_border,
+ int right_border, int bottom_border, int orig_w,
+ int orig_h)
+{
mp_osd_obj_t* obj=vo_osd_list;
int chg=0;
#ifdef CONFIG_FREETYPE
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index cefd88c819..9d5d180bec 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -96,7 +96,7 @@ static struct SwsContext *sws=NULL;
int aaopt_osdcolor = AA_SPECIAL;
int aaopt_subcolor = AA_SPECIAL;
-void
+static void
resize(void){
/*
* this function is called by aa lib if windows resizes
diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c
index d2e8a4a7fa..e69c7ae932 100644
--- a/libvo/vo_directfb2.c
+++ b/libvo/vo_directfb2.c
@@ -138,7 +138,8 @@ static int field_parity = -1;
* implementation *
******************************/
-void unlock(void) {
+static void unlock(void)
+{
if (frame && framelocked) frame->Unlock(frame);
if (primary && primarylocked) primary->Unlock(primary);
}
@@ -310,7 +311,7 @@ static int preinit(const char *arg)
}
-DFBSurfacePixelFormat convformat(uint32_t format)
+static DFBSurfacePixelFormat convformat(uint32_t format)
{
// add more formats !!!
switch (format) {
@@ -350,9 +351,9 @@ unsigned int height;
int setsize;
} enum1_t;
-DFBEnumerationResult test_format_callback( unsigned int id,
- DFBDisplayLayerDescription desc,
- void *data)
+static DFBEnumerationResult test_format_callback(unsigned int id,
+ DFBDisplayLayerDescription desc,
+ void *data)
{
enum1_t *params =(enum1_t *)data;
IDirectFBDisplayLayer *layer;
@@ -448,7 +449,8 @@ int bpp;
} videomode_t;
-DFBEnumerationResult video_modes_callback( int width,int height,int bpp, void *data)
+static DFBEnumerationResult video_modes_callback(int width, int height,
+ int bpp, void *data)
{
videomode_t *params =(videomode_t *)data;
diff --git a/libvo/vo_mpegpes.c b/libvo/vo_mpegpes.c
index 94fe08f6f2..4813916fbd 100644
--- a/libvo/vo_mpegpes.c
+++ b/libvo/vo_mpegpes.c
@@ -220,11 +220,14 @@ static int my_write(unsigned char* data,int len){
return orig_len;
}
-void send_pes_packet(unsigned char* data,int len,int id,int timestamp){
+static void send_pes_packet(unsigned char* data, int len, int id, int timestamp)
+{
send_mpeg_pes_packet (data, len, id, timestamp, 1, my_write);
}
-void send_lpcm_packet(unsigned char* data,int len,int id,unsigned int timestamp,int freq_id){
+static void send_lpcm_packet(unsigned char* data, int len, int id,
+ unsigned int timestamp, int freq_id)
+{
send_mpeg_lpcm_packet(data, len, id, timestamp, freq_id, my_write);
}
diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c
index c45b2c66e4..94863ed5de 100644
--- a/libvo/vo_s3fb.c
+++ b/libvo/vo_s3fb.c
@@ -105,18 +105,21 @@ static void clear_screen(void);
#define OUTREG(mmreg, value) *(unsigned int *)(&v->mmio[mmreg]) = value
-int readcrtc(int reg) {
+static int readcrtc(int reg)
+{
outb(reg, 0x3d4);
return inb(0x3d5);
}
-void writecrtc(int reg, int value) {
+static void writecrtc(int reg, int value)
+{
outb(reg, 0x3d4);
outb(value, 0x3d5);
}
// enable S3 registers
-int enable(void) {
+static int enable(void)
+{
int fd;
if (v)
@@ -148,7 +151,8 @@ int enable(void) {
return 0;
}
-void disable(void) {
+static void disable(void)
+{
if (v) {
writecrtc(0x53, v->cr53);
writecrtc(0x39, v->cr39);
@@ -160,7 +164,10 @@ void disable(void) {
}
}
-int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int crop, int xres, int yres, int line_length, int offset) {
+static int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y,
+ int dst_w, int dst_h, int crop, int xres, int yres,
+ int line_length, int offset)
+{
int tmp, pitch, start, src_wc, src_hc, bpp;
if (format == 0 || format == 7)
@@ -227,7 +234,8 @@ int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y, int dst_w, in
return offset;
}
-void yuv_off(void) {
+static void yuv_off(void)
+{
writecrtc(0x67, readcrtc(0x67) & ~0xc);
memset(v->mmio + 0x8180, 0, 0x80);
OUTREG(0x81b8, 0x900);
diff --git a/libvo/vo_zr.c b/libvo/vo_zr.c
index e8d1f23e11..95b12eb243 100644
--- a/libvo/vo_zr.c
+++ b/libvo/vo_zr.c
@@ -121,7 +121,8 @@ static zr_info_t zr_info[ZR_MAX_DEVICES] = {
#define MJPEG_SIZE 1024*256
-int zoran_getcap(zr_info_t *zr) {
+static int zoran_getcap(zr_info_t *zr)
+{
char* dev = NULL;
if (zr->device)
@@ -196,7 +197,8 @@ int zoran_getcap(zr_info_t *zr) {
return 0;
}
-int init_zoran(zr_info_t *zr, int stretchx, int stretchy) {
+static int init_zoran(zr_info_t *zr, int stretchx, int stretchy)
+{
/* center the image, and stretch it as far as possible (try to keep
* aspect) and check if it fits */
if (zr->image_width > zr->vc.maxwidth) {
@@ -264,7 +266,8 @@ int init_zoran(zr_info_t *zr, int stretchx, int stretchy) {
return 0;
}
-void uninit_zoran(zr_info_t *zr) {
+static void uninit_zoran(zr_info_t *zr)
+{
if (zr->image) {
free(zr->image);
zr->image=NULL;
@@ -283,7 +286,8 @@ void uninit_zoran(zr_info_t *zr) {
close(zr->vdes);
}
-int zr_geometry_sane(geo_t *g, unsigned int width, unsigned int height) {
+static int zr_geometry_sane(geo_t *g, unsigned int width, unsigned int height)
+{
if (g->set) {
if (g->width%2 != 0 || g->height%2 != 0 ||
g->xoff%2 != 0 || g->yoff%2 != 0) {
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 78e71c74b2..c0278caa42 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -2122,7 +2122,7 @@ void vo_xv_get_max_img_dim( uint32_t * width, uint32_t * height )
* Outputs the content of |ck_handling| as a readable message.
*
*/
-void vo_xv_print_ck_info(void)
+static void vo_xv_print_ck_info(void)
{
mp_msg( MSGT_VO, MSGL_V, "[xv common] " );