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
66d45af1
Commit
66d45af1
authored
Oct 06, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_avgblur: add support for commands
parent
da9337c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
filters.texi
doc/filters.texi
+7
-0
vf_avgblur.c
libavfilter/vf_avgblur.c
+17
-0
No files found.
doc/filters.texi
View file @
66d45af1
...
...
@@ -6211,6 +6211,13 @@ Set vertical radius size, if zero it will be same as @code{sizeX}.
Default
is
@
code
{
0
}.
@
end
table
@
subsection
Commands
This
filter
supports
same
commands
as
options
.
The
command
accepts
the
same
syntax
of
the
corresponding
option
.
If
the
specified
expression
is
not
valid
,
it
is
kept
at
its
current
value
.
@
section
bbox
Compute
the
bounding
box
for
the
non
-
black
pixels
in
the
input
frame
...
...
libavfilter/vf_avgblur.c
View file @
66d45af1
...
...
@@ -287,6 +287,22 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
ff_filter_frame
(
outlink
,
out
);
}
static
int
process_command
(
AVFilterContext
*
ctx
,
const
char
*
cmd
,
const
char
*
args
,
char
*
res
,
int
res_len
,
int
flags
)
{
AverageBlurContext
*
s
=
ctx
->
priv
;
int
ret
=
0
;
if
(
!
strcmp
(
cmd
,
"sizeX"
)
||
!
strcmp
(
cmd
,
"sizeY"
)
||
!
strcmp
(
cmd
,
"planes"
))
{
av_opt_set
(
s
,
cmd
,
args
,
0
);
}
else
{
ret
=
AVERROR
(
ENOSYS
);
}
return
ret
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
AverageBlurContext
*
s
=
ctx
->
priv
;
...
...
@@ -322,4 +338,5 @@ AVFilter ff_vf_avgblur = {
.
inputs
=
avgblur_inputs
,
.
outputs
=
avgblur_outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
|
AVFILTER_FLAG_SLICE_THREADS
,
.
process_command
=
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