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
01ab6020
Commit
01ab6020
authored
Oct 15, 2016
by
Muhammad Faiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/firequalizer: add tukey window
Signed-off-by:
Muhammad Faiz
<
mfcc64@gmail.com
>
parent
7c5fca15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
af_firequalizer.c
libavfilter/af_firequalizer.c
+5
-0
No files found.
libavfilter/af_firequalizer.c
View file @
01ab6020
...
...
@@ -39,6 +39,7 @@ enum WindowFunc {
WFUNC_NUTTALL
,
WFUNC_BNUTTALL
,
WFUNC_BHARRIS
,
WFUNC_TUKEY
,
NB_WFUNC
};
...
...
@@ -107,6 +108,7 @@ static const AVOption firequalizer_options[] = {
{
"nuttall"
,
"nuttall window"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
WFUNC_NUTTALL
},
0
,
0
,
FLAGS
,
"wfunc"
},
{
"bnuttall"
,
"blackman-nuttall window"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
WFUNC_BNUTTALL
},
0
,
0
,
FLAGS
,
"wfunc"
},
{
"bharris"
,
"blackman-harris window"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
WFUNC_BHARRIS
},
0
,
0
,
FLAGS
,
"wfunc"
},
{
"tukey"
,
"tukey window"
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
WFUNC_TUKEY
},
0
,
0
,
FLAGS
,
"wfunc"
},
{
"fixed"
,
"set fixed frame samples"
,
OFFSET
(
fixed
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"multi"
,
"set multi channels mode"
,
OFFSET
(
multi
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
FLAGS
},
{
"zero_phase"
,
"set zero phase mode"
,
OFFSET
(
zero_phase
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
FLAGS
},
...
...
@@ -385,6 +387,9 @@ static int generate_kernel(AVFilterContext *ctx, const char *gain, const char *g
case
WFUNC_BHARRIS
:
win
=
0
.
35875
+
0
.
48829
*
cos
(
u
)
+
0
.
14128
*
cos
(
2
*
u
)
+
0
.
0116
8
*
cos
(
3
*
u
);
break
;
case
WFUNC_TUKEY
:
win
=
(
u
<=
0
.
5
*
M_PI
)
?
1
.
0
:
(
0
.
5
+
0
.
5
*
cos
(
2
*
u
-
M_PI
));
break
;
default:
av_assert0
(
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