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
ab228f91
Commit
ab228f91
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/idet: use standard options parsing.
parent
552c02f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vf_idet.c
libavfilter/vf_idet.c
+3
-8
No files found.
libavfilter/vf_idet.c
View file @
ab228f91
...
...
@@ -276,14 +276,6 @@ static int query_formats(AVFilterContext *ctx)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
IDETContext
*
idet
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"intl_thres"
,
"prog_thres"
,
NULL
};
int
ret
;
idet
->
class
=
&
idet_class
;
av_opt_set_defaults
(
idet
);
if
((
ret
=
av_opt_set_from_string
(
idet
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
idet
->
last_type
=
UNDETERMINED
;
memset
(
idet
->
history
,
UNDETERMINED
,
HIST_SIZE
);
...
...
@@ -312,6 +304,8 @@ static const AVFilterPad idet_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"intl_thres"
,
"prog_thres"
,
NULL
};
AVFilter
avfilter_vf_idet
=
{
.
name
=
"idet"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Interlace detect Filter."
),
...
...
@@ -323,4 +317,5 @@ AVFilter avfilter_vf_idet = {
.
inputs
=
idet_inputs
,
.
outputs
=
idet_outputs
,
.
priv_class
=
&
idet_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