Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d1a643e7
Commit
d1a643e7
authored
Jun 24, 2009
by
Vladimir Voroshilov
Committed by
Michael Niedermayer
Sep 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doxy for LSF erasure case
parent
b29e5a67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
g729data.h
libavcodec/g729data.h
+9
-0
g729dec.c
libavcodec/g729dec.c
+7
-0
No files found.
libavcodec/g729data.h
View file @
d1a643e7
...
...
@@ -293,6 +293,15 @@ static const int16_t cb_ma_predictor_sum[2][10] = { /* (0.15) */
{
14585
,
18333
,
19772
,
17344
,
16426
,
16459
,
15155
,
15220
,
16043
,
15708
}
};
/**
* 12
* 2
* cb_ma_predictor_sum_inv[j][i] = floor(---------------------------------------------)
* 3
* 1.0 - sum ( cb_ma_predictor_float[j][k][i] )
* k=0
* j=0..1, i=0..9
*/
static
const
int16_t
cb_ma_predictor_sum_inv
[
2
][
10
]
=
{
/* (3.12) */
{
17210
,
15888
,
16357
,
16183
,
16516
,
15833
,
15888
,
15421
,
14840
,
15597
},
{
9202
,
7320
,
6788
,
7738
,
8170
,
8154
,
8856
,
8818
,
8366
,
8544
}
...
...
libavcodec/g729dec.c
View file @
d1a643e7
...
...
@@ -171,6 +171,13 @@ static void lsf_decode(int16_t* lsfq, int16_t* past_quantizer_outputs[MA_NP + 1]
ff_acelp_reorder_lsf
(
lsfq
,
LSFQ_DIFF_MIN
,
LSFQ_MIN
,
LSFQ_MAX
,
10
);
}
/**
* Restores past LSP quantizer output using LSF from previous frame
* @param lsfq [in/out] (2.13) quantized LSF coefficients
* @param past_quantizer_outputs [in/out] (2.13) quantizer outputs from previous frames
* @param ma_predictor_prev MA predictor from previous frame
* @param lsfq_prev (2.13) quantized LSF coefficients from previous frame
*/
static
void
lsf_restore_from_previous
(
int16_t
*
lsfq
,
int16_t
*
past_quantizer_outputs
[
MA_NP
+
1
],
int
ma_predictor_prev
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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