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
75b854ad
Commit
75b854ad
authored
Apr 09, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_amix: add double sample format support
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
4dc2dd80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
af_amix.c
libavfilter/af_amix.c
+15
-4
No files found.
libavfilter/af_amix.c
View file @
75b854ad
...
...
@@ -336,10 +336,19 @@ static int output_frame(AVFilterLink *outlink)
plane_size
=
nb_samples
*
(
s
->
planar
?
1
:
s
->
nb_channels
);
plane_size
=
FFALIGN
(
plane_size
,
16
);
for
(
p
=
0
;
p
<
planes
;
p
++
)
{
s
->
fdsp
->
vector_fmac_scalar
((
float
*
)
out_buf
->
extended_data
[
p
],
(
float
*
)
in_buf
->
extended_data
[
p
],
s
->
input_scale
[
i
],
plane_size
);
if
(
out_buf
->
format
==
AV_SAMPLE_FMT_FLT
||
out_buf
->
format
==
AV_SAMPLE_FMT_FLTP
)
{
for
(
p
=
0
;
p
<
planes
;
p
++
)
{
s
->
fdsp
->
vector_fmac_scalar
((
float
*
)
out_buf
->
extended_data
[
p
],
(
float
*
)
in_buf
->
extended_data
[
p
],
s
->
input_scale
[
i
],
plane_size
);
}
}
else
{
for
(
p
=
0
;
p
<
planes
;
p
++
)
{
s
->
fdsp
->
vector_dmac_scalar
((
double
*
)
out_buf
->
extended_data
[
p
],
(
double
*
)
in_buf
->
extended_data
[
p
],
s
->
input_scale
[
i
],
plane_size
);
}
}
}
}
...
...
@@ -529,6 +538,8 @@ static int query_formats(AVFilterContext *ctx)
if
((
ret
=
ff_add_format
(
&
formats
,
AV_SAMPLE_FMT_FLT
))
<
0
||
(
ret
=
ff_add_format
(
&
formats
,
AV_SAMPLE_FMT_FLTP
))
<
0
||
(
ret
=
ff_add_format
(
&
formats
,
AV_SAMPLE_FMT_DBL
))
<
0
||
(
ret
=
ff_add_format
(
&
formats
,
AV_SAMPLE_FMT_DBLP
))
<
0
||
(
ret
=
ff_set_common_formats
(
ctx
,
formats
))
<
0
||
(
ret
=
ff_set_common_channel_layouts
(
ctx
,
layouts
))
<
0
||
(
ret
=
ff_set_common_samplerates
(
ctx
,
ff_all_samplerates
()))
<
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