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
e8dd7928
Commit
e8dd7928
authored
May 05, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: change simd len argument to be in samples instead of dst bytes.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3db60932
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
audioconvert.c
libswresample/audioconvert.c
+1
-1
audio_convert.asm
libswresample/x86/audio_convert.asm
+6
-0
No files found.
libswresample/audioconvert.c
View file @
e8dd7928
...
...
@@ -160,7 +160,7 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
av_assert1
(
off
>=
0
);
if
(
off
>
0
)
for
(
ch
=
0
;
ch
<
planes
;
ch
++
){
ctx
->
simd_f
(
out
->
ch
+
ch
,
in
->
ch
+
ch
,
off
*
os
);
ctx
->
simd_f
(
out
->
ch
+
ch
,
in
->
ch
+
ch
,
off
*
(
out
->
planar
?
1
:
out
->
ch_count
)
);
}
av_assert1
(
off
<=
len
);
if
(
off
==
len
)
...
...
libswresample/x86/audio_convert.asm
View file @
e8dd7928
...
...
@@ -33,6 +33,7 @@ SECTION .text
cglobal
int16_to_int32_
%1
,
3
,
3
,
3
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
shl
lenq
,
2
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
int16_to_int32_u_int
%
+
SUFFIX
...
...
@@ -65,6 +66,7 @@ int16_to_int32_u_int %+ SUFFIX
cglobal
int32_to_float_
%1
,
3
,
3
,
3
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
shl
lenq
,
2
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
int32_to_float_u_int
%
+
SUFFIX
...
...
@@ -100,6 +102,7 @@ int32_to_float_u_int %+ SUFFIX
cglobal
int16_to_float_
%1
,
3
,
3
,
4
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
shl
lenq
,
2
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
int16_to_float_u_int
%
+
SUFFIX
...
...
@@ -134,6 +137,7 @@ int16_to_float_u_int %+ SUFFIX
cglobal
float_to_int32_
%1
,
3
,
3
,
5
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
shl
lenq
,
2
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
float_to_int32_u_int
%
+
SUFFIX
...
...
@@ -168,6 +172,7 @@ float_to_int32_u_int %+ SUFFIX
cglobal
float_to_int16_
%1
,
3
,
3
,
3
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
add
lenq
,
lenq
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
float_to_int16_u_int
%
+
SUFFIX
...
...
@@ -198,6 +203,7 @@ float_to_int16_u_int %+ SUFFIX
cglobal
int32_to_int16_
%1
,
3
,
3
,
2
,
dst
,
src
,
len
mov
srcq
,
[srcq]
mov
dstq
,
[dstq]
add
lenq
,
lenq
%ifidn
%1
,
a
test
dstq
,
mmsize
-
1
jne
int32_to_int16_u_int
%
+
SUFFIX
...
...
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