4 * Copyright (c) 1999 Mark Taylor
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.
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.
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.
22 #ifndef LAME_PSYMODEL_H
23 #define LAME_PSYMODEL_H
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]);
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]);
39 int psymodel_init(lame_global_flags const* gfp);
47 /* size of each partition band, in barks: */
51 /* tuned for output level (sensitive to energy scale) */
52 #define VO_SCALE (1./( 14752*14752 )/(BLKSIZE/2))
54 #define temporalmask_sustain_sec 0.01
56 #define NS_PREECHO_ATT0 0.8
57 #define NS_PREECHO_ATT1 0.6
58 #define NS_PREECHO_ATT2 0.3
61 #define NSATTACKTHRE 4.4
62 #define NSATTACKTHRE_S 25
64 #endif /* LAME_PSYMODEL_H */