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
fec3700d
Commit
fec3700d
authored
May 05, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: update calling code to support mixed packed planar SIMD
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e8dd7928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
audioconvert.c
libswresample/audioconvert.c
+10
-6
No files found.
libswresample/audioconvert.c
View file @
fec3700d
...
@@ -154,15 +154,19 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
...
@@ -154,15 +154,19 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
//FIXME optimize common cases
//FIXME optimize common cases
if
(
ctx
->
simd_f
&&
!
ctx
->
ch_map
){
if
(
ctx
->
simd_f
&&
!
ctx
->
ch_map
){
int
planes
=
out
->
planar
?
out
->
ch_count
:
1
;
off
=
len
/
16
*
16
;
off
=
len
/
16
*
16
;
av_assert1
(
out
->
planar
==
in
->
planar
);
av_assert1
(
off
>=
0
);
av_assert1
(
off
>=
0
);
if
(
off
>
0
)
for
(
ch
=
0
;
ch
<
planes
;
ch
++
){
ctx
->
simd_f
(
out
->
ch
+
ch
,
in
->
ch
+
ch
,
off
*
(
out
->
planar
?
1
:
out
->
ch_count
));
}
av_assert1
(
off
<=
len
);
av_assert1
(
off
<=
len
);
if
(
off
>
0
){
if
(
out
->
planar
==
in
->
planar
){
int
planes
=
out
->
planar
?
out
->
ch_count
:
1
;
for
(
ch
=
0
;
ch
<
planes
;
ch
++
){
ctx
->
simd_f
(
out
->
ch
+
ch
,
in
->
ch
+
ch
,
off
*
(
out
->
planar
?
1
:
out
->
ch_count
));
}
}
else
{
ctx
->
simd_f
(
out
->
ch
,
in
->
ch
,
off
);
}
}
if
(
off
==
len
)
if
(
off
==
len
)
return
0
;
return
0
;
}
}
...
...
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