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
7a128ac2
Commit
7a128ac2
authored
Apr 23, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_surround: expose window size to user
parent
ccc07ebe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
filters.texi
doc/filters.texi
+3
-0
af_surround.c
libavfilter/af_surround.c
+3
-1
No files found.
doc/filters.texi
View file @
7a128ac2
...
...
@@ -4901,6 +4901,9 @@ Set spread usage of stereo image across X axis for each channel.
@item fcy, fly, fry, bly, bry, sly, sry, bcy
Set spread usage of stereo image across Y axis for each channel.
@item win_size
Set window size. Allowed range is from @var{1024} to @var{65536}. Default size is @var{4096}.
@item win_func
Set window function.
...
...
libavfilter/af_surround.c
View file @
7a128ac2
...
...
@@ -40,6 +40,7 @@ typedef struct AudioSurroundContext {
float
lfe_in
;
float
lfe_out
;
int
lfe_mode
;
int
win_size
;
int
win_func
;
float
overlap
;
...
...
@@ -1416,7 +1417,7 @@ fail:
return
AVERROR
(
EINVAL
);
}
s
->
buf_size
=
4096
;
s
->
buf_size
=
1
<<
av_log2
(
s
->
win_size
)
;
s
->
pts
=
AV_NOPTS_VALUE
;
s
->
window_func_lut
=
av_calloc
(
s
->
buf_size
,
sizeof
(
*
s
->
window_func_lut
));
...
...
@@ -1615,6 +1616,7 @@ static const AVOption surround_options[] = {
{
"sly"
,
"set side left channel y spread"
,
OFFSET
(
sl_y
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
15
,
FLAGS
},
{
"sry"
,
"set side right channel y spread"
,
OFFSET
(
sr_y
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
15
,
FLAGS
},
{
"bcy"
,
"set back center channel y spread"
,
OFFSET
(
bc_y
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
1
},
0
,
15
,
FLAGS
},
{
"win_size"
,
"set window size"
,
OFFSET
(
win_size
),
AV_OPT_TYPE_INT
,
{.
i64
=
4096
},
1024
,
65536
,
FLAGS
},
{
"win_func"
,
"set window function"
,
OFFSET
(
win_func
),
AV_OPT_TYPE_INT
,
{.
i64
=
WFUNC_HANNING
},
0
,
NB_WFUNC
-
1
,
FLAGS
,
"win_func"
},
{
"rect"
,
"Rectangular"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
WFUNC_RECT
},
0
,
0
,
FLAGS
,
"win_func"
},
{
"bartlett"
,
"Bartlett"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
WFUNC_BARTLETT
},
0
,
0
,
FLAGS
,
"win_func"
},
...
...
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