mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Make some functions static.
Patch by Stefan Huehner, stefan at huehner org. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18955 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
01d5289203
commit
5c9b90d7a1
@ -234,7 +234,7 @@ static int check_font(font_desc_t *desc, float ppem, int padding, int pic_idx,
|
||||
}
|
||||
|
||||
// general outline
|
||||
void outline(
|
||||
static void outline(
|
||||
unsigned char *s,
|
||||
unsigned char *t,
|
||||
int width,
|
||||
@ -277,7 +277,7 @@ void outline(
|
||||
|
||||
|
||||
// 1 pixel outline
|
||||
void outline1(
|
||||
static void outline1(
|
||||
unsigned char *s,
|
||||
unsigned char *t,
|
||||
int width,
|
||||
@ -315,7 +315,7 @@ void outline1(
|
||||
}
|
||||
|
||||
// "0 pixel outline"
|
||||
void outline0(
|
||||
static void outline0(
|
||||
unsigned char *s,
|
||||
unsigned char *t,
|
||||
int width,
|
||||
@ -330,7 +330,7 @@ void outline0(
|
||||
}
|
||||
|
||||
// gaussian blur
|
||||
void blur(
|
||||
static void blur(
|
||||
unsigned char *buffer,
|
||||
unsigned short *tmp2,
|
||||
int width,
|
||||
@ -654,7 +654,7 @@ static int prepare_font(font_desc_t *desc, FT_Face face, float ppem, int pic_idx
|
||||
|
||||
}
|
||||
|
||||
int generate_tables(font_desc_t *desc, double thickness, double radius)
|
||||
static int generate_tables(font_desc_t *desc, double thickness, double radius)
|
||||
{
|
||||
int width = desc->max_height;
|
||||
int height = desc->max_width;
|
||||
|
@ -765,7 +765,7 @@ extern void vo_draw_alpha_init(void);
|
||||
|
||||
mp_osd_obj_t* vo_osd_list=NULL;
|
||||
|
||||
mp_osd_obj_t* new_osd_obj(int type){
|
||||
static mp_osd_obj_t* new_osd_obj(int type){
|
||||
mp_osd_obj_t* osd=malloc(sizeof(mp_osd_obj_t));
|
||||
memset(osd,0,sizeof(mp_osd_obj_t));
|
||||
osd->next=vo_osd_list;
|
||||
|
@ -136,8 +136,8 @@ resize(void){
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
osdmessage(int duration, int deko, char *fmt, ...)
|
||||
static void
|
||||
osdmessage(int duration, int deko, const char *fmt, ...)
|
||||
{
|
||||
/*
|
||||
* for outputting a centered string at the bottom
|
||||
@ -163,8 +163,8 @@ osdmessage(int duration, int deko, char *fmt, ...)
|
||||
posbar[0]='\0';
|
||||
}
|
||||
|
||||
void
|
||||
osdpercent(int duration, int deko, int min, int max, int val, char * desc, char * unit)
|
||||
static void
|
||||
osdpercent(int duration, int deko, int min, int max, int val, const char * desc, const char * unit)
|
||||
{
|
||||
/*
|
||||
* prints a bar for setting values
|
||||
@ -190,7 +190,7 @@ osdpercent(int duration, int deko, int min, int max, int val, char * desc, char
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
printosdtext(void)
|
||||
{
|
||||
if(osd_text_length > 0 && !vo_osd_text) {
|
||||
@ -220,7 +220,7 @@ printosdtext(void)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
printosdprogbar(void){
|
||||
/* print mplayer osd-progbar */
|
||||
if (vo_osd_progbar_type!=-1){
|
||||
@ -574,7 +574,7 @@ draw_osd(void){
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
getcolor(char * s){
|
||||
int i;
|
||||
char * rest;
|
||||
|
@ -98,7 +98,7 @@ static int framenum = 0;
|
||||
* returns, everything went well.
|
||||
*/
|
||||
|
||||
void jpeg_mkdir(char *buf, int verbose) {
|
||||
static void jpeg_mkdir(char *buf, int verbose) {
|
||||
struct stat stat_p;
|
||||
|
||||
#ifndef __MINGW32__
|
||||
|
@ -85,7 +85,7 @@ int framenum = 0;
|
||||
* \return nothing It does not return.
|
||||
*/
|
||||
|
||||
void md5sum_write_error(void) {
|
||||
static void md5sum_write_error(void) {
|
||||
mp_msg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name);
|
||||
exit_player(MSGTR_Exit_error);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
|
||||
}
|
||||
|
||||
|
||||
struct pngdata create_png (char * fname, int image_width, int image_height, int swapped)
|
||||
static struct pngdata create_png (char * fname, int image_width, int image_height, int swapped)
|
||||
{
|
||||
struct pngdata png;
|
||||
|
||||
|
@ -96,7 +96,7 @@ char *pnm_file_extension = NULL;
|
||||
* \return nothing It does not return.
|
||||
*/
|
||||
|
||||
void pnm_write_error(void) {
|
||||
static void pnm_write_error(void) {
|
||||
mp_msg(MSGT_VO, MSGL_ERR, MSGTR_ErrorWritingFile, info.short_name);
|
||||
exit_player(MSGTR_Exit_error);
|
||||
}
|
||||
@ -197,7 +197,7 @@ static int preinit(const char *arg)
|
||||
* returns, everything went well.
|
||||
*/
|
||||
|
||||
void pnm_mkdir(char *buf, int verbose) {
|
||||
static void pnm_mkdir(char *buf, int verbose) {
|
||||
struct stat stat_p;
|
||||
|
||||
/* Silly MING32 bug workaround */
|
||||
@ -298,7 +298,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
* \return none The player will exit if anything goes wrong.
|
||||
*/
|
||||
|
||||
void pnm_write_pnm(FILE *outfile, mp_image_t *mpi)
|
||||
static void pnm_write_pnm(FILE *outfile, mp_image_t *mpi)
|
||||
{
|
||||
uint32_t w = mpi->w;
|
||||
uint32_t h = mpi->h;
|
||||
@ -433,7 +433,7 @@ void pnm_write_pnm(FILE *outfile, mp_image_t *mpi)
|
||||
* \return none The player will exit if anything goes wrong.
|
||||
*/
|
||||
|
||||
void pnm_write_image(mp_image_t *mpi)
|
||||
static void pnm_write_image(mp_image_t *mpi)
|
||||
{
|
||||
static int framenum = 0, framecounter = 0, subdircounter = 0;
|
||||
char buf[BUFLENGTH];
|
||||
|
@ -303,7 +303,7 @@ int page;
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
int bpp_from_vminfo(vga_modeinfo *vminfo){
|
||||
static int bpp_from_vminfo(vga_modeinfo *vminfo){
|
||||
switch(vminfo->colors){
|
||||
case 2: return 1;
|
||||
case 16: return 4;
|
||||
@ -315,7 +315,7 @@ int bpp_from_vminfo(vga_modeinfo *vminfo){
|
||||
return 0;
|
||||
}
|
||||
|
||||
int find_best_svga_mode(int req_w,int req_h, int req_bpp){
|
||||
static int find_best_svga_mode(int req_w,int req_h, int req_bpp){
|
||||
int badness,prev_badness;
|
||||
int bestmode,lastmode;
|
||||
int i;
|
||||
|
@ -559,7 +559,7 @@ void vo_uninit(void)
|
||||
extern void mplayer_put_key(int code);
|
||||
|
||||
#ifdef XF86XK_AudioPause
|
||||
void vo_x11_putkey_ext(int keysym)
|
||||
static void vo_x11_putkey_ext(int keysym)
|
||||
{
|
||||
switch (keysym)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user