Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
c99ed89f
Commit
c99ed89f
authored
7 years ago
by
Paul B Mahol
Browse files
Options
Downloads
Patches
Plain Diff
avfilter/af_biquads: add kHz width_type
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
bc10260f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/filters.texi
+16
-0
16 additions, 0 deletions
doc/filters.texi
libavfilter/af_biquads.c
+32
-18
32 additions, 18 deletions
libavfilter/af_biquads.c
with
48 additions
and
18 deletions
doc/filters.texi
+
16
−
0
View file @
c99ed89f
...
...
@@ -1127,6 +1127,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -1884,6 +1886,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -1933,6 +1937,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -1989,6 +1995,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -2642,6 +2650,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -3079,6 +3089,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -3385,6 +3397,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
@@ -4294,6 +4308,8 @@ Q-Factor
octave
@item s
slope
@item k
kHz
@end table
@item width, w
...
...
This diff is collapsed.
Click to expand it.
libavfilter/af_biquads.c
+
32
−
18
View file @
c99ed89f
...
...
@@ -86,6 +86,8 @@ enum WidthType {
OCTAVE
,
QFACTOR
,
SLOPE
,
KHERTZ
,
NB_WTYPE
,
};
typedef
struct
ChanCache
{
...
...
@@ -259,6 +261,9 @@ static int config_filter(AVFilterLink *outlink, int reset)
case
HERTZ
:
alpha
=
sin
(
w0
)
/
(
2
*
s
->
frequency
/
s
->
width
);
break
;
case
KHERTZ
:
alpha
=
sin
(
w0
)
/
(
2
*
s
->
frequency
/
(
s
->
width
*
1000
));
break
;
case
OCTAVE
:
alpha
=
sin
(
w0
)
*
sinh
(
log
(
2
.)
/
2
*
s
->
width
*
w0
/
sin
(
w0
));
break
;
...
...
@@ -516,6 +521,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar
case
'q'
:
width_type
=
QFACTOR
;
break
;
case
'o'
:
width_type
=
OCTAVE
;
break
;
case
's'
:
width_type
=
SLOPE
;
break
;
case
'k'
:
width_type
=
KHERTZ
;
break
;
default:
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid width_type value: %c
\n
"
,
width_type
);
return
AVERROR
(
EINVAL
);
...
...
@@ -608,12 +614,13 @@ AVFilter ff_af_##name_ = { \
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
1
},
0
,
999
,
FLAGS
},
{
"w"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
1
},
0
,
999
,
FLAGS
},
{
"gain"
,
"set gain"
,
OFFSET
(
gain
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
-
900
,
900
,
FLAGS
},
...
...
@@ -629,12 +636,13 @@ DEFINE_BIQUAD_FILTER(equalizer, "Apply two-pole peaking equalization (EQ) filter
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set shelf transition steep"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set shelf transition steep"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"gain"
,
"set gain"
,
OFFSET
(
gain
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
-
900
,
900
,
FLAGS
},
...
...
@@ -650,12 +658,13 @@ DEFINE_BIQUAD_FILTER(bass, "Boost or cut lower frequencies.");
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set shelf transition steep"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set shelf transition steep"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"gain"
,
"set gain"
,
OFFSET
(
gain
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
},
-
900
,
900
,
FLAGS
},
...
...
@@ -671,14 +680,15 @@ DEFINE_BIQUAD_FILTER(treble, "Boost or cut upper frequencies.");
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
999
,
FLAGS
},
{
"w"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
999
,
FLAGS
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
99999
,
FLAGS
},
{
"csg"
,
"use constant skirt gain"
,
OFFSET
(
csg
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"channels"
,
"set channels to filter"
,
OFFSET
(
channels
),
AV_OPT_TYPE_CHANNEL_LAYOUT
,
{.
i64
=-
1
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
{
"c"
,
"set channels to filter"
,
OFFSET
(
channels
),
AV_OPT_TYPE_CHANNEL_LAYOUT
,
{.
i64
=-
1
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
...
...
@@ -691,12 +701,13 @@ DEFINE_BIQUAD_FILTER(bandpass, "Apply a two-pole Butterworth band-pass filter.")
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
999
,
FLAGS
},
{
"w"
,
"set band-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
5
},
0
,
999
,
FLAGS
},
{
"channels"
,
"set channels to filter"
,
OFFSET
(
channels
),
AV_OPT_TYPE_CHANNEL_LAYOUT
,
{.
i64
=-
1
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
...
...
@@ -710,12 +721,13 @@ DEFINE_BIQUAD_FILTER(bandreject, "Apply a two-pole Butterworth band-reject filte
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
707
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
707
},
0
,
99999
,
FLAGS
},
{
"poles"
,
"set number of poles"
,
OFFSET
(
poles
),
AV_OPT_TYPE_INT
,
{.
i64
=
2
},
1
,
2
,
FLAGS
},
...
...
@@ -731,12 +743,13 @@ DEFINE_BIQUAD_FILTER(lowpass, "Apply a low-pass filter with 3dB point frequency.
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
QFACTOR
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
707
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
0
.
707
},
0
,
99999
,
FLAGS
},
{
"poles"
,
"set number of poles"
,
OFFSET
(
poles
),
AV_OPT_TYPE_INT
,
{.
i64
=
2
},
1
,
2
,
FLAGS
},
...
...
@@ -752,12 +765,13 @@ DEFINE_BIQUAD_FILTER(highpass, "Apply a high-pass filter with 3dB point frequenc
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"
},
{
"width_type"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
NB_WTYPE
-
1
,
FLAGS
,
"width_type"
},
{
"t"
,
"set filter-width type"
,
OFFSET
(
width_type
),
AV_OPT_TYPE_INT
,
{.
i64
=
HERTZ
},
HERTZ
,
NB_WTYPE
-
1
,
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"
},
{
"s"
,
"slope"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
SLOPE
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"k"
,
"kHz"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
KHERTZ
},
0
,
0
,
FLAGS
,
"width_type"
},
{
"width"
,
"set filter-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
707
.
1
},
0
,
99999
,
FLAGS
},
{
"w"
,
"set filter-width"
,
OFFSET
(
width
),
AV_OPT_TYPE_DOUBLE
,
{.
dbl
=
707
.
1
},
0
,
99999
,
FLAGS
},
{
"channels"
,
"set channels to filter"
,
OFFSET
(
channels
),
AV_OPT_TYPE_CHANNEL_LAYOUT
,
{.
i64
=-
1
},
INT64_MIN
,
INT64_MAX
,
FLAGS
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment