diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-27 18:04:35 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-27 18:04:35 +0000 |
commit | b4356e4118b6cbe3a6ed81d16369acc5ff40ad05 (patch) | |
tree | 09b8dab68e62cc6f934e7704dc83644a6b49284e | |
parent | d46c27552b9d87b41d29ac646558285d3f69e919 (diff) | |
download | ffmpeg-b4356e4118b6cbe3a6ed81d16369acc5ff40ad05.tar.gz |
In the crop filter, put under ifdef DEBUG the trace logs for the
evaluated crop area coordinates.
Prevent debug log spamming, define the DEBUG symbol for enabling them.
Originally committed as revision 26110 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavfilter/vf_crop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 311ee30e7d..c9b76f626b 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -23,6 +23,8 @@ * video crop filter */ +/* #define DEBUG */ + #include "avfilter.h" #include "libavutil/eval.h" #include "libavutil/avstring.h" @@ -262,9 +264,11 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) crop->x &= ~((1 << crop->hsub) - 1); crop->y &= ~((1 << crop->vsub) - 1); +#ifdef DEBUG av_log(ctx, AV_LOG_DEBUG, "n:%d t:%f x:%d y:%d x+w:%d y+h:%d\n", (int)crop->var_values[VAR_N], crop->var_values[VAR_T], crop->x, crop->y, crop->x+crop->w, crop->y+crop->h); +#endif ref2->data[0] += crop->y * ref2->linesize[0]; ref2->data[0] += crop->x * crop->max_step[0]; |