Lines Matching refs:src_incr
192 if (!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in ff_audio_resample_init()
266 int dst_incr_frac = c->dst_incr % c->src_incr; in resample()
267 int dst_incr = c->dst_incr / c->src_incr; in resample()
275 int64_t incr = (1LL << 32) * c->dst_incr / c->src_incr; in resample()
277 (src_size-1-index) * (int64_t)c->src_incr / in resample()
289 index += (frac + dst_index * (int64_t)dst_incr_frac) / c->src_incr; in resample()
290 frac = (frac + dst_index * (int64_t)dst_incr_frac) % c->src_incr; in resample()
303 if (frac >= c->src_incr) { in resample()
304 frac -= c->src_incr; in resample()
309 dst_incr_frac = c->ideal_dst_incr % c->src_incr; in resample()
310 dst_incr = c->ideal_dst_incr / c->src_incr; in resample()
327 c->dst_incr = dst_incr_frac + c->src_incr*dst_incr; in resample()