Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
f8dda66a
Commit
f8dda66a
authored
Jan 10, 2008
by
Jean-Marc Valin
Browse files
Tuning of the stereo mode, including conversion to the 18-band split.
parent
a4833ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/modes.c
View file @
f8dda66a
...
...
@@ -70,6 +70,10 @@ const int qpulses1[NBANDS128] = {7, 5, 5, 5, 4, 5, 4, 5, 5, 4, 2, 0, 0, 0,
const
int
qpulses2
[
NBANDS128
]
=
{
28
,
24
,
20
,
16
,
24
,
20
,
18
,
12
,
10
,
10
,
-
7
,
-
4
,
0
,
0
,
0
};
const
int
qpulses2s
[
NBANDS128
]
=
{
38
,
30
,
24
,
20
,
24
,
20
,
18
,
16
,
14
,
20
,
-
20
,
-
14
,
-
8
,
-
8
,
-
5
};
const
int
qpulses4s
[
NBANDS128
]
=
{
38
,
35
,
32
,
28
,
25
,
23
,
21
,
19
,
20
,
18
,
19
,
20
,
20
,
20
,
18
,
16
,
16
,
16
};
//const int qpulses4s[NBANDS128] ={38,35,30,27,24,22, 21, 20, 22, 20,20,20, 20, 20, 14, 12, 12, 12};
const
int
pbank1
[
PBANDS128
+
2
]
=
{
0
,
2
,
4
,
6
,
8
,
12
,
20
,
28
,
PITCH_END128
,
128
};
//const int pbank1[PBANDS128+2] = {0, 4, 8, 12, 20, PITCH_END128, 128};
...
...
@@ -162,22 +166,22 @@ const CELTMode mode3 = {
/* Stereo mode around 120 kbps */
const
CELTMode
mode4
=
{
128
,
/**< overlap */
256
,
/**< overlap */
256
,
/**< mdctSize */
1
,
/**< nbMdctBlocks */
2
,
/**< channels */
NBANDS
256
,
/**< nbEBands */
PBANDS
256
,
/**< nbPBands */
PITCH_END
256
,
/**< pitchEnd */
NBANDS
,
/**< nbEBands */
PBANDS
,
/**< nbPBands */
PITCH_END
,
/**< pitchEnd */
qbank
3
,
/**< eBands */
pbank
3
,
/**< pBands*/
qpulses
2
s
,
/**< nbPulses */
qbank
0
,
/**< eBands */
pbank
0
,
/**< pBands*/
qpulses
4
s
,
/**< nbPulses */
0
.
7
,
/**< ePredCoef */
means
,
/**< eMeans */
decay
,
/**< eDecay */
0
.
8
,
/**< ePredCoef */
means
18
,
/**< eMeans */
decay
18
,
/**< eDecay */
};
const
CELTMode
const
*
celt_mode0
=
&
mode0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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