Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
6f2bc8cb
Commit
6f2bc8cb
authored
Oct 25, 2002
by
Josh Coalson
Browse files
make more local decls static
parent
0a685462
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/share/gain_analysis/gain_analysis.c
View file @
6f2bc8cb
...
...
@@ -113,24 +113,23 @@ typedef signed int Int32_t;
#define MAX_SAMPLES_PER_WINDOW (size_t) (MAX_SAMP_FREQ * RMS_WINDOW_TIME)
/* max. Samples per Time slice */
#define PINK_REF 64.82
/* 298640883795 */
/* calibration value */
Float_t
linprebuf
[
MAX_ORDER
*
2
];
Float_t
*
linpre
;
/* left input samples, with pre-buffer */
Float_t
lstepbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
Float_t
*
lstep
;
/* left "first step" (i.e. post first filter) samples */
Float_t
loutbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
Float_t
*
lout
;
/* left "out" (i.e. post second filter) samples */
Float_t
rinprebuf
[
MAX_ORDER
*
2
];
Float_t
*
rinpre
;
/* right input samples ... */
Float_t
rstepbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
Float_t
*
rstep
;
Float_t
routbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
Float_t
*
rout
;
unsigned
int
sampleWindow
;
/* number of samples required to reach number of milliseconds required for RMS window */
unsigned
long
totsamp
;
double
lsum
;
double
rsum
;
int
freqindex
;
int
first
;
static
Float_t
linprebuf
[
MAX_ORDER
*
2
];
static
Float_t
*
linpre
;
/* left input samples, with pre-buffer */
static
Float_t
lstepbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
static
Float_t
*
lstep
;
/* left "first step" (i.e. post first filter) samples */
static
Float_t
loutbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
static
Float_t
*
lout
;
/* left "out" (i.e. post second filter) samples */
static
Float_t
rinprebuf
[
MAX_ORDER
*
2
];
static
Float_t
*
rinpre
;
/* right input samples ... */
static
Float_t
rstepbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
static
Float_t
*
rstep
;
static
Float_t
routbuf
[
MAX_SAMPLES_PER_WINDOW
+
MAX_ORDER
];
static
Float_t
*
rout
;
static
unsigned
int
sampleWindow
;
/* number of samples required to reach number of milliseconds required for RMS window */
static
unsigned
long
totsamp
;
static
double
lsum
;
static
double
rsum
;
static
int
freqindex
;
static
Uint32_t
A
[(
size_t
)(
STEPS_per_dB
*
MAX_dB
)];
static
Uint32_t
B
[(
size_t
)(
STEPS_per_dB
*
MAX_dB
)];
...
...
@@ -141,7 +140,7 @@ static Uint32_t B [(size_t)(STEPS_per_dB * MAX_dB)];
#pragma warning ( disable : 4305 )
#endif
const
Float_t
AYule
[
9
]
[
11
]
=
{
static
const
Float_t
AYule
[
9
]
[
11
]
=
{
{
1
.,
-
3
.
84664617118067
,
7
.
81501653005538
,
-
11
.
34170355132042
,
13
.
0550421
9327545
,
-
12
.
28759895145294
,
9
.
48293806319790
,
-
5
.
87257861775999
,
2
.
75465861874613
,
-
0
.
86984376593551
,
0
.
13919314567432
},
{
1
.,
-
3
.
47845948550071
,
6
.
36317777566148
,
-
8
.
54751527471874
,
9
.
47693607801280
,
-
8
.
81498681370155
,
6
.
85401540936998
,
-
4
.
39470996079559
,
2
.
19611684890774
,
-
0
.
75104302451432
,
0
.
13149317958808
},
{
1
.,
-
2
.
37898834973084
,
2
.
84868151156327
,
-
2
.
64577170229825
,
2
.
23697657451713
,
-
1
.
67148153367602
,
1
.
005
95954808547
,
-
0
.
45953458054983
,
0
.
16378164858596
,
-
0
.
05032077717131
,
0
.
02347
897407020
},
...
...
@@ -153,7 +152,7 @@ const Float_t AYule [9] [11] = {
{
1
.,
-
0
.
25049871956020
,
-
0
.
43193942311114
,
-
0
.
034246
81017675
,
-
0
.
0467
8328784242
,
0
.
26408300200955
,
0
.
15113130533216
,
-
0
.
17556493366449
,
-
0
.
18823009262115
,
0
.
0547772042
8674
,
0
.
0470440
9688120
}
};
const
Float_t
BYule
[
9
]
[
11
]
=
{
static
const
Float_t
BYule
[
9
]
[
11
]
=
{
{
0
.
03
857599435200
,
-
0
.
021603671
84185
,
-
0
.
001233
95316851
,
-
0
.
0000
9291677959
,
-
0
.
0165526034161
9
,
0
.
02161526
843274
,
-
0
.
020740452152
85
,
0
.
005
94298065125
,
0
.
0030642
8023191
,
0
.
00012025322027
,
0
.
002
88463683916
},
{
0
.
0541
8656406430
,
-
0
.
02
911007808948
,
-
0
.
00
848709379851
,
-
0
.
00
851165645469
,
-
0
.
00
834990904936
,
0
.
022452
93253339
,
-
0
.
025
96338512915
,
0
.
01624
864962975
,
-
0
.
00240
879051584
,
0
.
006746136
82247
,
-
0
.
001
87763777362
},
{
0
.
15457299681924
,
-
0
.
09331049056315
,
-
0
.
06247
880153653
,
0
.
02163541
888798
,
-
0
.
055
88393329856
,
0
.
047
81476674921
,
0
.
002223125
97743
,
0
.
031740
92540049
,
-
0
.
013
90589421898
,
0
.
00651420667
831
,
-
0
.
00
881362733839
},
...
...
@@ -165,7 +164,7 @@ const Float_t BYule [9] [11] = {
{
0
.
53648789255105
,
-
0
.
42163034350696
,
-
0
.
00275
953611929
,
0
.
04267
842219415
,
-
0
.
10214864179676
,
0
.
14590772289388
,
-
0
.
0245
9864859345
,
-
0
.
11202315195388
,
-
0
.
04060034127000
,
0
.
047
88665548180
,
-
0
.
02217
936801134
}
};
const
Float_t
AButter
[
9
]
[
3
]
=
{
static
const
Float_t
AButter
[
9
]
[
3
]
=
{
{
1
.,
-
1
.
97223372919527
,
0
.
97261396931306
},
{
1
.,
-
1
.
96977855582618
,
0
.
97022847566350
},
{
1
.,
-
1
.
95835380975398
,
0
.
95920349965459
},
...
...
@@ -177,7 +176,7 @@ const Float_t AButter [9] [3] = {
{
1
.,
-
1
.
88903307939452
,
0
.
89487434461664
}
};
const
Float_t
BButter
[
9
]
[
3
]
=
{
static
const
Float_t
BButter
[
9
]
[
3
]
=
{
{
0
.
98621192462708
,
-
1
.
97242384925416
,
0
.
98621192462708
},
{
0
.
98500175787242
,
-
1
.
97000351574484
,
0
.
98500175787242
},
{
0
.
97938932735214
,
-
1
.
95877865470428
,
0
.
97938932735214
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment