/third_party/ffmpeg/libswresample/ |
D | resample.c | 144 …ampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, in build_filter() argument 147 int ph_nb = phase_count % 2 ? phase_count : phase_count / 2 + 1; in build_filter() 166 sin_lut[ph] = sin(M_PI * ph / phase_count) * (center & 1 ? 1 : -1); in build_filter() 171 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor; in build_filter() 180 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor); in build_filter() 208 if (phase_count % 2) break; in build_filter() 210 … ((int16_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int16_t*)filter)[ph * alloc + i]; in build_filter() 215 if (phase_count % 2) break; in build_filter() 217 … ((int32_t*)filter)[(phase_count-ph) * alloc + tap_count-1-i] = ((int32_t*)filter)[ph * alloc + i]; in build_filter() 222 if (phase_count % 2) break; in build_filter() [all …]
|
D | resample_template.c | 99 while (index >= c->phase_count) { in RENAME() 101 index -= c->phase_count; in RENAME() 129 while (index >= c->phase_count) { in RENAME() 131 index -= c->phase_count; in RENAME() 157 while (index >= c->phase_count) { in RENAME() 159 index -= c->phase_count; in RENAME() 189 while (index >= c->phase_count) { in RENAME() 191 index -= c->phase_count; in RENAME()
|
D | resample.h | 43 int phase_count; member
|
/third_party/pulseaudio/src/pulsecore/ffmpeg/ |
D | resample2.c | 94 void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int t… in av_build_filter() argument 103 for(ph=0;ph<phase_count;ph++) { in av_build_filter() 106 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor; in av_build_filter() 112 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor); in av_build_filter() 180 int phase_count= 1<<phase_shift; in av_resample_init() local 183 c->phase_mask= phase_count-1; in av_resample_init() 187 c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM)); in av_resample_init() 188 …av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYP… in av_resample_init() 189 …memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeo… in av_resample_init() 190 c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1]; in av_resample_init() [all …]
|
D | avcodec.h | 72 void av_build_filter(int16_t *filter, double factor, int tap_count, int phase_count, int scale, int…
|
/third_party/ffmpeg/libswresample/x86/ |
D | resample.asm | 44 .phase_count: resd 1 label 276 cglobal resample_linear_%1, 0, 15, 5, ctx, dst, phase_mask, phase_count, index, frac, \ 283 cglobal resample_linear_%1, 0, 15, 5, ctx, phase_mask, src, phase_count, index, frac, \ 326 mov ecx, [ctxq+ResampleContext.phase_count] 329 DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, filter1, \ 334 mov ecx, [ctxq+ResampleContext.phase_count] 336 DEFINE_ARGS phase_count, filter2, src, filter_alloc, index, frac, filter1, \ 365 …PUSH dword [ctxq+ResampleContext.phase_count] ; unneeded replacement… 384 PUSH dword [ctxq+ResampleContext.phase_count] 523 DEFINE_ARGS filter_alloc, dst, filter2, phase_count, index, frac, index_incr, \ [all …]
|
/third_party/ffmpeg/libswresample/aarch64/ |
D | resample_init.c | 51 while (index >= c->phase_count) { \ 53 index -= c->phase_count; \ 83 while (index >= c->phase_count) { \ 85 index -= c->phase_count; \
|
/third_party/ffmpeg/libswresample/arm/ |
D | resample_init.c | 51 while (index >= c->phase_count) { \ 53 index -= c->phase_count; \ 83 while (index >= c->phase_count) { \ 85 index -= c->phase_count; \
|
/third_party/ffmpeg/libavresample/ |
D | resample.c | 73 int phase_count = 1 << c->phase_shift; in build_filter() local 80 for (ph = 0; ph < phase_count; ph++) { in build_filter() 83 x = M_PI * ((double)(i - center) - (double)ph / phase_count) * factor; in build_filter() 89 x = fabs(((double)(i - center) - (double)ph / phase_count) * factor); in build_filter() 126 int phase_count = 1 << avr->phase_shift; in ff_audio_resample_init() local 144 c->phase_mask = phase_count - 1; in ff_audio_resample_init() 179 c->filter_bank = av_mallocz(c->filter_length * (phase_count + 1) * felem_size); in ff_audio_resample_init() 186 memcpy(&c->filter_bank[(c->filter_length * phase_count + 1) * felem_size], in ff_audio_resample_init() 188 memcpy(&c->filter_bank[c->filter_length * phase_count * felem_size], in ff_audio_resample_init() 193 in_rate * (int64_t)phase_count, INT32_MAX / 2)) in ff_audio_resample_init()
|
/third_party/ffmpeg/doc/ |
D | resampler.texi | 139 For swr only, when enabled, try to use exact phase_count based on input and 141 the phase_count will be @code{1 << phase_shift} as fallback. Default is enabled.
|