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
40ecd44f
Commit
40ecd44f
authored
Mar 16, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_decimate: use standard options parsing.
parent
6202cf5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
vf_decimate.c
libavfilter/vf_decimate.c
+3
-9
No files found.
libavfilter/vf_decimate.c
View file @
40ecd44f
...
...
@@ -132,14 +132,6 @@ static int decimate_frame(AVFilterContext *ctx,
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
DecimateContext
*
decimate
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"max"
,
"hi"
,
"lo"
,
"frac"
,
NULL
};
int
ret
;
decimate
->
class
=
&
decimate_class
;
av_opt_set_defaults
(
decimate
);
if
((
ret
=
av_opt_set_from_string
(
decimate
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"max_drop_count:%d hi:%d lo:%d frac:%f
\n
"
,
decimate
->
max_drop_count
,
decimate
->
hi
,
decimate
->
lo
,
decimate
->
frac
);
...
...
@@ -157,7 +149,6 @@ static av_cold void uninit(AVFilterContext *ctx)
DecimateContext
*
decimate
=
ctx
->
priv
;
av_frame_free
(
&
decimate
->
ref
);
avcodec_close
(
decimate
->
avctx
);
av_opt_free
(
decimate
);
av_freep
(
&
decimate
->
avctx
);
}
...
...
@@ -251,6 +242,8 @@ static const AVFilterPad decimate_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"max"
,
"hi"
,
"lo"
,
"frac"
,
NULL
};
AVFilter
avfilter_vf_decimate
=
{
.
name
=
"decimate"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Remove near-duplicate frames."
),
...
...
@@ -262,4 +255,5 @@ AVFilter avfilter_vf_decimate = {
.
inputs
=
decimate_inputs
,
.
outputs
=
decimate_outputs
,
.
priv_class
=
&
decimate_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