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