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
b27a8ba1
Commit
b27a8ba1
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/gradfun: use standard options parsing.
parent
b595819c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vf_gradfun.c
libavfilter/vf_gradfun.c
+3
-8
No files found.
libavfilter/vf_gradfun.c
View file @
b27a8ba1
...
...
@@ -133,15 +133,7 @@ static void filter(GradFunContext *ctx, uint8_t *dst, const uint8_t *src, int wi
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
int
ret
;
GradFunContext
*
gf
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"strength"
,
"radius"
,
NULL
};
gf
->
class
=
&
gradfun_class
;
av_opt_set_defaults
(
gf
);
if
((
ret
=
av_opt_set_from_string
(
gf
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
gf
->
thresh
=
(
1
<<
15
)
/
gf
->
strength
;
gf
->
radius
=
av_clip
((
gf
->
radius
+
1
)
&
~
1
,
4
,
32
);
...
...
@@ -257,6 +249,8 @@ static const AVFilterPad avfilter_vf_gradfun_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"strength"
,
"radius"
,
NULL
};
AVFilter
avfilter_vf_gradfun
=
{
.
name
=
"gradfun"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Debands video quickly using gradients."
),
...
...
@@ -267,4 +261,5 @@ AVFilter avfilter_vf_gradfun = {
.
inputs
=
avfilter_vf_gradfun_inputs
,
.
outputs
=
avfilter_vf_gradfun_outputs
,
.
priv_class
=
&
gradfun_class
,
.
shorthand
=
shorthand
,
};
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