Home
last modified time | relevance | path

Searched refs:src_incr (Results 1 – 11 of 11) sorted by relevance

/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c65 int src_incr; member
192 c->src_incr= out_rate; in av_resample_init()
214 int dst_incr_frac= c->dst_incr % c->src_incr; in av_resample()
215 int dst_incr= c->dst_incr / c->src_incr; in av_resample()
220 int64_t incr= (1LL<<32) * c->dst_incr / c->src_incr; in av_resample()
221 dst_size= FFMIN(dst_size, (src_size-1-index) * (int64_t)c->src_incr / c->dst_incr); in av_resample()
229 index += frac / c->src_incr; in av_resample()
230 frac %= c->src_incr; in av_resample()
248 val+=(v2-val)*(FELEML)frac / c->src_incr; in av_resample()
264 if(frac >= c->src_incr){ in av_resample()
[all …]
/third_party/ffmpeg/libswresample/
Dresample.c362 … 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()
[all …]
Dresample_template.c124 if (frac >= c->src_incr) { in RENAME()
125 frac -= c->src_incr; in RENAME()
154 double inv_src_incr = 1.0 / c->src_incr; in RENAME()
172 val += (v2 - val) * (FELEML) frac / c->src_incr; in RENAME()
177 val += (v2 - val) / c->src_incr * frac; in RENAME()
184 if (frac >= c->src_incr) { in RENAME()
185 frac -= c->src_incr; in RENAME()
Dresample.h41 int src_incr; member
/third_party/ffmpeg/libavresample/
Dresample.c192 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()
[all …]
Dresample.h37 int src_incr; member
Dresample_template.c80 val += (v2 - val) * (FELEML)frac / c->src_incr; in SET_TYPE()
/third_party/ffmpeg/libswresample/x86/
Dresample.asm42 .src_incr: resd 1 label
278 min_filter_len_x4, dst_incr_div, src_incr, \
285 min_filter_len_x4, dst_incr_div, src_incr, \
311 mov src_incrd, [ctxq+ResampleContext.src_incr]
331 dst_incr_div, src_incr, src, dst_end, filter_bank
338 dst_incr_div, src_incr, dst, dst_end, filter_bank
364 mov r3, dword [ctxq+ResampleContext.src_incr]
488 ; val += (v2 - val) * (FELEML) frac / c->src_incr;
525 dst_incr_div, src_incr, src, dst_end, filter_bank
529 dst_incr_div, src_incr, dst, dst_end, filter_bank
[all …]
/third_party/ffmpeg/libswresample/arm/
Dresample_init.c79 if (frac >= c->src_incr) { \
80 frac -= c->src_incr; \
/third_party/ffmpeg/libswresample/aarch64/
Dresample_init.c79 if (frac >= c->src_incr) { \
80 frac -= c->src_incr; \
/third_party/ffmpeg/libavresample/arm/
Dresample_init.c34 AV_CHECK_OFFSET(struct ResampleContext, src_incr, SRC_INCR);