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
3411aba8
Commit
3411aba8
authored
Apr 11, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/hue: reindent after last commit
parent
e4fd58f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
vf_hue.c
libavfilter/vf_hue.c
+23
-24
No files found.
libavfilter/vf_hue.c
View file @
3411aba8
...
...
@@ -251,34 +251,33 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
av_frame_copy_props
(
outpic
,
inpic
);
}
/* todo: reindent */
hue
->
var_values
[
VAR_T
]
=
TS2T
(
inpic
->
pts
,
inlink
->
time_base
);
hue
->
var_values
[
VAR_PTS
]
=
TS2D
(
inpic
->
pts
);
if
(
hue
->
saturation_expr
)
{
hue
->
saturation
=
av_expr_eval
(
hue
->
saturation_pexpr
,
hue
->
var_values
,
NULL
);
if
(
hue
->
saturation
<
SAT_MIN_VAL
||
hue
->
saturation
>
SAT_MAX_VAL
)
{
hue
->
saturation
=
av_clip
(
hue
->
saturation
,
SAT_MIN_VAL
,
SAT_MAX_VAL
);
av_log
(
inlink
->
dst
,
AV_LOG_WARNING
,
"Saturation value not in range [%d,%d]: clipping value to %0.1f
\n
"
,
SAT_MIN_VAL
,
SAT_MAX_VAL
,
hue
->
saturation
);
}
}
hue
->
var_values
[
VAR_T
]
=
TS2T
(
inpic
->
pts
,
inlink
->
time_base
);
hue
->
var_values
[
VAR_PTS
]
=
TS2D
(
inpic
->
pts
);
if
(
hue
->
saturation_expr
)
{
hue
->
saturation
=
av_expr_eval
(
hue
->
saturation_pexpr
,
hue
->
var_values
,
NULL
);
if
(
hue
->
hue_deg_expr
)
{
hue
->
hue_deg
=
av_expr_eval
(
hue
->
hue_deg_pexpr
,
hue
->
var_values
,
NUL
L
);
hue
->
hue
=
hue
->
hue_deg
*
M_PI
/
180
;
}
else
if
(
hue
->
hue_expr
)
{
hue
->
hue
=
av_expr_eval
(
hue
->
hue_pexpr
,
hue
->
var_values
,
NULL
);
if
(
hue
->
saturation
<
SAT_MIN_VAL
||
hue
->
saturation
>
SAT_MAX_VAL
)
{
hue
->
saturation
=
av_clip
(
hue
->
saturation
,
SAT_MIN_VAL
,
SAT_MAX_VA
L
);
av_log
(
inlink
->
dst
,
AV_LOG_WARNING
,
"Saturation value not in range [%d,%d]: clipping value to %0.1f
\n
"
,
SAT_MIN_VAL
,
SAT_MAX_VAL
,
hue
->
saturation
);
}
}
av_log
(
inlink
->
dst
,
AV_LOG_DEBUG
,
"H:%0.1f s:%0.f t:%0.1f n:%d
\n
"
,
hue
->
hue
,
hue
->
saturation
,
hue
->
var_values
[
VAR_T
],
(
int
)
hue
->
var_values
[
VAR_N
]);
if
(
hue
->
hue_deg_expr
)
{
hue
->
hue_deg
=
av_expr_eval
(
hue
->
hue_deg_pexpr
,
hue
->
var_values
,
NULL
);
hue
->
hue
=
hue
->
hue_deg
*
M_PI
/
180
;
}
else
if
(
hue
->
hue_expr
)
{
hue
->
hue
=
av_expr_eval
(
hue
->
hue_pexpr
,
hue
->
var_values
,
NULL
);
}
av_log
(
inlink
->
dst
,
AV_LOG_DEBUG
,
"H:%0.1f s:%0.f t:%0.1f n:%d
\n
"
,
hue
->
hue
,
hue
->
saturation
,
hue
->
var_values
[
VAR_T
],
(
int
)
hue
->
var_values
[
VAR_N
]);
compute_sin_and_cos
(
hue
);
compute_sin_and_cos
(
hue
);
hue
->
var_values
[
VAR_N
]
+=
1
;
...
...
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