Lines Matching refs:phase_count
99 static int build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){
112 for(ph=0;ph<phase_count;ph++) {
115 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor;
121 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor);
192 int phase_count= 1<<phase_shift;
198 c->phase_mask= phase_count-1;
202 c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
205 if (build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE))
207 memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
208 c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
211 c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;
212 c->index= -phase_count*((c->filter_length-1)/2);