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
33e69806
Commit
33e69806
authored
Oct 08, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_gblur: switch to ff_filter_process_command()
parent
9f7ab36a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
vf_gblur.c
libavfilter/vf_gblur.c
+2
-18
No files found.
libavfilter/vf_gblur.c
View file @
33e69806
...
...
@@ -35,7 +35,7 @@
#include "video.h"
#define OFFSET(x) offsetof(GBlurContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
|AV_OPT_FLAG_RUNTIME_PARAM
static
const
AVOption
gblur_options
[]
=
{
{
"sigma"
,
"set sigma"
,
OFFSET
(
sigma
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=
0
.
5
},
0
.
0
,
1024
,
FLAGS
},
...
...
@@ -344,22 +344,6 @@ 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
)
{
GBlurContext
*
s
=
ctx
->
priv
;
int
ret
=
0
;
if
(
!
strcmp
(
cmd
,
"sigma"
)
||
!
strcmp
(
cmd
,
"sigmaV"
)
||
!
strcmp
(
cmd
,
"steps"
)
||
!
strcmp
(
cmd
,
"planes"
))
{
av_opt_set
(
s
,
cmd
,
args
,
0
);
}
else
{
ret
=
AVERROR
(
ENOSYS
);
}
return
ret
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
GBlurContext
*
s
=
ctx
->
priv
;
...
...
@@ -395,5 +379,5 @@ AVFilter ff_vf_gblur = {
.
inputs
=
gblur_inputs
,
.
outputs
=
gblur_outputs
,
.
flags
=
AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
|
AVFILTER_FLAG_SLICE_THREADS
,
.
process_command
=
process_command
,
.
process_command
=
ff_filter_
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