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
0a181c2c
Commit
0a181c2c
authored
Apr 30, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_crossfeed: make options runtime configurable
parent
35d60018
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
filters.texi
doc/filters.texi
+4
-0
af_crossfeed.c
libavfilter/af_crossfeed.c
+14
-1
No files found.
doc/filters.texi
View file @
0a181c2c
...
...
@@ -3278,6 +3278,10 @@ Set input gain. Default is 0.9.
Set
output
gain
.
Default
is
1.
@
end
table
@
subsection
Commands
This
filter
supports
the
all
above
options
as
@
ref
{
commands
}.
@
section
crystalizer
Simple
algorithm
to
expand
audio
dynamic
range
.
...
...
libavfilter/af_crossfeed.c
View file @
0a181c2c
...
...
@@ -134,8 +134,20 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
ff_filter_frame
(
outlink
,
out
);
}
static
int
process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
args
,
char
*
res
,
int
res_len
,
int
flags
)
{
int
ret
;
ret
=
ff_filter_process_command
(
ctx
,
cmd
,
args
,
res
,
res_len
,
flags
);
if
(
ret
<
0
)
return
ret
;
return
config_input
(
ctx
->
inputs
[
0
]);
}
#define OFFSET(x) offsetof(CrossfeedContext, x)
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
crossfeed_options
[]
=
{
{
"strength"
,
"set crossfeed strength"
,
OFFSET
(
strength
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
.
2
},
0
,
1
,
FLAGS
},
...
...
@@ -175,4 +187,5 @@ AVFilter ff_af_crossfeed = {
.
inputs
=
inputs
,
.
outputs
=
outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
.
process_command
=
process_command
,
};
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