diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-10-19 15:11:25 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-19 17:03:13 +0400 |
commit | 9d51bad6255ec58493c8a5369594d701a5766020 (patch) | |
tree | af98315770992a704c7519ab015523c3d3a6908c /libavfilter | |
parent | a71a5c911eb0bd46bfafc439550e0184a883a3a7 (diff) |
avfilter/vf_idet: add counts to frame metadata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_idet.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index f8d71dec55..ebbc7d2194 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -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)); } |