1 /*
2  * FAAC - Freeware Advanced Audio Coder
3  * Copyright (C) 2001 Menno Bakker
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14 
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  *
19  * $Id: filtbank.h,v 1.12 2012/03/01 18:34:17 knik Exp $
20  */
21 
22 #ifndef FILTBANK_H
23 #define FILTBANK_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28 
29 #include "frame.h"
30 
31 #ifdef DRM
32 #define NFLAT_LS (( BLOCK_LEN_LONG - BLOCK_LEN_SHORT ) / 2)
33 #else
34 #define NFLAT_LS 448
35 #endif
36 
37 #define MOVERLAPPED     0
38 #define MNON_OVERLAPPED 1
39 
40 
41 #define SINE_WINDOW 0
42 #define KBD_WINDOW  1
43 
44 void			FilterBankInit		( faacEncStruct* hEncoder );
45 
46 void			FilterBankEnd		( faacEncStruct* hEncoder );
47 
48 void			FilterBank( faacEncStruct* hEncoder,
49 						CoderInfo *coderInfo,
50 						double *p_in_data,
51 						double *p_out_mdct,
52 						double *p_overlap,
53 						int overlap_select );
54 
55 void			IFilterBank( faacEncStruct* hEncoder,
56 						CoderInfo *coderInfo,
57 						double *p_in_data,
58 						double *p_out_mdct,
59 						double *p_overlap,
60 						int overlap_select );
61 
62 void			specFilter(	double *freqBuff,
63 						int sampleRate,
64 						int lowpassFreq,
65 						int specLen );
66 
67 #ifdef __cplusplus
68 }
69 #endif /* __cplusplus */
70 
71 #endif /* FILTBANK_H */
72