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
95c6b5eb
Commit
95c6b5eb
authored
Mar 11, 2010
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spelling.
Originally committed as revision 22470 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
34056cbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
acelp_vectors.c
libavcodec/acelp_vectors.c
+2
-2
acelp_vectors.h
libavcodec/acelp_vectors.h
+3
-3
amrnbdec.c
libavcodec/amrnbdec.c
+2
-2
sipr.c
libavcodec/sipr.c
+3
-3
No files found.
libavcodec/acelp_vectors.c
View file @
95c6b5eb
...
...
@@ -207,8 +207,8 @@ void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
+
weight_coeff_b
*
in_b
[
i
];
}
void
ff_adapt
at
ive_gain_control
(
float
*
buf_out
,
float
speech_energ
,
int
size
,
float
alpha
,
float
*
gain_mem
)
void
ff_adaptive_gain_control
(
float
*
buf_out
,
float
speech_energ
,
int
size
,
float
alpha
,
float
*
gain_mem
)
{
int
i
;
float
postfilter_energ
=
ff_dot_productf
(
buf_out
,
buf_out
,
size
);
...
...
libavcodec/acelp_vectors.h
View file @
95c6b5eb
...
...
@@ -212,7 +212,7 @@ void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
int
length
);
/**
* Adapt
at
ive gain control (as used in AMR postfiltering)
* Adaptive gain control (as used in AMR postfiltering)
*
* @param buf_out the input speech buffer
* @param speech_energ input energy
...
...
@@ -220,8 +220,8 @@ void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
* @param alpha exponential filter factor
* @param gain_mem a pointer to the filter memory (single float of size)
*/
void
ff_adapt
at
ive_gain_control
(
float
*
buf_out
,
float
speech_energ
,
int
size
,
float
alpha
,
float
*
gain_mem
);
void
ff_adaptive_gain_control
(
float
*
buf_out
,
float
speech_energ
,
int
size
,
float
alpha
,
float
*
gain_mem
);
/**
* Set the sum of squares of a signal by scaling
...
...
libavcodec/amrnbdec.c
View file @
95c6b5eb
...
...
@@ -943,8 +943,8 @@ static void postfilter(AMRContext *p, float *lpc, float *buf_out)
ff_tilt_compensation
(
&
p
->
tilt_mem
,
tilt_factor
(
lpc_n
,
lpc_d
),
buf_out
,
AMR_SUBFRAME_SIZE
);
ff_adapt
at
ive_gain_control
(
buf_out
,
speech_gain
,
AMR_SUBFRAME_SIZE
,
AMR_AGC_ALPHA
,
&
p
->
postfilter_agc
);
ff_adaptive_gain_control
(
buf_out
,
speech_gain
,
AMR_SUBFRAME_SIZE
,
AMR_AGC_ALPHA
,
&
p
->
postfilter_agc
);
}
/// @}
...
...
libavcodec/sipr.c
View file @
95c6b5eb
...
...
@@ -254,7 +254,7 @@ static void sipr_decode_lp(float *lsfnew, const float *lsfold, float *Az,
}
/**
* Evaluates the adapt
at
ive impulse response.
* Evaluates the adaptive impulse response.
*/
static
void
eval_ir
(
const
float
*
Az
,
int
pitch_lag
,
float
*
freq
,
float
pitch_sharp_factor
)
...
...
@@ -479,8 +479,8 @@ static void decode_frame(SiprContext *ctx, SiprParameters *params,
float
energy
=
ff_dot_productf
(
ctx
->
postfilter_syn5k0
+
LP_FILTER_ORDER
+
i
*
SUBFR_SIZE
,
ctx
->
postfilter_syn5k0
+
LP_FILTER_ORDER
+
i
*
SUBFR_SIZE
,
SUBFR_SIZE
);
ff_adapt
at
ive_gain_control
(
&
synth
[
i
*
SUBFR_SIZE
],
energy
,
SUBFR_SIZE
,
0
.
9
,
&
ctx
->
postfilter_agc
);
ff_adaptive_gain_control
(
&
synth
[
i
*
SUBFR_SIZE
],
energy
,
SUBFR_SIZE
,
0
.
9
,
&
ctx
->
postfilter_agc
);
}
memcpy
(
ctx
->
postfilter_syn5k0
,
ctx
->
postfilter_syn5k0
+
frame_size
,
...
...
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