Home
last modified time | relevance | path

Searched refs:fft_size (Results 1 – 9 of 9) sorted by relevance

/third_party/ffmpeg/libavcodec/tests/
Dfft.c388 int fft_nbits = 9, fft_size; in main() local
446 fft_size = 1 << fft_nbits; in main()
447 tab = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
448 tab1 = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
449 tab_ref = av_malloc_array(fft_size, sizeof(FFTComplex)); in main()
450 tab2 = av_malloc_array(fft_size, sizeof(FFTSample)); in main()
501 av_log(NULL, AV_LOG_INFO, " %d test\n", fft_size); in main()
505 for (i = 0; i < fft_size; i++) { in main()
519 err = check_diff(&tab_ref->re, tab2, fft_size, scale); in main()
523 err = check_diff(&tab_ref->re, tab2, fft_size / 2, scale); in main()
[all …]
/third_party/ffmpeg/libavfilter/
Dasrc_afirsrc.c215 int fft_size, middle, ret; in config_output() local
253 fft_size = 1 << (av_log2(s->nb_taps) + 1); in config_output()
254 s->complexf = av_calloc(fft_size * 2, sizeof(*s->complexf)); in config_output()
258 ret = av_tx_init(&s->tx_ctx, &s->tx_fn, AV_TX_FLOAT_FFT, 1, fft_size, &scale, 0); in config_output()
272 lininterp(s->complexf, s->freq, s->magnitude, s->phase, s->nb_freq, fft_size / 2); in config_output()
274 s->tx_fn(s->tx_ctx, s->complexf + fft_size, s->complexf, sizeof(float)); in config_output()
276 compensation = 2.f / fft_size; in config_output()
280 s->taps[ i] = s->complexf[fft_size + middle - i].re * compensation * s->win[i]; in config_output()
281 … s->taps[middle + i] = s->complexf[fft_size + i].re * compensation * s->win[middle + i]; in config_output()
Daf_afftfilt.c36 int fft_size; member
66 … { "win_size", "set window size", OFFSET(fft_size), AV_OPT_TYPE_INT, {.i64=4096}, 16, 131072, A },
135 s->fft_bits = av_log2(s->fft_size); in config_input()
Davf_showfreqs.c51 int fft_size; member
91 …{ "win_size", "set window size", OFFSET(fft_size), AV_OPT_TYPE_INT, {.i64=2048}, 16, 65536, FLAGS …
177 s->fft_bits = av_log2(s->fft_size); in config_output()
/third_party/pulseaudio/src/modules/
Dmodule-equalizer-sink.c93 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/
Dqdmc.c209 int ret, fft_size, fft_order, size, g, j, x; in qdmc_decode_init() local
259 fft_size = bytestream2_get_be32u(&b); in qdmc_decode_init()
260 fft_order = av_log2(fft_size) + 1; in qdmc_decode_init()
289 if (fft_size != (1 << (fft_order - 1))) { in qdmc_decode_init()
290 av_log(avctx, AV_LOG_ERROR, "FFT size %d not power of 2.\n", fft_size); in qdmc_decode_init()
Dqdm2.c135 int fft_size; ///< size of FFT, in complex numbers member
1479 memset(q->fft.complex[ch], 0, q->fft_size * sizeof(QDM2Complex)); in qdm2_fft_tone_synthesizer()
1553 for (i = 0; i < FFALIGN(q->fft_size, 8); i++) { in qdm2_calculate_fft()
1701 s->fft_size = bytestream2_get_be32(&gb); in qdm2_decode_init()
1708 s->fft_order = av_log2(s->fft_size) + 1; in qdm2_decode_init()
1754 if (s->fft_size != (1 << (s->fft_order - 1))) { in qdm2_decode_init()
1755 av_log(avctx, AV_LOG_ERROR, "FFT size %d not power of 2.\n", s->fft_size); in qdm2_decode_init()
Dfft_template.c323 const int fft_size = (1 << s->nbits); in fft_calc_c() local
351 if (fft_size < 8) in fft_calc_c()
/third_party/ffmpeg/libavcodec/mips/
Dfft_mips.c69 const int fft_size = (1 << s->nbits); in ff_fft_calc_mips() local
102 if (fft_size < 8) in ff_fft_calc_mips()