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
2a7b6f25
Commit
2a7b6f25
authored
May 26, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename var: val -> energy
Originally committed as revision 13433 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e037baf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ra144.c
libavcodec/ra144.c
+9
-9
No files found.
libavcodec/ra144.c
View file @
2a7b6f25
...
...
@@ -31,7 +31,7 @@
/* internal globals */
typedef
struct
{
unsigned
int
old
val
;
unsigned
int
old
_energy
;
/* the swapped buffers */
unsigned
int
lpc_tables
[
4
][
10
];
...
...
@@ -312,7 +312,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
unsigned
int
a
,
c
;
int
i
;
int16_t
*
data
=
vdata
;
unsigned
int
val
;
unsigned
int
energy
;
RA144Context
*
ractx
=
avctx
->
priv_data
;
GetBitContext
gb
;
...
...
@@ -330,17 +330,17 @@ static int ra144_decode_frame(AVCodecContext * avctx,
do_voice
(
ractx
->
lpc_refl
,
ractx
->
lpc_coef
);
val
=
decodeval
[
get_bits
(
&
gb
,
5
)
<<
1
];
// Useless table entries?
a
=
t_sqrt
(
val
*
ractx
->
oldval
)
>>
12
;
energy
=
decodeval
[
get_bits
(
&
gb
,
5
)
<<
1
];
// Useless table entries?
a
=
t_sqrt
(
energy
*
ractx
->
old_energy
)
>>
12
;
gbuf1
[
0
]
=
dec2
(
gbuf2
[
0
],
ractx
->
lpc_refl_old
,
ractx
->
lpc_coef_old
,
ractx
->
old
val
,
ractx
->
lpc_coef
,
3
);
if
(
ractx
->
old
val
<
val
)
{
gbuf1
[
0
]
=
dec2
(
gbuf2
[
0
],
ractx
->
lpc_refl_old
,
ractx
->
lpc_coef_old
,
ractx
->
old
_energy
,
ractx
->
lpc_coef
,
3
);
if
(
ractx
->
old
_energy
<
energy
)
{
gbuf1
[
1
]
=
dec2
(
gbuf2
[
1
],
ractx
->
lpc_refl
,
ractx
->
lpc_coef
,
a
,
ractx
->
lpc_coef_old
,
2
);
}
else
{
gbuf1
[
1
]
=
dec2
(
gbuf2
[
1
],
ractx
->
lpc_refl_old
,
ractx
->
lpc_coef_old
,
a
,
ractx
->
lpc_coef
,
2
);
}
gbuf1
[
2
]
=
dec2
(
gbuf2
[
2
],
ractx
->
lpc_refl
,
ractx
->
lpc_coef
,
val
,
ractx
->
lpc_coef_old
,
3
);
gbuf1
[
3
]
=
dec1
(
gbuf2
[
3
],
ractx
->
lpc_refl
,
ractx
->
lpc_coef
,
val
);
gbuf1
[
2
]
=
dec2
(
gbuf2
[
2
],
ractx
->
lpc_refl
,
ractx
->
lpc_coef
,
energy
,
ractx
->
lpc_coef_old
,
3
);
gbuf1
[
3
]
=
dec1
(
gbuf2
[
3
],
ractx
->
lpc_refl
,
ractx
->
lpc_coef
,
energy
);
/* do output */
for
(
c
=
0
;
c
<
4
;
c
++
)
{
...
...
@@ -352,7 +352,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
}
}
ractx
->
old
val
=
val
;
ractx
->
old
_energy
=
energy
;
FFSWAP
(
unsigned
int
*
,
ractx
->
lpc_refl_old
,
ractx
->
lpc_refl
);
FFSWAP
(
unsigned
int
*
,
ractx
->
lpc_coef_old
,
ractx
->
lpc_coef
);
...
...
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