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
95c59ea6
Commit
95c59ea6
authored
Jan 08, 2008
by
Jean-Marc Valin
Browse files
Updated the 18-band mode (mode0) to use the low-overlap MDCT
parent
2c53c149
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcelt/modes.c
View file @
95c59ea6
...
...
@@ -33,7 +33,7 @@
#define NBANDS 18
#define PBANDS 8
#define PITCH_END
3
7
#define PITCH_END 7
4
#define NBANDS128 15
#define PBANDS128 8
...
...
@@ -57,10 +57,10 @@ static const int decay18[18] = {
14800
,
13800
,
12600
,
12000
,
11000
,
11000
,
10000
,
10000
,
9800
,
8400
,
8400
,
8000
,
7500
,
7000
,
7000
,
7000
,
6000
,
6000
};
const
int
qbank0
[
NBANDS
+
2
]
=
{
0
,
2
,
4
,
6
,
8
,
1
0
,
12
,
14
,
16
,
19
,
2
2
,
2
6
,
3
1
,
3
7
,
4
5
,
56
,
7
1
,
9
1
,
116
,
128
};
const
int
pbank0
[
PBANDS
+
2
]
=
{
0
,
2
,
4
,
6
,
8
,
12
,
1
9
,
31
,
PITCH_END
,
128
};
const
int
qbank0
[
NBANDS
+
2
]
=
{
0
,
4
,
8
,
1
2
,
16
,
20
,
2
4
,
2
8
,
3
2
,
3
8
,
4
4
,
52
,
62
,
7
4
,
9
0
,
112
,
142
,
182
,
232
,
256
};
const
int
pbank0
[
PBANDS
+
2
]
=
{
0
,
4
,
8
,
12
,
1
6
,
24
,
38
,
62
,
PITCH_END
,
256
};
//const int pbank0[PBANDS +2] = {0, 4, 8, 12, 19, PITCH_END, 128};
const
int
qpulses0
[
NBANDS
]
=
{
7
,
5
,
5
,
4
,
4
,
3
,
3
,
2
,
3
,
2
,
2
,
2
,
2
,
1
,
0
,
0
,
0
,
0
};
const
int
qpulses0
[
NBANDS
]
=
{
7
,
6
,
5
,
5
,
4
,
3
,
3
,
3
,
3
,
3
,
3
,
2
,
2
,
1
,
0
,
0
,
0
,
0
};
//const int qpulses0[NBANDS ] = {7, 5, 5, 5, 4, 4, 3, 3, 3, 3, 4, 3, 3, -2, 0, 0, 0, 0};
...
...
@@ -83,8 +83,8 @@ const int pbank3[PBANDS256+2] = {0, 4, 8, 12, 16, 24, 40, 56, PITCH_END128, 128}
const
CELTMode
mode0
=
{
128
,
/**< overlap */
128
,
/**< mdctSize */
2
,
/**< nbMdctBlocks */
256
,
/**< mdctSize */
1
,
/**< nbMdctBlocks */
1
,
/**< channels */
NBANDS
,
/**< nbEBands */
...
...
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