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
5dc074d3
Commit
5dc074d3
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/kerndeint: use standard options parsing.
parent
ab228f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
vf_kerndeint.c
libavfilter/vf_kerndeint.c
+4
-14
No files found.
libavfilter/vf_kerndeint.c
View file @
5dc074d3
...
...
@@ -59,23 +59,11 @@ static const AVOption kerndeint_options[] = {
AVFILTER_DEFINE_CLASS
(
kerndeint
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
KerndeintContext
*
kerndeint
=
ctx
->
priv
;
const
char
const
*
shorthand
[]
=
{
"thresh"
,
"map"
,
"order"
,
"sharp"
,
"twoway"
,
NULL
};
kerndeint
->
class
=
&
kerndeint_class
;
av_opt_set_defaults
(
kerndeint
);
return
av_opt_set_from_string
(
kerndeint
,
args
,
shorthand
,
"="
,
":"
);
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
KerndeintContext
*
kerndeint
=
ctx
->
priv
;
av_free
(
kerndeint
->
tmp_data
[
0
]);
av_opt_free
(
kerndeint
);
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
...
...
@@ -317,16 +305,18 @@ static const AVFilterPad kerndeint_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"thresh"
,
"map"
,
"order"
,
"sharp"
,
"twoway"
,
NULL
};
AVFilter
avfilter_vf_kerndeint
=
{
.
name
=
"kerndeint"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Apply kernel deinterlacing to the input."
),
.
priv_size
=
sizeof
(
KerndeintContext
),
.
init
=
init
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
inputs
=
kerndeint_inputs
,
.
outputs
=
kerndeint_outputs
,
.
priv_class
=
&
kerndeint_class
,
.
priv_class
=
&
kerndeint_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