/third_party/ffmpeg/libavfilter/ |
D | af_apsyclip.c | 43 int fft_size; member 102 while (j < s->fft_size / 2 + 1 && j * sample_rate / s->fft_size < points[i + 1][0]) { in set_margin_curve() 104 int binHz = j * sample_rate / s->fft_size; in set_margin_curve() 110 while (j < s->fft_size / 2 + 1) { in set_margin_curve() 116 for (j = 0; j < s->fft_size / 2 + 1; j++) in set_margin_curve() 194 s->fft_size = inlink->sample_rate > 100000 ? 1024 : inlink->sample_rate > 50000 ? 512 : 256; in config_input() 195 s->overlap = s->fft_size / 4; in config_input() 200 s->num_psy_bins = s->fft_size / 2; in config_input() 202 s->num_psy_bins = s->fft_size / 4; in config_input() 204 s->num_psy_bins = s->fft_size / 8; in config_input() [all …]
|
D | af_dialoguenhance.c | 37 int fft_size; member 91 s->fft_size = inlink->sample_rate > 100000 ? 8192 : inlink->sample_rate > 50000 ? 4096 : 2048; in config_input() 92 s->overlap = s->fft_size / 4; in config_input() 94 s->window = av_calloc(s->fft_size, sizeof(*s->window)); in config_input() 98 s->in_frame = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() 99 s->center_frame = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() 100 s->out_dist_frame = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() 101 s->windowed_frame = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() 102 s->windowed_out = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() 103 s->windowed_prev = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input() [all …]
|
D | asrc_afirsrc.c | 183 int fft_size, middle, ret; in config_output() local 221 fft_size = 1 << (av_log2(s->nb_taps) + 1); in config_output() 222 s->complexf = av_calloc(fft_size * 2, sizeof(*s->complexf)); in config_output() 226 ret = av_tx_init(&s->tx_ctx, &s->tx_fn, AV_TX_FLOAT_FFT, 1, fft_size, &scale, 0); in config_output() 240 lininterp(s->complexf, s->freq, s->magnitude, s->phase, s->nb_freq, fft_size / 2); in config_output() 242 s->tx_fn(s->tx_ctx, s->complexf + fft_size, s->complexf, sizeof(float)); in config_output() 244 compensation = 2.f / fft_size; in config_output() 248 s->taps[ i] = s->complexf[fft_size + middle - i].re * compensation * s->win[i]; in config_output() 249 … s->taps[middle + i] = s->complexf[fft_size + i].re * compensation * s->win[middle + i]; in config_output()
|
D | af_afftfilt.c | 36 int fft_size; member 65 … { "win_size", "set window size", OFFSET(fft_size), AV_OPT_TYPE_INT, {.i64=4096}, 16, 131072, A }, 119 ret = av_tx_init(&s->fft[ch], &s->tx_fn, AV_TX_FLOAT_FFT, 0, s->fft_size, &scale, 0); in config_input() 125 ret = av_tx_init(&s->ifft[ch], &s->itx_fn, AV_TX_FLOAT_FFT, 1, s->fft_size, &scale, 0); in config_input() 130 s->window_size = s->fft_size; in config_input()
|
D | avf_showfreqs.c | 50 int fft_size; member 99 …{ "win_size", "set window size", OFFSET(fft_size), AV_OPT_TYPE_INT, {.i64=2048}, 16, 65536, FLAGS … 158 s->nb_freq = s->fft_size / 2; in config_output() 159 s->win_size = s->fft_size; in config_output() 161 ret = av_tx_init(&s->fft, &s->tx_fn, AV_TX_FLOAT_FFT, 0, s->fft_size, &scale, 0); in config_output()
|
D | avf_showspectrum.c | 85 int fft_size; ///< number of coeffs (FFT window size) member 403 memmove(in_frame, in_frame + s->hop_size, (s->fft_size - s->hop_size) * sizeof(float)); in run_channel_fft() 404 memcpy(in_frame + s->fft_size - s->hop_size, p, fin->nb_samples * sizeof(float)); in run_channel_fft() 407 in_frame[i + s->fft_size - s->hop_size] = 0.f; in run_channel_fft() 1064 int i, fft_size, h, w, ret; in config_output() local 1104 fft_size = h * 2; in config_output() 1107 fft_size = w * 2; in config_output() 1110 s->win_size = fft_size; in config_output() 1128 if (fft_size != s->fft_size) { in config_output() 1131 s->fft_size = fft_size; in config_output() [all …]
|
/third_party/ffmpeg/libavcodec/tests/ |
D | fft.c | 385 int fft_nbits = 9, fft_size; in main() local 443 fft_size = 1 << fft_nbits; in main() 444 tab = av_malloc_array(fft_size, sizeof(FFTComplex)); in main() 445 tab1 = av_malloc_array(fft_size, sizeof(FFTComplex)); in main() 446 tab_ref = av_malloc_array(fft_size, sizeof(FFTComplex)); in main() 447 tab2 = av_malloc_array(fft_size, sizeof(FFTSample)); in main() 498 av_log(NULL, AV_LOG_INFO, " %d test\n", fft_size); in main() 502 for (i = 0; i < fft_size; i++) { in main() 516 err = check_diff(&tab_ref->re, tab2, fft_size, scale); in main() 520 err = check_diff(&tab_ref->re, tab2, fft_size / 2, scale); in main() [all …]
|
/third_party/pulseaudio/src/modules/ |
D | module-equalizer-sink.c | 93 size_t fft_size;//length (res) of fft member 149 #define FILTER_SIZE(u) ((u)->fft_size / 2 + 1) 162 static void fix_filter(float *H, size_t fft_size) { in fix_filter() argument 164 for (size_t i = 0; i < fft_size / 2 + 1; ++i) in fix_filter() 165 H[i] /= fft_size; in fix_filter() 390 memset(dst + u->window_size, 0, (u->fft_size - u->window_size) * sizeof(float)); in dsp_logic() 462 memset(dst + u->window_size, 0, (u->fft_size - u->window_size) * sizeof(float)); in dsp_logic() 686 pa_assert(u->fft_size >= u->window_size); in sink_input_pop_cb() 929 H_n[i] = H[i] * u->fft_size; in save_profile() 1007 fix_filter(u->Hs[channel][a_i], u->fft_size); in load_profile() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | qdmc.c | 212 int ret, fft_size, fft_order, size, g, j, x; in qdmc_decode_init() local 264 fft_size = bytestream2_get_be32u(&b); in qdmc_decode_init() 265 fft_order = av_log2(fft_size) + 1; in qdmc_decode_init() 294 if (fft_size != (1 << (fft_order - 1))) { in qdmc_decode_init() 295 av_log(avctx, AV_LOG_ERROR, "FFT size %d not power of 2.\n", fft_size); in qdmc_decode_init()
|
D | qdm2.c | 136 int fft_size; ///< size of FFT, in complex numbers member 1480 memset(q->fft.complex[ch], 0, q->fft_size * sizeof(QDM2Complex)); in qdm2_fft_tone_synthesizer() 1554 for (i = 0; i < FFALIGN(q->fft_size, 8); i++) { in qdm2_calculate_fft() 1702 s->fft_size = bytestream2_get_be32(&gb); in qdm2_decode_init() 1709 s->fft_order = av_log2(s->fft_size) + 1; in qdm2_decode_init() 1755 if (s->fft_size != (1 << (s->fft_order - 1))) { in qdm2_decode_init() 1756 av_log(avctx, AV_LOG_ERROR, "FFT size %d not power of 2.\n", s->fft_size); in qdm2_decode_init()
|
D | fft_template.c | 328 const int fft_size = (1 << s->nbits); in fft_calc_c() local 356 if (fft_size < 8) in fft_calc_c()
|
/third_party/lame/libmp3lame/ |
D | psymodel.c | 1712 init_numline(PsyConst_CB2SB_t * gd, FLOAT sfreq, int fft_size, in init_numline() argument 1717 FLOAT const deltafreq = fft_size / (2.0f * mdct_size); in init_numline() 1721 sfreq /= fft_size; in init_numline() 1733 for (j2 = j; freq2bark(sfreq * j2) - bark1 < DELBARK && j2 <= fft_size / 2; j2++); in init_numline() 1745 if (j > fft_size / 2) { in init_numline() 1746 j = fft_size / 2; in init_numline() 1779 if (i2 > fft_size / 2) in init_numline() 1780 i2 = fft_size / 2; in init_numline() 1805 compute_bark_values(PsyConst_CB2SB_t const *gd, FLOAT sfreq, int fft_size, in compute_bark_values() argument 1810 sfreq /= fft_size; in compute_bark_values()
|
/third_party/ffmpeg/libavcodec/mips/ |
D | fft_mips.c | 70 const int fft_size = (1 << s->nbits); in ff_fft_calc_mips() local 103 if (fft_size < 8) in ff_fft_calc_mips()
|