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
98cc8e18
Commit
98cc8e18
authored
Jun 19, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename vars: s/decsp/out/
Originally committed as revision 13823 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ea4b6966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ra144.c
libavcodec/ra144.c
+7
-7
No files found.
libavcodec/ra144.c
View file @
98cc8e18
...
...
@@ -238,12 +238,12 @@ static void do_output_subblock(RA144Context *ractx,
lpc_filter
(
lpc_coefs
,
block
,
output_buffer
,
ractx
->
buffer
,
BLOCKSIZE
);
}
static
void
int_to_int16
(
int16_t
*
decsp
,
const
int
*
inp
)
static
void
int_to_int16
(
int16_t
*
out
,
const
int
*
inp
)
{
int
i
;
for
(
i
=
0
;
i
<
30
;
i
++
)
*
(
decsp
++
)
=
*
(
inp
++
);
*
(
out
++
)
=
*
(
inp
++
);
}
/**
...
...
@@ -298,7 +298,7 @@ static int eval_refl(const int16_t *coefs, int *refl, RA144Context *ractx)
return
retval
;
}
static
int
interp
(
RA144Context
*
ractx
,
int16_t
*
decsp
,
int
block_num
,
static
int
interp
(
RA144Context
*
ractx
,
int16_t
*
out
,
int
block_num
,
int
copynew
,
int
energy
)
{
int
work
[
10
];
...
...
@@ -309,16 +309,16 @@ static int interp(RA144Context *ractx, int16_t *decsp, int block_num,
// Interpolate block coefficients from the this frame forth block and
// last frame forth block
for
(
x
=
0
;
x
<
30
;
x
++
)
decsp
[
x
]
=
(
a
*
ractx
->
lpc_coef
[
x
]
+
b
*
ractx
->
lpc_coef_old
[
x
])
>>
2
;
out
[
x
]
=
(
a
*
ractx
->
lpc_coef
[
x
]
+
b
*
ractx
->
lpc_coef_old
[
x
])
>>
2
;
if
(
eval_refl
(
decsp
,
work
,
ractx
))
{
if
(
eval_refl
(
out
,
work
,
ractx
))
{
// The interpolated coefficients are unstable, copy either new or old
// coefficients
if
(
copynew
)
{
int_to_int16
(
decsp
,
ractx
->
lpc_coef
);
int_to_int16
(
out
,
ractx
->
lpc_coef
);
return
rescale_rms
(
ractx
->
lpc_refl_rms
,
energy
);
}
else
{
int_to_int16
(
decsp
,
ractx
->
lpc_coef_old
);
int_to_int16
(
out
,
ractx
->
lpc_coef_old
);
return
rescale_rms
(
ractx
->
lpc_refl_rms_old
,
energy
);
}
}
else
{
...
...
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