summaryrefslogtreecommitdiff
path: root/libavcodec/kbdwin.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-03-19 17:19:04 +0000
committerMans Rullgard <mans@mansr.com>2011-03-19 19:49:27 +0000
commita45fbda994df54600101e845e29f0af60e456e95 (patch)
tree5b7967059edcf79ea6814d77db25adf6a3a387eb /libavcodec/kbdwin.h
parent26f548bb59177cfc8c45ff633dd37b60cfd23edf (diff)
Move ff_kbd_window_init() to a separate file
This function is not tightly coupled to mdct, and it's in the way of making a fixed-point mdct implementation. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/kbdwin.h')
-rw-r--r--libavcodec/kbdwin.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/libavcodec/kbdwin.h b/libavcodec/kbdwin.h
new file mode 100644
index 0000000000..5ac2b8ca5a
--- /dev/null
+++ b/libavcodec/kbdwin.h
@@ -0,0 +1,35 @@
+/*
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_KBDWIN_H
+#define AVCODEC_KBDWIN_H
+
+/**
+ * Maximum window size for ff_kbd_window_init.
+ */
+#define FF_KBD_WINDOW_MAX 1024
+
+/**
+ * Generate a Kaiser-Bessel Derived Window.
+ * @param window pointer to half window
+ * @param alpha determines window shape
+ * @param n size of half window, max FF_KBD_WINDOW_MAX
+ */
+void ff_kbd_window_init(float *window, float alpha, int n);
+
+#endif