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
aae1c247
Commit
aae1c247
authored
Aug 09, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ra288: avoid one multiply
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d5d74cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ra288.c
libavcodec/ra288.c
+3
-3
No files found.
libavcodec/ra288.c
View file @
aae1c247
...
@@ -96,14 +96,14 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
...
@@ -96,14 +96,14 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
for
(
i
=
0
;
i
<
5
;
i
++
)
for
(
i
=
0
;
i
<
5
;
i
++
)
buffer
[
i
]
=
codetable
[
cb_coef
][
i
]
*
sumsum
;
buffer
[
i
]
=
codetable
[
cb_coef
][
i
]
*
sumsum
;
sum
=
ff_dot_productf
(
buffer
,
buffer
,
5
)
*
((
1
<<
24
)
/
5
.)
;
sum
=
ff_dot_productf
(
buffer
,
buffer
,
5
);
sum
=
FFMAX
(
sum
,
1
);
sum
=
FFMAX
(
sum
,
5
.
/
(
1
<<
24
)
);
/* shift and store */
/* shift and store */
memmove
(
gain_block
,
gain_block
+
1
,
9
*
sizeof
(
*
gain_block
));
memmove
(
gain_block
,
gain_block
+
1
,
9
*
sizeof
(
*
gain_block
));
gain_block
[
9
]
=
10
*
log10
(
sum
)
-
32
;
gain_block
[
9
]
=
10
*
log10
(
sum
)
+
(
10
*
log10
(((
1
<<
24
)
/
5
.))
-
32
)
;
ff_celp_lp_synthesis_filterf
(
block
,
ractx
->
sp_lpc
,
buffer
,
5
,
36
);
ff_celp_lp_synthesis_filterf
(
block
,
ractx
->
sp_lpc
,
buffer
,
5
,
36
);
}
}
...
...
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