1 /*
2  *	psymodel.h
3  *
4  *	Copyright (c) 1999 Mark Taylor
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
22 #ifndef LAME_PSYMODEL_H
23 #define LAME_PSYMODEL_H
24 
25 
26 int     L3psycho_anal_ns(lame_internal_flags * gfc,
27                          const sample_t *const buffer[2], int gr,
28                          III_psy_ratio ratio[2][2],
29                          III_psy_ratio MS_ratio[2][2],
30                          FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
31 
32 int     L3psycho_anal_vbr(lame_internal_flags * gfc,
33                           const sample_t *const buffer[2], int gr,
34                           III_psy_ratio ratio[2][2],
35                           III_psy_ratio MS_ratio[2][2],
36                           FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
37 
38 
39 int     psymodel_init(lame_global_flags const* gfp);
40 
41 
42 #define rpelev 2
43 #define rpelev2 16
44 #define rpelev_s 2
45 #define rpelev2_s 16
46 
47 /* size of each partition band, in barks: */
48 #define DELBARK .34
49 
50 
51 /* tuned for output level (sensitive to energy scale) */
52 #define VO_SCALE (1./( 14752*14752 )/(BLKSIZE/2))
53 
54 #define temporalmask_sustain_sec 0.01
55 
56 #define NS_PREECHO_ATT0 0.8
57 #define NS_PREECHO_ATT1 0.6
58 #define NS_PREECHO_ATT2 0.3
59 
60 #define NS_MSFIX 3.5
61 #define NSATTACKTHRE 4.4
62 #define NSATTACKTHRE_S 25
63 
64 #endif /* LAME_PSYMODEL_H */
65