vf_idet: print accumulated statistics at end
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		@@ -120,7 +120,6 @@ static void filter(AVFilterContext *ctx)
 | 
				
			|||||||
        idet->cur->video->interlaced      = idet->prev->video->interlaced;
 | 
					        idet->cur->video->interlaced      = idet->prev->video->interlaced;
 | 
				
			||||||
        idet->cur->video->top_field_first = idet->prev->video->top_field_first;
 | 
					        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)
 | 
					static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
 | 
				
			||||||
@@ -198,6 +197,13 @@ static av_cold void uninit(AVFilterContext *ctx)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    IDETContext *idet = ctx->priv;
 | 
					    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->prev) avfilter_unref_buffer(idet->prev);
 | 
				
			||||||
    if (idet->cur ) avfilter_unref_buffer(idet->cur );
 | 
					    if (idet->cur ) avfilter_unref_buffer(idet->cur );
 | 
				
			||||||
    if (idet->next) avfilter_unref_buffer(idet->next);
 | 
					    if (idet->next) avfilter_unref_buffer(idet->next);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user