Lines Matching defs:phase_count
70 static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale,
84 for(ph=0;ph<phase_count;ph++) {
87 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor;
93 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor);
180 int phase_count= 1<<phase_shift;
215 c->phase_mask = phase_count - 1;
220 c->filter_bank = av_calloc(c->filter_alloc, (phase_count+1)*c->felem_size);
225 if (build_filter(c, (void*)c->filter_bank, factor, c->filter_length, c->filter_alloc, phase_count, 1<<c->filter_shift, filter_type, kaiser_beta))
227 memcpy(c->filter_bank + (c->filter_alloc*phase_count+1)*c->felem_size, c->filter_bank, (c->filter_alloc-1)*c->felem_size);
228 memcpy(c->filter_bank + (c->filter_alloc*phase_count )*c->felem_size, c->filter_bank + (c->filter_alloc - 1)*c->felem_size, c->felem_size);
232 if(!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in_rate * (int64_t)phase_count, INT32_MAX/2))
238 c->index= -phase_count*((c->filter_length-1)/2);