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
dd373263
Commit
dd373263
authored
Feb 19, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/hue: reindent after previous commit
parent
d709a18a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
vf_hue.c
libavfilter/vf_hue.c
+30
-30
No files found.
libavfilter/vf_hue.c
View file @
dd373263
...
...
@@ -134,39 +134,39 @@ static inline int set_options(AVFilterContext *ctx, const char *args)
char
*
old_hue_expr
,
*
old_hue_deg_expr
,
*
old_saturation_expr
;
AVExpr
*
old_hue_pexpr
,
*
old_hue_deg_pexpr
,
*
old_saturation_pexpr
;
static
const
char
*
shorthand
[]
=
{
"h"
,
"s"
,
NULL
};
old_hue_expr
=
hue
->
hue_expr
;
old_hue_deg_expr
=
hue
->
hue_deg_expr
;
old_saturation_expr
=
hue
->
saturation_expr
;
old_hue_pexpr
=
hue
->
hue_pexpr
;
old_hue_deg_pexpr
=
hue
->
hue_deg_pexpr
;
old_saturation_pexpr
=
hue
->
saturation_pexpr
;
hue
->
hue_expr
=
NULL
;
hue
->
hue_deg_expr
=
NULL
;
hue
->
saturation_expr
=
NULL
;
if
((
ret
=
av_opt_set_from_string
(
hue
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
hue
->
hue_expr
&&
hue
->
hue_deg_expr
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"H and h options are incompatible and cannot be specified "
"at the same time
\n
"
);
hue
->
hue_expr
=
old_hue_expr
;
hue
->
hue_deg_expr
=
old_hue_deg_expr
;
return
AVERROR
(
EINVAL
);
}
old_hue_expr
=
hue
->
hue_expr
;
old_hue_deg_expr
=
hue
->
hue_deg_expr
;
old_saturation_expr
=
hue
->
saturation_expr
;
old_hue_pexpr
=
hue
->
hue_pexpr
;
old_hue_deg_pexpr
=
hue
->
hue_deg_pexpr
;
old_saturation_pexpr
=
hue
->
saturation_pexpr
;
hue
->
hue_expr
=
NULL
;
hue
->
hue_deg_expr
=
NULL
;
hue
->
saturation_expr
=
NULL
;
if
((
ret
=
av_opt_set_from_string
(
hue
,
args
,
shorthand
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
hue
->
hue_expr
&&
hue
->
hue_deg_expr
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"H and h options are incompatible and cannot be specified "
"at the same time
\n
"
);
hue
->
hue_expr
=
old_hue_expr
;
hue
->
hue_deg_expr
=
old_hue_deg_expr
;
return
AVERROR
(
EINVAL
);
}
SET_EXPRESSION
(
hue_deg
,
h
);
SET_EXPRESSION
(
hue
,
H
);
SET_EXPRESSION
(
saturation
,
s
);
SET_EXPRESSION
(
hue_deg
,
h
);
SET_EXPRESSION
(
hue
,
H
);
SET_EXPRESSION
(
saturation
,
s
);
hue
->
flat_syntax
=
0
;
hue
->
flat_syntax
=
0
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"H_expr:%s h_deg_expr:%s s_expr:%s
\n
"
,
hue
->
hue_expr
,
hue
->
hue_deg_expr
,
hue
->
saturation_expr
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"H_expr:%s h_deg_expr:%s s_expr:%s
\n
"
,
hue
->
hue_expr
,
hue
->
hue_deg_expr
,
hue
->
saturation_expr
);
compute_sin_and_cos
(
hue
);
...
...
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