Go to the documentation of this file.
24 #define BESSEL_I0_ITER 50 // default: 50 iterations of Bessel I0 approximation
35 for (
i = 0;
i < n;
i++) {
36 tmp =
i * (n -
i) * alpha2;
41 local_window[
i] = sum;
45 for (
i = 0;
i < n;
i++)
46 window[
i] = sqrt(local_window[
i] / sum);
55 for (
i = 0;
i < n;
i++)
#define FF_KBD_WINDOW_MAX
Maximum window size for ff_kbd_window_init.
av_cold void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n)
static SDL_Window * window
static __device__ float floor(float a)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
static double bessel(double x)
0th order modified bessel function of the first kind.
#define i(width, name, range_min, range_max)
av_cold void ff_kbd_window_init(float *window, float alpha, int n)
Generate a Kaiser-Bessel Derived Window.
static const int16_t alpha[]