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
5fb37598
Commit
5fb37598
authored
Dec 27, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_stereowiden: add support for commands
parent
95463780
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
filters.texi
doc/filters.texi
+4
-0
af_stereowiden.c
libavfilter/af_stereowiden.c
+6
-4
No files found.
doc/filters.texi
View file @
5fb37598
...
...
@@ -5171,6 +5171,10 @@ channels. Default is 0.3.
Set level of input signal of original channel. Default is 0.8.
@end table
@subsection Commands
This filter supports the all above options except @code{delay} as @ref{commands}.
@section superequalizer
Apply 18 band equalizer.
...
...
libavfilter/af_stereowiden.c
View file @
5fb37598
...
...
@@ -39,13 +39,14 @@ typedef struct StereoWidenContext {
}
StereoWidenContext
;
#define OFFSET(x) offsetof(StereoWidenContext, x)
#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define AT AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
stereowiden_options
[]
=
{
{
"delay"
,
"set delay time"
,
OFFSET
(
delay
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
20
},
1
,
100
,
A
},
{
"feedback"
,
"set feedback gain"
,
OFFSET
(
feedback
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
3
},
0
,
0
.
9
,
A
},
{
"crossfeed"
,
"set cross feed"
,
OFFSET
(
crossfeed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
3
},
0
,
0
.
8
,
A
},
{
"drymix"
,
"set dry-mix"
,
OFFSET
(
drymix
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
8
},
0
,
1
.
0
,
A
},
{
"feedback"
,
"set feedback gain"
,
OFFSET
(
feedback
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
3
},
0
,
0
.
9
,
A
T
},
{
"crossfeed"
,
"set cross feed"
,
OFFSET
(
crossfeed
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
3
},
0
,
0
.
8
,
A
T
},
{
"drymix"
,
"set dry-mix"
,
OFFSET
(
drymix
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
.
8
},
0
,
1
.
0
,
A
T
},
{
NULL
}
};
...
...
@@ -165,4 +166,5 @@ AVFilter ff_af_stereowiden = {
.
inputs
=
inputs
,
.
outputs
=
outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
,
.
process_command
=
ff_filter_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