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
62518162
Commit
62518162
authored
14 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
draft work
parent
81e886ed
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
doc/draft-ietf-codec-opus.xml
+29
-16
29 additions, 16 deletions
doc/draft-ietf-codec-opus.xml
with
29 additions
and
16 deletions
doc/draft-ietf-codec-opus.xml
+
29
−
16
View file @
62518162
...
...
@@ -520,14 +520,14 @@ Insert decoder figure.
<c>
spread
</c>
<c>
[7, 2, 21, 2]/32
</c><c></c>
<c>
dyn. alloc.
</c>
<c><xref
target=
"allocation"
/></c><c></c>
<c>
alloc. trim
</c>
<c>
[2, 2, 5, 10, 22, 46, 22, 10, 5, 2, 2]/128
</c><c></c>
<c>
skip
(*)
</c>
<c>
[1, 1]/2
</c><c><xref
target=
"allocation"
/></c>
<c>
intensity
(*)
</c><c>
uniform
</c><c><xref
target=
"allocation"
/></c>
<c>
dual
(*)
</c>
<c>
[1, 1]/2
</c><c></c>
<c>
skip
</c>
<c>
[1, 1]/2
</c><c><xref
target=
"allocation"
/></c>
<c>
intensity
</c>
<c>
uniform
</c><c><xref
target=
"allocation"
/></c>
<c>
dual
</c>
<c>
[1, 1]/2
</c><c></c>
<c>
fine energy
</c>
<c><xref
target=
"energy-decoding"
/></c><c></c>
<c>
residual
</c>
<c><xref
target=
"PVQ-decoder"
/></c><c></c>
<c>
anti-collapse
</c><c>
[1, 1]/2
</c><c>
transient, 4-8 blocks
</c>
<c>
anti-collapse
</c><c>
[1, 1]/2
</c><c>
<xref
target=
"anti-collapse"
/>
</c>
<c>
finalize
</c>
<c><xref
target=
"energy-decoding"
/></c><c></c>
<postamble>
Order of the symbols in the CELT section of the bit-stream
</postamble>
<postamble>
Order of the symbols in the CELT section of the bit-stream
.
</postamble>
</texttable>
<t>
...
...
@@ -686,10 +686,21 @@ the quantization process.
</section>
<section
anchor=
"PVQ-decoder"
title=
"S
pherical VQ
Decoder"
>
<section
anchor=
"PVQ-decoder"
title=
"S
hape
Decoder"
>
<t>
In order to correctly decode the PVQ codewords, the decoder must perform exactly the same
bits to pulses conversion as the encoder.
In each band, the normalized
<spanx
style=
"emph"
>
shape
</spanx>
is encoded
using a vector quantization scheme called a "Pyramid vector quantizer".
</t>
<t>
In
the simplest case, the number of bits allocated in
<xref
target=
"allocation"
></xref>
is converted to a number of pulses as described
by
<xref
target=
"bits-pulses"
></xref>
. Knowing the number of pulses and the
number of samples in the band, the decoder calculates the size of the codebook
as detailed in
<xref
target=
"cwrs-decoder"
></xref>
. The size is used to decode
an unsigned integer (uniform probability model), which is the codeword index.
This index is converted into the corresponding vector as explained in
<xref
target=
"cwrs-decoder"
></xref>
. This vector is then scaled to unit norm.
</t>
<section
anchor=
"bits-pulses"
title=
"Bits to Pulses"
>
...
...
@@ -718,19 +729,21 @@ decode_pulses() (cwrs.c).
</t>
</section>
<section
anchor=
"
normalised-decoding"
title=
"Normalised Vector Deco
ding"
>
<section
anchor=
"
spreading"
title=
"Sprea
ding"
>
<t>
The spherical codebook is decoded by alg_unquant() (vq.c).
The index of the PVQ entry is obtained from the range coder and converted to
a pulse vector by decode_pulses() (cwrs.c).
</t>
</section>
<t>
The decoded normalized vector for each band is equal to
</t>
<t>
X' = y/||y||,
</t>
<section
anchor=
"split"
title=
"Split decoding"
>
<t>
To avoid the need for multi-precision calculations when decoding PVQ codevectors,
the maximum size allowed for codebooks is 32 bits. When larger codebooks are
needed, the vector is instead split in two sub-vectors.
</t>
</section>
<section
anchor=
"tf-change"
title=
"Time-Frequency change"
>
<t>
This operation is implemented in mix_pitch_and_residual() (vq.c),
which is the same function as used in the encoder.
</t>
</section>
...
...
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