# HG changeset patch # User mru # Date 1267915001 0 # Node ID 1cd8731bbe7fd40777611de30ec5eab3a4f8652c # Parent b57409c0c28682b5144b560200f0f99e715ad0b8 Make some functions static These functions are not used outside their respective files, and they lack a prototype in a header. diff -r b57409c0c286 -r 1cd8731bbe7f atrac1.c --- a/atrac1.c Sat Mar 06 22:36:36 2010 +0000 +++ b/atrac1.c Sat Mar 06 22:36:41 2010 +0000 @@ -252,7 +252,7 @@ } -void at1_subband_synthesis(AT1Ctx *q, AT1SUCtx* su, float *pOut) +static void at1_subband_synthesis(AT1Ctx *q, AT1SUCtx* su, float *pOut) { float temp[256]; float iqmf_temp[512 + 46]; diff -r b57409c0c286 -r 1cd8731bbe7f mpegaudiodec.c --- a/mpegaudiodec.c Sat Mar 06 22:36:36 2010 +0000 +++ b/mpegaudiodec.c Sat Mar 06 22:36:41 2010 +0000 @@ -101,7 +101,7 @@ * Convert region offsets to region sizes and truncate * size to big_values. */ -void ff_region_offset2size(GranuleDef *g){ +static void ff_region_offset2size(GranuleDef *g){ int i, k, j=0; g->region_size[2] = (576 / 2); for(i=0;i<3;i++) { @@ -111,7 +111,7 @@ } } -void ff_init_short_region(MPADecodeContext *s, GranuleDef *g){ +static void ff_init_short_region(MPADecodeContext *s, GranuleDef *g){ if (g->block_type == 2) g->region_size[0] = (36 / 2); else { @@ -125,7 +125,7 @@ g->region_size[1] = (576 / 2); } -void ff_init_long_region(MPADecodeContext *s, GranuleDef *g, int ra1, int ra2){ +static void ff_init_long_region(MPADecodeContext *s, GranuleDef *g, int ra1, int ra2){ int l; g->region_size[0] = band_index_long[s->sample_rate_index][ra1 + 1] >> 1; @@ -135,7 +135,7 @@ band_index_long[s->sample_rate_index][l] >> 1; } -void ff_compute_band_indexes(MPADecodeContext *s, GranuleDef *g){ +static void ff_compute_band_indexes(MPADecodeContext *s, GranuleDef *g){ if (g->block_type == 2) { if (g->switch_point) { /* if switched mode, we handle the 36 first samples as diff -r b57409c0c286 -r 1cd8731bbe7f rdft.c --- a/rdft.c Sat Mar 06 22:36:36 2010 +0000 +++ b/rdft.c Sat Mar 06 22:36:41 2010 +0000 @@ -80,7 +80,7 @@ * the two real FFTs into one complex FFT. Unmangle the results. * ref: http://www.engineeringproductivitytools.com/stuff/T0001/PT10.HTM */ -void ff_rdft_calc_c(RDFTContext* s, FFTSample* data) +static void ff_rdft_calc_c(RDFTContext* s, FFTSample* data) { int i, i1, i2; FFTComplex ev, od;