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
5b0151a4
Commit
5b0151a4
authored
Aug 16, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/hue: reindent after previous commits
parent
419e1b74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
vf_hue.c
libavfilter/vf_hue.c
+26
-26
No files found.
libavfilter/vf_hue.c
View file @
5b0151a4
...
...
@@ -72,34 +72,34 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
hue
->
class
=
&
hue_class
;
av_opt_set_defaults
(
hue
);
/* named options syntax */
if
(
args
)
{
if
(
equal
=
strchr
(
args
,
'='
))
{
if
((
ret
=
av_set_options_string
(
hue
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
hue
->
hue
!=
-
FLT_MAX
&&
hue
->
hue_deg
!=
-
FLT_MAX
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"H and h options are incompatible and cannot be specified "
"at the same time
\n
"
);
return
AVERROR
(
EINVAL
);
/* named options syntax */
if
(
equal
=
strchr
(
args
,
'='
))
{
if
((
ret
=
av_set_options_string
(
hue
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
hue
->
hue
!=
-
FLT_MAX
&&
hue
->
hue_deg
!=
-
FLT_MAX
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"H and h options are incompatible and cannot be specified "
"at the same time
\n
"
);
return
AVERROR
(
EINVAL
);
}
/* compatibility h:s syntax */
}
else
{
n
=
sscanf
(
args
,
"%f%c%f%c"
,
&
hue
->
hue_deg
,
&
c1
,
&
hue
->
saturation
,
&
c2
);
if
(
n
!=
1
&&
(
n
!=
3
||
c1
!=
':'
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid syntax for argument '%s': "
"must be in the form 'hue[:saturation]'
\n
"
,
args
);
return
AVERROR
(
EINVAL
);
}
if
(
hue
->
saturation
<
-
10
||
hue
->
saturation
>
10
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid value for saturation %0.1f: "
"must be included between range -10 and +10
\n
"
,
hue
->
saturation
);
return
AVERROR
(
EINVAL
);
}
}
/* compatibility syntax */
}
else
{
n
=
sscanf
(
args
,
"%f%c%f%c"
,
&
hue
->
hue_deg
,
&
c1
,
&
hue
->
saturation
,
&
c2
);
if
(
n
!=
1
&&
(
n
!=
3
||
c1
!=
':'
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid syntax for argument '%s': "
"must be in the form 'hue[:saturation]'
\n
"
,
args
);
return
AVERROR
(
EINVAL
);
}
if
(
hue
->
saturation
<
-
10
||
hue
->
saturation
>
10
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Invalid value for saturation %0.1f: "
"must be included between range -10 and +10
\n
"
,
hue
->
saturation
);
return
AVERROR
(
EINVAL
);
}
}
}
if
(
hue
->
saturation
==
-
FLT_MAX
)
...
...
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