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
a36d9036
Commit
a36d9036
authored
Mar 24, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/boxblur: use standard options parsing.
parent
3f807288
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
vf_boxblur.c
libavfilter/vf_boxblur.c
+8
-14
No files found.
libavfilter/vf_boxblur.c
View file @
a36d9036
...
@@ -105,19 +105,6 @@ AVFILTER_DEFINE_CLASS(boxblur);
...
@@ -105,19 +105,6 @@ AVFILTER_DEFINE_CLASS(boxblur);
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
{
BoxBlurContext
*
boxblur
=
ctx
->
priv
;
BoxBlurContext
*
boxblur
=
ctx
->
priv
;
static
const
char
*
shorthand
[]
=
{
"luma_radius"
,
"luma_power"
,
"chroma_radius"
,
"chroma_power"
,
"alpha_radius"
,
"alpha_power"
,
NULL
};
int
ret
;
boxblur
->
class
=
&
boxblur_class
;
av_opt_set_defaults
(
boxblur
);
if
((
ret
=
av_opt_set_from_string
(
boxblur
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
/* fill missing params */
/* fill missing params */
if
(
!
boxblur
->
chroma_param
.
radius_expr
)
{
if
(
!
boxblur
->
chroma_param
.
radius_expr
)
{
...
@@ -145,7 +132,6 @@ static av_cold void uninit(AVFilterContext *ctx)
...
@@ -145,7 +132,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep
(
&
boxblur
->
temp
[
0
]);
av_freep
(
&
boxblur
->
temp
[
0
]);
av_freep
(
&
boxblur
->
temp
[
1
]);
av_freep
(
&
boxblur
->
temp
[
1
]);
av_opt_free
(
boxblur
);
}
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
static
int
query_formats
(
AVFilterContext
*
ctx
)
...
@@ -381,6 +367,13 @@ static const AVFilterPad avfilter_vf_boxblur_outputs[] = {
...
@@ -381,6 +367,13 @@ static const AVFilterPad avfilter_vf_boxblur_outputs[] = {
{
NULL
}
{
NULL
}
};
};
static
const
char
*
const
shorthand
[]
=
{
"luma_radius"
,
"luma_power"
,
"chroma_radius"
,
"chroma_power"
,
"alpha_radius"
,
"alpha_power"
,
NULL
};
AVFilter
avfilter_vf_boxblur
=
{
AVFilter
avfilter_vf_boxblur
=
{
.
name
=
"boxblur"
,
.
name
=
"boxblur"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Blur the input."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Blur the input."
),
...
@@ -393,4 +386,5 @@ AVFilter avfilter_vf_boxblur = {
...
@@ -393,4 +386,5 @@ AVFilter avfilter_vf_boxblur = {
.
outputs
=
avfilter_vf_boxblur_outputs
,
.
outputs
=
avfilter_vf_boxblur_outputs
,
.
priv_class
=
&
boxblur_class
,
.
priv_class
=
&
boxblur_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