1/* GStreamer
2 * Copyright (C) <2007> Sebastian Dröge <slomo@circular-chaos.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20#include <glib.h>
21#include <math.h>
22#include <gst/gst.h>
23
24#ifndef __GST_FFT_H__
25#define __GST_FFT_H__
26
27#include <gst/fft/fft-prelude.h>
28
29G_BEGIN_DECLS
30
31/**
32 * GstFFTWindow:
33 * @GST_FFT_WINDOW_RECTANGULAR: Rectangular window
34 * @GST_FFT_WINDOW_HAMMING: Hamming window
35 * @GST_FFT_WINDOW_HANN: Hann (sometimes also called Hanning) window
36 * @GST_FFT_WINDOW_BARTLETT: Bartlett window
37 * @GST_FFT_WINDOW_BLACKMAN: Blackman window
38 *
39 * The various window functions available.
40 */
41typedef enum
42{
43 GST_FFT_WINDOW_RECTANGULAR,
44 GST_FFT_WINDOW_HAMMING,
45 GST_FFT_WINDOW_HANN,
46 GST_FFT_WINDOW_BARTLETT,
47 GST_FFT_WINDOW_BLACKMAN
48} GstFFTWindow;
49
50/* Functions */
51
52GST_FFT_API
53gint gst_fft_next_fast_length (gint n) G_GNUC_CONST;
54
55G_END_DECLS
56
57#endif /* __GST_FFT_H__ */
58