Lines Matching refs:src_incr
362 … if(!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in_rate * (int64_t)phase_count, INT32_MAX/2)) in resample_init()
364 while (c->dst_incr < (1<<20) && c->src_incr < (1<<20)) { in resample_init()
366 c->src_incr *= 2; in resample_init()
369 c->dst_incr_div = c->dst_incr / c->src_incr; in resample_init()
370 c->dst_incr_mod = c->dst_incr % c->src_incr; in resample_init()
409 if (!av_reduce(&new_src_incr, &new_dst_incr, c->src_incr, in rebuild_filter_bank_with_compensation()
416 c->src_incr = new_src_incr; in rebuild_filter_bank_with_compensation()
418 while (c->dst_incr < (1<<20) && c->src_incr < (1<<20)) { in rebuild_filter_bank_with_compensation()
420 c->src_incr *= 2; in rebuild_filter_bank_with_compensation()
423 c->dst_incr_div = c->dst_incr / c->src_incr; in rebuild_filter_bank_with_compensation()
424 c->dst_incr_mod = c->dst_incr % c->src_incr; in rebuild_filter_bank_with_compensation()
447 c->dst_incr_div = c->dst_incr / c->src_incr; in set_compensation()
448 c->dst_incr_mod = c->dst_incr % c->src_incr; in set_compensation()
455 int64_t max_src_size = (INT64_MAX/2 / c->phase_count) / c->src_incr; in multiple_resample()
464 int64_t index2= (1LL<<32)*c->frac/c->src_incr + (1LL<<32)*c->index; in multiple_resample()
465 int64_t incr= (1LL<<32) * c->dst_incr / c->src_incr; in multiple_resample()
466 int new_size = (src_size * (int64_t)c->src_incr - c->frac + c->dst_incr - 1) / c->dst_incr; in multiple_resample()
474 c->index += (c->frac + dst_size * (int64_t)c->dst_incr_mod) / c->src_incr; in multiple_resample()
477 c->frac = (c->frac + dst_size * (int64_t)c->dst_incr_mod) % c->src_incr; in multiple_resample()
484 int64_t delta_frac = (end_index - c->index) * c->src_incr - c->frac; in multiple_resample()
504 c->dst_incr_div = c->dst_incr / c->src_incr; in multiple_resample()
505 c->dst_incr_mod = c->dst_incr % c->src_incr; in multiple_resample()
517 num *= c->src_incr; in get_delay()
519 return av_rescale(num, base, s->in_sample_rate*(int64_t)c->src_incr * c->phase_count); in get_delay()