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
a92a1b93
Commit
a92a1b93
authored
Sep 28, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dca: use vector_fmac_scalar from dsputil
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
fcca826a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
dca.c
libavcodec/dca.c
+2
-5
No files found.
libavcodec/dca.c
View file @
a92a1b93
...
...
@@ -1829,11 +1829,8 @@ static int dca_decode_frame(AVCodecContext * avctx,
float
*
back_chan
=
s
->
samples
+
s
->
channel_order_tab
[
s
->
xch_base_channel
]
*
256
;
float
*
lt_chan
=
s
->
samples
+
s
->
channel_order_tab
[
s
->
xch_base_channel
-
2
]
*
256
;
float
*
rt_chan
=
s
->
samples
+
s
->
channel_order_tab
[
s
->
xch_base_channel
-
1
]
*
256
;
int
j
;
for
(
j
=
0
;
j
<
256
;
++
j
)
{
lt_chan
[
j
]
-=
back_chan
[
j
]
*
M_SQRT1_2
;
rt_chan
[
j
]
-=
back_chan
[
j
]
*
M_SQRT1_2
;
}
s
->
dsp
.
vector_fmac_scalar
(
lt_chan
,
back_chan
,
-
M_SQRT1_2
,
256
);
s
->
dsp
.
vector_fmac_scalar
(
rt_chan
,
back_chan
,
-
M_SQRT1_2
,
256
);
}
if
(
avctx
->
sample_fmt
==
AV_SAMPLE_FMT_FLT
)
{
...
...
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