Commit 9d51bad6 authored by Kevin Mitchell's avatar Kevin Mitchell Committed by Michael Niedermayer

avfilter/vf_idet: add counts to frame metadata

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a71a5c91
......@@ -154,6 +154,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
{
AVFilterContext *ctx = link->dst;
IDETContext *idet = ctx->priv;
AVDictionary **metadata = avpriv_frame_get_metadatap(picref);
if (idet->prev)
av_frame_free(&idet->prev);
......@@ -177,6 +178,11 @@ static int filter_frame(AVFilterLink *link, AVFrame *picref)
filter(ctx);
av_dict_set_int(metadata, "lavfi.idet.tff", idet->prestat[TFF], 0);
av_dict_set_int(metadata, "lavfi.idet.bff", idet->prestat[BFF], 0);
av_dict_set_int(metadata, "lavfi.idet.progressive", idet->prestat[PROGRESSIVE], 0);
av_dict_set_int(metadata, "lavfi.idet.undetermined", idet->prestat[UNDETERMINED], 0);
return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment