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
37438d0a
Commit
37438d0a
authored
Mar 16, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_delogo: use standard options parsing.
parent
40ecd44f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vf_delogo.c
libavfilter/vf_delogo.c
+3
-8
No files found.
libavfilter/vf_delogo.c
View file @
37438d0a
...
@@ -171,14 +171,6 @@ static int query_formats(AVFilterContext *ctx)
...
@@ -171,14 +171,6 @@ static int query_formats(AVFilterContext *ctx)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
DelogoContext
*
delogo
=
ctx
->
priv
;
DelogoContext
*
delogo
=
ctx
->
priv
;
int
ret
=
0
;
static
const
char
*
shorthand
[]
=
{
"x"
,
"y"
,
"w"
,
"h"
,
"band"
,
NULL
};
delogo
->
class
=
&
delogo_class
;
av_opt_set_defaults
(
delogo
);
if
((
ret
=
av_opt_set_from_string
(
delogo
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
#define CHECK_UNSET_OPT(opt) \
#define CHECK_UNSET_OPT(opt) \
if (delogo->opt == -1) { \
if (delogo->opt == -1) { \
...
@@ -267,6 +259,8 @@ static const AVFilterPad avfilter_vf_delogo_outputs[] = {
...
@@ -267,6 +259,8 @@ static const AVFilterPad avfilter_vf_delogo_outputs[] = {
{
NULL
}
{
NULL
}
};
};
static
const
char
*
const
shorthand
[]
=
{
"x"
,
"y"
,
"w"
,
"h"
,
"band"
,
NULL
};
AVFilter
avfilter_vf_delogo
=
{
AVFilter
avfilter_vf_delogo
=
{
.
name
=
"delogo"
,
.
name
=
"delogo"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Remove logo from input video."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Remove logo from input video."
),
...
@@ -277,4 +271,5 @@ AVFilter avfilter_vf_delogo = {
...
@@ -277,4 +271,5 @@ AVFilter avfilter_vf_delogo = {
.
inputs
=
avfilter_vf_delogo_inputs
,
.
inputs
=
avfilter_vf_delogo_inputs
,
.
outputs
=
avfilter_vf_delogo_outputs
,
.
outputs
=
avfilter_vf_delogo_outputs
,
.
priv_class
=
&
delogo_class
,
.
priv_class
=
&
delogo_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