Mercurial > libavcodec.hg
changeset 11324:5cc6cb5167d8 libavcodec
Make av_build_filter static (and remove av_): It is not used outside resample2.c.
author | cehoyos |
---|---|
date | Sun, 28 Feb 2010 19:58:26 +0000 |
parents | 7089198d1d10 |
children | c4c8c8c426eb |
files | resample2.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/resample2.c Sun Feb 28 19:05:51 2010 +0000 +++ b/resample2.c Sun Feb 28 19:58:26 2010 +0000 @@ -95,7 +95,7 @@ * @param scale wanted sum of coefficients for each filter * @param type 0->cubic, 1->blackman nuttall windowed sinc, 2..16->kaiser windowed sinc beta=2..16 */ -void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){ +static void build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){ int ph, i; double x, y, w, tab[tap_count]; const int center= (tap_count-1)/2; @@ -189,7 +189,7 @@ c->filter_length= FFMAX((int)ceil(filter_size/factor), 1); c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM)); - av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE); + build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE); memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM)); c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];