Home
last modified time | relevance | path

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

/third_party/gstreamer/gstplugins_good/gst/audiofx/
Daudiowsincband.c234 gdouble *kernel_lp, *kernel_hp; in gst_audio_wsincband_build_kernel() local
278 kernel_lp = g_new (gdouble, len); in gst_audio_wsincband_build_kernel()
281 kernel_lp[i] = w; in gst_audio_wsincband_build_kernel()
283 kernel_lp[i] = sin (w * (i - (len - 1) / 2.0)) / (i - (len - 1) / 2.0); in gst_audio_wsincband_build_kernel()
288 kernel_lp[i] *= (0.54 - 0.46 * cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
291 kernel_lp[i] *= (0.42 - 0.5 * cos (2 * G_PI * i / (len - 1)) + in gst_audio_wsincband_build_kernel()
295 kernel_lp[i] *= exp (-0.5 * POW2 (3.0 / len * (2 * i - (len - 1)))); in gst_audio_wsincband_build_kernel()
298 kernel_lp[i] *= cos (G_PI * i / (len - 1) - G_PI / 2); in gst_audio_wsincband_build_kernel()
301 kernel_lp[i] *= 0.5 * (1 - cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
309 sum += kernel_lp[i]; in gst_audio_wsincband_build_kernel()
[all …]