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
5c0d486f
Commit
5c0d486f
authored
16 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Better bit allocation for all frame sizes that are not equal to 256.
parent
1d27ef8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README
+1
-1
1 addition, 1 deletion
README
TODO
+4
-7
4 additions, 7 deletions
TODO
libcelt/modes.c
+5
-2
5 additions, 2 deletions
libcelt/modes.c
with
10 additions
and
10 deletions
README
+
1
−
1
View file @
5c0d486f
...
...
@@ -8,7 +8,7 @@ To compile:
% make
To test the encoder:
% testcelt <rate> <channels> <frame size>
<overlap>
<bytes per packet> input.sw output.sw
% testcelt <rate> <channels> <frame size> <bytes per packet> input.sw output.sw
where input.sw is a 16-bit (machine endian) audio file sampled at
44.1 kHz or 48 kHz. The output file is already decompressed.
...
...
This diff is collapsed.
Click to expand it.
TODO
+
4
−
7
View file @
5c0d486f
- Check minimum width of bands
- Adjust the energy resolution based on the bit-rate
- Revisit energy resolution based on the bit-rate
- Revisit static bit allocation (as a function of frame size and channels)
- Dynamic adjustment of energy quantisation
- Psychacoustics
* Error shaping within each band
* De
s
isions on the rate
- Intensity stereo
option (e.g. threshold)
* De
c
isions on the rate
- Intensity stereo
decisions
- Dynamic (intra-frame) bit allocation
- Joint encoding of stereo energy
- Disable intra-frame prediction for more than X pulses
- Remove contraction?
- Simplify search?
- Remove pulse spreading?
- Encode band shape (or just tilt)?
- Make energy encoding more robust to losses?
This diff is collapsed.
Click to expand it.
libcelt/modes.c
+
5
−
2
View file @
5c0d486f
...
...
@@ -208,11 +208,14 @@ static void compute_allocation_table(CELTMode *mode, int res)
eband
=
0
;
for
(
j
=
0
;
j
<
BARK_BANDS
;
j
++
)
{
int
edge
,
low
,
alloc
;
int
edge
,
low
;
celt_int32_t
alloc
;
edge
=
mode
->
eBands
[
eband
+
1
]
*
res
;
alloc
=
band_allocation
[
i
*
BARK_BANDS
+
j
];
if
(
mode
->
nbChannels
==
2
)
alloc
+=
alloc
/
2
;
alloc
=
alloc
*
3
*
mode
->
mdctSize
/
512
;
else
alloc
=
alloc
*
mode
->
mdctSize
/
256
;
if
(
edge
<
bark_freq
[
j
+
1
])
{
int
num
,
den
;
...
...
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