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
cbf224b6
Commit
cbf224b6
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/tinterlace: use standard options parsing.
parent
9e21c898
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
vf_tinterlace.c
libavfilter/vf_tinterlace.c
+3
-14
No files found.
libavfilter/vf_tinterlace.c
View file @
cbf224b6
...
...
@@ -97,25 +97,12 @@ static int query_formats(AVFilterContext *ctx)
return
0
;
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
TInterlaceContext
*
tinterlace
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"mode"
,
NULL
};
tinterlace
->
class
=
&
tinterlace_class
;
av_opt_set_defaults
(
tinterlace
);
return
av_opt_set_from_string
(
tinterlace
,
args
,
shorthand
,
"="
,
":"
);
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
TInterlaceContext
*
tinterlace
=
ctx
->
priv
;
av_frame_free
(
&
tinterlace
->
cur
);
av_frame_free
(
&
tinterlace
->
next
);
av_opt_free
(
tinterlace
);
av_freep
(
&
tinterlace
->
black_data
[
0
]);
}
...
...
@@ -396,14 +383,16 @@ static const AVFilterPad tinterlace_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"mode"
,
NULL
};
AVFilter
avfilter_vf_tinterlace
=
{
.
name
=
"tinterlace"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Perform temporal field interlacing."
),
.
priv_size
=
sizeof
(
TInterlaceContext
),
.
init
=
init
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
inputs
=
tinterlace_inputs
,
.
outputs
=
tinterlace_outputs
,
.
priv_class
=
&
tinterlace_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