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
018cc6f0
Commit
018cc6f0
authored
Apr 08, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/histogram: use standard options parsing
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
1f97dfb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
vf_histogram.c
libavfilter/vf_histogram.c
+3
-23
No files found.
libavfilter/vf_histogram.c
View file @
018cc6f0
...
...
@@ -73,20 +73,6 @@ static const AVOption histogram_options[] = {
AVFILTER_DEFINE_CLASS
(
histogram
);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
HistogramContext
*
h
=
ctx
->
priv
;
int
ret
;
h
->
class
=
&
histogram_class
;
av_opt_set_defaults
(
h
);
if
((
ret
=
(
av_set_options_string
(
h
,
args
,
"="
,
":"
)))
<
0
)
return
ret
;
return
0
;
}
static
const
enum
AVPixelFormat
color_pix_fmts
[]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_NONE
...
...
@@ -306,13 +292,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
0
;
}
static
av_cold
void
uninit
(
AVFilterContext
*
ctx
)
{
HistogramContext
*
h
=
ctx
->
priv
;
av_opt_free
(
h
);
}
static
const
AVFilterPad
inputs
[]
=
{
{
.
name
=
"default"
,
...
...
@@ -332,14 +311,15 @@ static const AVFilterPad outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
NULL
};
AVFilter
avfilter_vf_histogram
=
{
.
name
=
"histogram"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Compute and draw a histogram."
),
.
priv_size
=
sizeof
(
HistogramContext
),
.
init
=
init
,
.
uninit
=
uninit
,
.
query_formats
=
query_formats
,
.
inputs
=
inputs
,
.
outputs
=
outputs
,
.
priv_class
=
&
histogram_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