diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-04 16:31:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-04 16:31:31 +0200 |
commit | 6fb35dbad11155ad0e30c421b10450cccb5429ba (patch) | |
tree | 00670a99181c2d1e69ec9e18452f3c7ffcaae709 | |
parent | baf0c79a4da265320e77af78a2810e254baa4110 (diff) | |
download | ffmpeg-6fb35dbad11155ad0e30c421b10450cccb5429ba.tar.gz |
vf_idet: print accumulated statistics at end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_idet.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index f4030a639e..39b3987699 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -120,7 +120,6 @@ static void filter(AVFilterContext *ctx) idet->cur->video->interlaced = idet->prev->video->interlaced; idet->cur->video->top_field_first = idet->prev->video->top_field_first; } -// av_log(ctx,0, "t%d b%d p%d u%d\n", t,b,p,u); } static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) @@ -198,6 +197,13 @@ static av_cold void uninit(AVFilterContext *ctx) { IDETContext *idet = ctx->priv; + av_log(ctx, AV_LOG_INFO, "TFF:%d BFF:%d Progressive:%d Undetermined:%d\n", + idet->stat_tff, + idet->stat_bff, + idet->stat_progressive, + idet->stat_undetermined + ); + if (idet->prev) avfilter_unref_buffer(idet->prev); if (idet->cur ) avfilter_unref_buffer(idet->cur ); if (idet->next) avfilter_unref_buffer(idet->next); |