Revision a882cf9c

View differences:

libavcodec/resample2.c
95 95
 * @param scale wanted sum of coefficients for each filter
96 96
 * @param type 0->cubic, 1->blackman nuttall windowed sinc, 2..16->kaiser windowed sinc beta=2..16
97 97
 */
98
void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){
98
static void build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){
99 99
    int ph, i;
100 100
    double x, y, w, tab[tap_count];
101 101
    const int center= (tap_count-1)/2;
......
189 189

  
190 190
    c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
191 191
    c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
192
    av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
192
    build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
193 193
    memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
194 194
    c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
195 195

  

Also available in: Unified diff