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++)
56 window[
i] = (
int)floor(2147483647.0 * local_window[
i] + 0.5);
#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 double bessel(double x)
static SDL_Window * window
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#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[]