Lines Matching refs:kernel_hp
234 gdouble *kernel_lp, *kernel_hp; in gst_audio_wsincband_build_kernel() local
315 kernel_hp = g_new (gdouble, len); in gst_audio_wsincband_build_kernel()
318 kernel_hp[i] = w; in gst_audio_wsincband_build_kernel()
320 kernel_hp[i] = sin (w * (i - (len - 1) / 2.0)) / (i - (len - 1) / 2.0); in gst_audio_wsincband_build_kernel()
325 kernel_hp[i] *= (0.54 - 0.46 * cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
328 kernel_hp[i] *= (0.42 - 0.5 * cos (2 * G_PI * i / (len - 1)) + in gst_audio_wsincband_build_kernel()
332 kernel_hp[i] *= exp (-0.5 * POW2 (3.0 / len * (2 * i - (len - 1)))); in gst_audio_wsincband_build_kernel()
335 kernel_hp[i] *= cos (G_PI * i / (len - 1) - G_PI / 2); in gst_audio_wsincband_build_kernel()
338 kernel_hp[i] *= 0.5 * (1 - cos (2 * G_PI * i / (len - 1))); in gst_audio_wsincband_build_kernel()
346 sum += kernel_hp[i]; in gst_audio_wsincband_build_kernel()
348 kernel_hp[i] /= sum; in gst_audio_wsincband_build_kernel()
352 kernel_hp[i] = -kernel_hp[i]; in gst_audio_wsincband_build_kernel()
354 kernel_hp[(len - 1) / 2] += 1.0; in gst_audio_wsincband_build_kernel()
356 kernel_hp[len / 2 - 1] += 0.5; in gst_audio_wsincband_build_kernel()
357 kernel_hp[len / 2] += 0.5; in gst_audio_wsincband_build_kernel()
364 kernel[i] = kernel_lp[i] + kernel_hp[i]; in gst_audio_wsincband_build_kernel()
368 g_free (kernel_hp); in gst_audio_wsincband_build_kernel()