Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
ea17d423
Commit
ea17d423
authored
14 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Removing uselessly low bitrate allocation entries
parent
743abbba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcelt/modes.c
+2
-4
2 additions, 4 deletions
libcelt/modes.c
with
2 additions
and
4 deletions
libcelt/modes.c
+
2
−
4
View file @
ea17d423
...
...
@@ -92,7 +92,7 @@ static const celt_int16 bark_freq[BARK_BANDS+1] = {
/* This allocation table is per critical band. When creating a mode, the bits get added together
into the codec bands, which are sometimes larger than one critical band at low frequency */
#define BITALLOC_SIZE 1
2
#define BITALLOC_SIZE 1
0
static
const
celt_int16
eband5ms
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
10
,
12
,
14
,
16
,
20
,
24
,
28
,
34
,
40
,
48
,
60
,
78
,
100
...
...
@@ -100,9 +100,7 @@ static const celt_int16 eband5ms[] = {
static
const
unsigned
char
band_allocation
[]
=
{
/* 0 200 400 600 800 1k 1.2 1.4 1.6 2k 2.4 2.8 3.2 4k 4.8 5.6 6.8 8k 9.6 12k 15.6 */
10
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
3
,
8
,
2
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
6
,
8
,
6
,
5
,
4
,
3
,
2
,
7
,
10
,
11
,
9
,
7
,
3
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
10
,
10
,
14
,
11
,
10
,
8
,
6
,
5
,
10
,
12
,
13
,
11
,
8
,
4
,
2
,
1
,
0
,
0
,
0
,
0
,
0
,
13
,
10
,
17
,
16
,
14
,
12
,
10
,
8
,
12
,
14
,
14
,
12
,
9
,
5
,
3
,
2
,
2
,
1
,
0
,
0
,
0
,
17
,
21
,
23
,
26
,
24
,
20
,
17
,
16
,
17
,
18
,
16
,
14
,
11
,
6
,
3
,
2
,
2
,
1
,
1
,
0
,
0
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment