diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-04-11 22:56:51 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-04-11 23:37:43 +0400 |
commit | 160ed967f459966191de34f4fc8fc1664d1ff2e6 (patch) | |
tree | e17fbc92e913dab8d7d6927bdf19ca890b581292 /libavfilter/vf_hue.c | |
parent | 3411aba82c83fd4a1e022ce071085b55037cf6cd (diff) |
lavfi/hue: extend debugging message
In particular, show h value in degrees.
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r-- | libavfilter/vf_hue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 2de2a7939c..b6814f6033 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -270,11 +270,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic) 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); + hue->hue_deg = hue->hue * 180 / M_PI; } av_log(inlink->dst, AV_LOG_DEBUG, - "H:%0.1f s:%0.f t:%0.1f n:%d\n", - hue->hue, hue->saturation, + "H:%0.1f*PI h:%0.1f s:%0.f t:%0.1f n:%d\n", + hue->hue/M_PI, hue->hue_deg, hue->saturation, hue->var_values[VAR_T], (int)hue->var_values[VAR_N]); compute_sin_and_cos(hue); |