summaryrefslogtreecommitdiff
path: root/libavfilter/vf_hue.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-04-11 20:42:32 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-04-11 21:37:35 +0200
commit3411aba82c83fd4a1e022ce071085b55037cf6cd (patch)
treea7dd0c2c625f65db2395998c11044ef7b14d8044 /libavfilter/vf_hue.c
parente4fd58f4725218db8ed38fe8cecbc776410059a1 (diff)
lavfi/hue: reindent after last commit
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c47
1 files changed, 23 insertions, 24 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index cc191fe25c..2de2a7939c 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -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, 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);
+ 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);
}
+ }
- 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;