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
2753d4eb
Commit
2753d4eb
authored
Mar 16, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_yadif: use standard options parsing.
parent
8d4d11cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
vf_yadif.c
libavfilter/vf_yadif.c
+3
-9
No files found.
libavfilter/vf_yadif.c
View file @
2753d4eb
...
...
@@ -377,7 +377,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_frame_free
(
&
yadif
->
prev
);
av_frame_free
(
&
yadif
->
cur
);
av_frame_free
(
&
yadif
->
next
);
av_opt_free
(
yadif
);
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
...
...
@@ -424,14 +423,6 @@ static int query_formats(AVFilterContext *ctx)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
YADIFContext
*
yadif
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"mode"
,
"parity"
,
"deint"
,
NULL
};
int
ret
;
yadif
->
class
=
&
yadif_class
;
av_opt_set_defaults
(
yadif
);
if
((
ret
=
av_opt_set_from_string
(
yadif
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"mode:%d parity:%d deint:%d
\n
"
,
yadif
->
mode
,
yadif
->
parity
,
yadif
->
deint
);
...
...
@@ -491,6 +482,8 @@ static const AVFilterPad avfilter_vf_yadif_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"mode"
,
"parity"
,
"deint"
,
NULL
};
AVFilter
avfilter_vf_yadif
=
{
.
name
=
"yadif"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Deinterlace the input image."
),
...
...
@@ -504,4 +497,5 @@ AVFilter avfilter_vf_yadif = {
.
outputs
=
avfilter_vf_yadif_outputs
,
.
priv_class
=
&
yadif_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