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
a2482ace
Commit
a2482ace
authored
Jan 11, 2008
by
Jean-Marc Valin
Browse files
Conversion to 18-band split and fixed a few related bugs.
parent
43e22481
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/modes.c
View file @
a2482ace
...
...
@@ -67,10 +67,11 @@ const int qpulses0[NBANDS ] = {7, 6, 5, 5, 4, 3, 3, 3, 3, 3, 3, 2,
const
int
qbank1
[
NBANDS128
+
2
]
=
{
0
,
2
,
4
,
6
,
8
,
12
,
16
,
20
,
24
,
28
,
36
,
44
,
52
,
68
,
84
,
116
,
128
};
const
int
qpulses1
[
NBANDS128
]
=
{
7
,
5
,
5
,
5
,
4
,
5
,
4
,
5
,
5
,
4
,
2
,
0
,
0
,
0
,
0
};
const
int
qpulses2
[
NBANDS128
]
=
{
28
,
24
,
20
,
16
,
24
,
20
,
18
,
12
,
10
,
10
,
-
7
,
-
4
,
0
,
0
,
0
};
const
int
qpulses2
[
NBANDS
]
=
{
28
,
25
,
23
,
20
,
18
,
15
,
13
,
11
,
10
,
8
,
8
,
7
,
7
,
-
6
,
-
5
,
-
4
,
-
1
,
-
1
};
//const int qpulses2[NBANDS128] = {28,24,20,16,24,20, 18, 12, 10, 10,-7, -4, 1, 1, 1, 1, 1, 1};
const
int
qpulses2s
[
NBANDS128
]
=
{
38
,
30
,
24
,
20
,
24
,
20
,
18
,
16
,
14
,
20
,
-
20
,
-
14
,
-
8
,
-
8
,
-
5
};
const
int
qpulses4s
[
NBANDS
128
]
=
{
38
,
3
5
,
32
,
28
,
25
,
23
,
21
,
1
9
,
20
,
18
,
19
,
20
,
20
,
22
,
16
,
12
,
10
,
8
};
const
int
qpulses4s
[
NBANDS
]
=
{
38
,
3
1
,
25
,
21
,
18
,
16
,
14
,
12
,
1
4
,
12
,
14
,
15
,
14
,
15
,
16
,
12
,
10
,
6
};
//const int qpulses4s[NBANDS128] ={38,35,30,27,24,22, 21, 20, 22, 20,20,20, 20, 20, 14, 12, 12, 12};
...
...
@@ -127,22 +128,22 @@ const CELTMode mode1 = {
/* Approx 58 kbps @ 44.1 kHz */
const
CELTMode
mode2
=
{
128
,
/**< overlap */
128
,
/**< mdctSize */
2
,
/**< nbMdctBlocks */
256
,
/**< overlap */
256
,
/**< mdctSize */
1
,
/**< nbMdctBlocks */
1
,
/**< channels */
NBANDS
128
,
/**< nbEBands */
PBANDS
128
,
/**< nbPBands */
PITCH_END
128
,
/**< pitchEnd */
NBANDS
,
/**< nbEBands */
PBANDS
,
/**< nbPBands */
PITCH_END
,
/**< pitchEnd */
qbank
1
,
/**< eBands */
pbank
1
,
/**< pBands*/
qbank
0
,
/**< eBands */
pbank
0
,
/**< pBands*/
qpulses2
,
/**< nbPulses */
0
.
7
,
/**< ePredCoef */
means
,
/**< eMeans */
decay
,
/**< eDecay */
0
.
8
,
/**< ePredCoef */
means
18
,
/**< eMeans */
decay
18
,
/**< eDecay */
};
const
CELTMode
mode3
=
{
...
...
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