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
e5c82df8
Commit
e5c82df8
authored
Jan 28, 2011
by
Alex Converse
Committed by
Mans Rullgard
Jan 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacdec: Convert some loop copies into memcpy()s.
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
85466e1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
aacdec.c
libavcodec/aacdec.c
+3
-6
No files found.
libavcodec/aacdec.c
View file @
e5c82df8
...
...
@@ -1723,8 +1723,7 @@ static void imdct_and_windowing(AACContext *ac, SingleChannelElement *sce)
(
ics
->
window_sequence
[
0
]
==
ONLY_LONG_SEQUENCE
||
ics
->
window_sequence
[
0
]
==
LONG_START_SEQUENCE
))
{
ac
->
dsp
.
vector_fmul_window
(
out
,
saved
,
buf
,
lwindow_prev
,
0
,
512
);
}
else
{
for
(
i
=
0
;
i
<
448
;
i
++
)
out
[
i
]
=
saved
[
i
];
memcpy
(
out
,
saved
,
448
*
sizeof
(
float
));
if
(
ics
->
window_sequence
[
0
]
==
EIGHT_SHORT_SEQUENCE
)
{
ac
->
dsp
.
vector_fmul_window
(
out
+
448
+
0
*
128
,
saved
+
448
,
buf
+
0
*
128
,
swindow_prev
,
0
,
64
);
...
...
@@ -1735,15 +1734,13 @@ static void imdct_and_windowing(AACContext *ac, SingleChannelElement *sce)
memcpy
(
out
+
448
+
4
*
128
,
temp
,
64
*
sizeof
(
float
));
}
else
{
ac
->
dsp
.
vector_fmul_window
(
out
+
448
,
saved
+
448
,
buf
,
swindow_prev
,
0
,
64
);
for
(
i
=
576
;
i
<
1024
;
i
++
)
out
[
i
]
=
buf
[
i
-
512
];
memcpy
(
out
+
576
,
buf
+
64
,
448
*
sizeof
(
float
));
}
}
// buffer update
if
(
ics
->
window_sequence
[
0
]
==
EIGHT_SHORT_SEQUENCE
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
saved
[
i
]
=
temp
[
64
+
i
];
memcpy
(
saved
,
temp
+
64
,
64
*
sizeof
(
float
));
ac
->
dsp
.
vector_fmul_window
(
saved
+
64
,
buf
+
4
*
128
+
64
,
buf
+
5
*
128
,
swindow
,
0
,
64
);
ac
->
dsp
.
vector_fmul_window
(
saved
+
192
,
buf
+
5
*
128
+
64
,
buf
+
6
*
128
,
swindow
,
0
,
64
);
ac
->
dsp
.
vector_fmul_window
(
saved
+
320
,
buf
+
6
*
128
+
64
,
buf
+
7
*
128
,
swindow
,
0
,
64
);
...
...
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