Lines Matching refs:phase_shift
174 static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear,
180 int phase_count= 1<<phase_shift;
182 if (!c || c->phase_shift != phase_shift || c->linear!=linear || c->factor != factor
214 c->phase_shift = phase_shift;
274 if (c->filter_length == 1 && c->phase_shift == 0) {
293 int64_t end_index = (1LL + src_size - c->filter_length) << c->phase_shift;
313 int64_t max_src_size = (INT64_MAX >> (c->phase_shift+1)) / c->src_incr;
341 num <<= c->phase_shift;
345 return av_rescale(num, base, s->in_sample_rate*(int64_t)c->src_incr << c->phase_shift);
401 *out_idx = c->filter_length + (c->index >> c->phase_shift);