xine-lib: xine-lib-1.2.13/src/post/audio/window.h Source File

xine-lib 1.2.13-20230125hg15249

window.h
Go to the documentation of this file.
1/*=============================================================================
2 *
3 * This software has been released under the terms of the GNU 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 */
10
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.
16 */
17
18#if !defined _DSP_H
19# error "Never use <window.h> directly; include <dsp.h> instead"
20#endif
21
22#ifndef _WINDOW_H
23#define _WINDOW_H 1
24
25 extern void boxcar(int n, _ftype_t* w);
26 extern void triang(int n, _ftype_t* w);
27 extern void hanning(int n, _ftype_t* w);
28 extern void hamming(int n,_ftype_t* w);
29 extern void blackman(int n,_ftype_t* w);
30 extern void flattop(int n,_ftype_t* w);
31 extern void kaiser(int n, _ftype_t* w,_ftype_t b);
32
33#endif
_ftype_t
#define _ftype_t
Definition dsp.h:17
hamming
void hamming(int n, _ftype_t *w)
hanning
void hanning(int n, _ftype_t *w)
kaiser
void kaiser(int n, _ftype_t *w, _ftype_t b)
flattop
void flattop(int n, _ftype_t *w)
blackman
void blackman(int n, _ftype_t *w)
boxcar
void boxcar(int n, _ftype_t *w)
triang
void triang(int n, _ftype_t *w)