Go to the documentation of this file.
28 double sum = 0.0,
tmp;
35 for (
i = 0;
i <= n / 2;
i++) {
36 tmp =
i * (n -
i) * alpha2;
42 for (
i = 0;
i <= n / 2;
i++) {
44 if (float_window) float_window[
i] = sqrt(sum *
scale);
45 else int_window[
i] =
lrint(2147483647 * sqrt(sum *
scale));
49 if (float_window) float_window[
i] = sqrt(sum *
scale);
50 else int_window[
i] =
lrint(2147483647 * sqrt(sum *
scale));
#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)
double av_bessel_i0(double x)
0th order modified bessel function of the first kind.
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 av_cold void kbd_window_init(float *float_window, int *int_window, float alpha, int n)
static void scale(int *out, const int *in, const int w, const int h, const int shift)
static const int16_t alpha[]