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
15878b2b
Commit
15878b2b
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/setfield: use standard options parsing.
parent
e62587bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
vf_setfield.c
libavfilter/vf_setfield.c
+3
-20
No files found.
libavfilter/vf_setfield.c
View file @
15878b2b
...
...
@@ -54,23 +54,6 @@ static const AVOption setfield_options[] = {
AVFILTER_DEFINE_CLASS
(
setfield
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
SetFieldContext
*
setfield
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"mode"
,
NULL
};
setfield
->
class
=
&
setfield_class
;
av_opt_set_defaults
(
setfield
);
return
av_opt_set_from_string
(
setfield
,
args
,
shorthand
,
"="
,
":"
);
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
SetFieldContext
*
setfield
=
ctx
->
priv
;
av_opt_free
(
setfield
);
}
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFrame
*
picref
)
{
SetFieldContext
*
setfield
=
inlink
->
dst
->
priv
;
...
...
@@ -102,14 +85,14 @@ static const AVFilterPad setfield_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"mode"
,
NULL
};
AVFilter
avfilter_vf_setfield
=
{
.
name
=
"setfield"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Force field for the output video frame."
),
.
init
=
init
,
.
uninit
=
uninit
,
.
priv_size
=
sizeof
(
SetFieldContext
),
.
inputs
=
setfield_inputs
,
.
outputs
=
setfield_outputs
,
.
priv_class
=
&
setfield_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