Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b595819c
Commit
b595819c
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/geq: use standard options parsing.
parent
cb0fb4d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
vf_geq.c
libavfilter/vf_geq.c
+3
-8
No files found.
libavfilter/vf_geq.c
View file @
b595819c
...
...
@@ -92,13 +92,6 @@ static av_cold int geq_init(AVFilterContext *ctx, const char *args)
{
GEQContext
*
geq
=
ctx
->
priv
;
int
plane
,
ret
=
0
;
static
const
char
*
shorthand
[]
=
{
"lum_expr"
,
"cb_expr"
,
"cr_expr"
,
"alpha_expr"
,
NULL
};
geq
->
class
=
&
geq_class
;
av_opt_set_defaults
(
geq
);
if
((
ret
=
av_opt_set_from_string
(
geq
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
!
geq
->
expr_str
[
0
])
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Luminance expression is mandatory
\n
"
);
...
...
@@ -215,7 +208,6 @@ static av_cold void geq_uninit(AVFilterContext *ctx)
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
geq
->
e
);
i
++
)
av_expr_free
(
geq
->
e
[
i
]);
av_opt_free
(
geq
);
}
static
const
AVFilterPad
geq_inputs
[]
=
{
...
...
@@ -236,6 +228,8 @@ static const AVFilterPad geq_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"lum_expr"
,
"cb_expr"
,
"cr_expr"
,
"alpha_expr"
,
NULL
};
AVFilter
avfilter_vf_geq
=
{
.
name
=
"geq"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Apply generic equation to each pixel."
),
...
...
@@ -246,4 +240,5 @@ AVFilter avfilter_vf_geq = {
.
inputs
=
geq_inputs
,
.
outputs
=
geq_outputs
,
.
priv_class
=
&
geq_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