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
aa5bd61c
Commit
aa5bd61c
authored
17 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Another experimental mode with longer frames.
parent
6baa8e18
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcelt/celt.h
+1
-0
1 addition, 0 deletions
libcelt/celt.h
libcelt/modes.c
+20
-0
20 additions, 0 deletions
libcelt/modes.c
with
21 additions
and
0 deletions
libcelt/celt.h
+
1
−
0
View file @
aa5bd61c
...
...
@@ -39,6 +39,7 @@ typedef struct CELTMode CELTMode;
extern
const
CELTMode
const
*
celt_mode1
;
extern
const
CELTMode
const
*
celt_mode2
;
extern
const
CELTMode
const
*
celt_mode3
;
/* Encoder stuff */
...
...
This diff is collapsed.
Click to expand it.
libcelt/modes.c
+
20
−
0
View file @
aa5bd61c
...
...
@@ -42,6 +42,10 @@ const int qpulses2[NBANDS128] = {28,24,20,16,24,20, 18, 12, 10, 10,-7, -4, 0,
const
int
pbank1
[
PBANDS128
+
2
]
=
{
0
,
4
,
8
,
12
,
20
,
PITCH_END128
,
128
};
const
int
qbank3
[
NBANDS128
+
2
]
=
{
0
,
4
,
8
,
12
,
16
,
24
,
32
,
40
,
48
,
56
,
72
,
88
,
104
,
126
,
168
,
232
,
256
};
#define PITCH_END256 72
const
int
pbank3
[
PBANDS128
+
2
]
=
{
0
,
8
,
16
,
24
,
40
,
PITCH_END256
,
256
};
/* Approx 38 kbps @ 44.1 kHz */
const
CELTMode
mode1
=
{
256
,
/**< frameSize */
...
...
@@ -72,5 +76,21 @@ const CELTMode mode2 = {
qpulses2
/**< nbPulses */
};
/* Approx 38 kbps @ 44.1 kHz */
const
CELTMode
mode3
=
{
512
,
/**< frameSize */
256
,
/**< mdctSize */
2
,
/**< nbMdctBlocks */
NBANDS128
,
/**< nbEBands */
PBANDS128
,
/**< nbPBands */
PITCH_END256
,
/**< pitchEnd */
qbank3
,
/**< eBands */
pbank3
,
/**< pBands*/
qpulses2
/**< nbPulses */
};
const
CELTMode
const
*
celt_mode1
=
&
mode1
;
const
CELTMode
const
*
celt_mode2
=
&
mode2
;
const
CELTMode
const
*
celt_mode3
=
&
mode3
;
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