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
552c02f2
Commit
552c02f2
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/histeq: use standard options parsing.
parent
b27a8ba1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
vf_histeq.c
libavfilter/vf_histeq.c
+3
-15
No files found.
libavfilter/vf_histeq.c
View file @
552c02f2
...
...
@@ -85,14 +85,6 @@ AVFILTER_DEFINE_CLASS(histeq);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
HisteqContext
*
histeq
=
ctx
->
priv
;
const
char
*
shorthand
[]
=
{
"strength"
,
"intensity"
,
"antibanding"
,
NULL
};
int
ret
;
histeq
->
class
=
&
histeq_class
;
av_opt_set_defaults
(
histeq
);
if
((
ret
=
av_opt_set_from_string
(
histeq
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"strength:%0.3f intensity:%0.3f antibanding:%d
\n
"
,
...
...
@@ -101,12 +93,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
HisteqContext
*
histeq
=
ctx
->
priv
;
av_opt_free
(
histeq
);
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
PixelFormat
pix_fmts
[]
=
{
...
...
@@ -283,15 +269,17 @@ static const AVFilterPad histeq_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
"strength"
,
"intensity"
,
"antibanding"
,
NULL
};
AVFilter
avfilter_vf_histeq
=
{
.
name
=
"histeq"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Apply global color histogram equalization."
),
.
priv_size
=
sizeof
(
HisteqContext
),
.
init
=
init
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
inputs
=
histeq_inputs
,
.
outputs
=
histeq_outputs
,
.
priv_class
=
&
histeq_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