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
a23a56e7
Commit
a23a56e7
authored
Jun 18, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavfilter/af_biquads: add shorter option for width_type
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
8a093253
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
filters.texi
doc/filters.texi
+10
-10
af_biquads.c
libavfilter/af_biquads.c
+8
-0
No files found.
doc/filters.texi
View file @
a23a56e7
...
...
@@ -1074,7 +1074,7 @@ The filter accepts the following options:
@item frequency, f
Set frequency in Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1809,7 +1809,7 @@ Set the filter's central frequency. Default is @code{3000}.
@item csg
Constant skirt gain if set to 1. Defaults to 0.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1841,7 +1841,7 @@ The filter accepts the following options:
@item frequency, f
Set the filter's central frequency. Default is @code{3000}.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -1880,7 +1880,7 @@ Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is @code{100} Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -2498,7 +2498,7 @@ The filter accepts the following options:
@item frequency, f
Set the filter's central frequency in Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -2527,13 +2527,13 @@ Specify which channels to filter, by default all available are filtered.
@item
Attenuate 10 dB at 1000 Hz, with a bandwidth of 200 Hz:
@example
equalizer=f=1000:
width_type
=h:width=200:g=-10
equalizer=f=1000:
t
=h:width=200:g=-10
@end example
@item
Apply 2 dB gain at 1000 Hz with Q 1 and attenuate 5 dB at 100 Hz with Q 2:
@example
equalizer=f=1000:
width_type=q:width=1:g=2,equalizer=f=100:width_type=q:width
=2:g=-5
equalizer=f=1000:
t=q:w=1:g=2,equalizer=f=100:t=q:w
=2:g=-5
@end example
@end itemize
...
...
@@ -2847,7 +2847,7 @@ Set frequency in Hz. Default is 3000.
@item poles, p
Set number of poles. Default is 2.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -3134,7 +3134,7 @@ Set frequency in Hz. Default is 500.
@item poles, p
Set number of poles. Default is 2.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
@@ -3890,7 +3890,7 @@ Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is @code{3000} Hz.
@item width_type
@item width_type
, t
Set method to specify band-width of filter.
@table @option
@item h
...
...
libavfilter/af_biquads.c
View file @
a23a56e7
...
...
@@ -493,6 +493,7 @@ static const AVOption equalizer_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -513,6 +514,7 @@ static const AVOption bass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
100
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
100
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -533,6 +535,7 @@ static const AVOption treble_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -553,6 +556,7 @@ static const AVOption bandpass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -572,6 +576,7 @@ static const AVOption bandreject_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -590,6 +595,7 @@ static const AVOption lowpass_options[] = {
{
"frequency"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
500
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
500
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -610,6 +616,7 @@ static const AVOption highpass_options[] = {
{
"frequency"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
@@ -630,6 +637,7 @@ static const AVOption allpass_options[] = {
{
"frequency"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"f"
,
"set central frequency"
,
OFFSET
(
frequency
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
3000
},
0
,
999999
,
FLAGS
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
SLOPE
,
FLAGS
,
"width_type"
},
{
"h"
,
"Hz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
HERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"q"
,
"Q-Factor"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
QFACTOR
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"o"
,
"octave"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
OCTAVE
},
0
,
0
,
FLAGS
,
"width_type"
},
...
...
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