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
907892ee
Commit
907892ee
authored
Jun 01, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename functions
Originally committed as revision 13597 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d981252c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ra144.c
libavcodec/ra144.c
+6
-6
No files found.
libavcodec/ra144.c
View file @
907892ee
...
...
@@ -73,9 +73,9 @@ static int t_sqrt(unsigned int x)
/**
* Evaluate the LPC filter coefficients from the reflection coefficients.
* Does the inverse of the e
q
() function.
* Does the inverse of the e
val_refl
() function.
*/
static
void
do_voice
(
const
int
*
refl
,
int
*
coefs
)
static
void
eval_coefs
(
const
int
*
refl
,
int
*
coefs
)
{
int
buffer
[
10
];
int
*
b1
=
buffer
;
...
...
@@ -251,12 +251,12 @@ static int dec1(int16_t *decsp, const int *data, const int *inp, int f)
/**
* Evaluate the reflection coefficients from the filter coefficients.
* Does the inverse of the
do_voice
() function.
* Does the inverse of the
eval_coefs
() function.
*
* @return 1 if one of the reflection coefficients is of magnitude greater than
* 4095, 0 if not.
*/
static
int
e
q
(
const
int16_t
*
coefs
,
int
*
refl
)
static
int
e
val_refl
(
const
int16_t
*
coefs
,
int
*
refl
)
{
int
retval
=
0
;
int
b
,
c
,
i
;
...
...
@@ -312,7 +312,7 @@ static int dec2(RA144Context *ractx, int16_t *decsp, int block_num,
for
(
x
=
0
;
x
<
30
;
x
++
)
decsp
[
x
]
=
(
a
*
ractx
->
lpc_coef
[
x
]
+
b
*
ractx
->
lpc_coef_old
[
x
])
>>
2
;
if
(
e
q
(
decsp
,
work
))
{
if
(
e
val_refl
(
decsp
,
work
))
{
// The interpolated coefficients are unstable, copy either new or old
// coefficients
if
(
copynew
)
...
...
@@ -350,7 +350,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
// "<< 1"? Doesn't this make one value out of two of the table useless?
ractx
->
lpc_refl
[
i
]
=
decodetable
[
i
][
get_bits
(
&
gb
,
sizes
[
i
])
<<
1
];
do_voice
(
ractx
->
lpc_refl
,
ractx
->
lpc_coef
);
eval_coefs
(
ractx
->
lpc_refl
,
ractx
->
lpc_coef
);
energy
=
decodeval
[
get_bits
(
&
gb
,
5
)
<<
1
];
// Useless table entries?
...
...
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