Lines Matching refs:phase_count
102 static int build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){
115 for(ph=0;ph<phase_count;ph++) {
118 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor;
124 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor);
195 int phase_count= 1<<phase_shift;
201 c->phase_mask= phase_count-1;
205 c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
208 if (build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE))
210 memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
211 c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
213 if(!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in_rate * (int64_t)phase_count, INT32_MAX/2))
217 c->index= -phase_count*((c->filter_length-1)/2);