[FFmpeg-cvslog] avfilter/vf_idet: add counts to frame metadata
Kevin Mitchell
git at videolan.org
Sun Oct 19 15:58:48 CEST 2014
ffmpeg | branch: master | Kevin Mitchell <kevmitch at gmail.com> | Sun Oct 19 04:11:25 2014 -0700| [9d51bad6255ec58493c8a5369594d701a5766020] | committer: Michael Niedermayer
avfilter/vf_idet: add counts to frame metadata
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d51bad6255ec58493c8a5369594d701a5766020
---
libavfilter/vf_idet.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index f8d71de..ebbc7d2 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));
}
More information about the ffmpeg-cvslog
mailing list