synced with r26729
[mplayer/greg.git] / libaf / window.h
blob51afb349ac3323e27512a7d2e87f3021b576e5d0
1 /*=============================================================================
2 //
3 // This software has been released under the terms of the GNU General Public
4 // license. See http://www.gnu.org/copyleft/gpl.html for details.
5 //
6 // Copyright 2001 Anders Johansson ajh@atri.curtin.edu.au
7 //
8 //=============================================================================
9 */
11 /* Calculates a number of window functions. The following window
12 functions are currently implemented: Boxcar, Triang, Hanning,
13 Hamming, Blackman, Flattop and Kaiser. In the function call n is
14 the number of filter taps and w the buffer in which the filter
15 coefficients will be stored.
18 #if !defined MPLAYER_DSP_H
19 # error Never use window.h directly; include dsp.h instead.
20 #endif
22 #ifndef MPLAYER_WINDOW_H
23 #define MPLAYER_WINDOW_H
25 extern void af_window_boxcar(int n, FLOAT_TYPE* w);
26 extern void af_window_triang(int n, FLOAT_TYPE* w);
27 extern void af_window_hanning(int n, FLOAT_TYPE* w);
28 extern void af_window_hamming(int n, FLOAT_TYPE* w);
29 extern void af_window_blackman(int n, FLOAT_TYPE* w);
30 extern void af_window_flattop(int n, FLOAT_TYPE* w);
31 extern void af_window_kaiser(int n, FLOAT_TYPE* w, FLOAT_TYPE b);
33 #endif /* MPLAYER_WINDOW_H */