summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_idet.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-10-19 13:32:56 -0700
committerMichael Niedermayer <michaelni@gmx.at>2014-10-20 14:52:27 +0200
commitff68ceb1b55b7801afd25186ca16e606bfd2442a (patch)
treee22e127f69b4b51f97b1838dd7f20b5a28694ae1 /libavfilter/vf_idet.c
parentb5583fc3e002b57441b37d60f8728fd9b09ddc47 (diff)
downloadffmpeg-streaming-ff68ceb1b55b7801afd25186ca16e606bfd2442a.zip
ffmpeg-streaming-ff68ceb1b55b7801afd25186ca16e606bfd2442a.tar.gz
avfilter/vf_idet: add both multiple and single frame detection metadata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r--libavfilter/vf_idet.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index ebbc7d2..339f4a6 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -178,10 +178,15 @@ 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);
+ av_dict_set_int(metadata, "lavfi.idet.single.tff", idet->prestat[TFF], 0);
+ av_dict_set_int(metadata, "lavfi.idet.single.bff", idet->prestat[BFF], 0);
+ av_dict_set_int(metadata, "lavfi.idet.single.progressive", idet->prestat[PROGRESSIVE], 0);
+ av_dict_set_int(metadata, "lavfi.idet.single.undetermined", idet->prestat[UNDETERMINED], 0);
+
+ av_dict_set_int(metadata, "lavfi.idet.multiple.tff", idet->poststat[TFF], 0);
+ av_dict_set_int(metadata, "lavfi.idet.multiple.bff", idet->poststat[BFF], 0);
+ av_dict_set_int(metadata, "lavfi.idet.multiple.progressive", idet->poststat[PROGRESSIVE], 0);
+ av_dict_set_int(metadata, "lavfi.idet.multiple.undetermined", idet->poststat[UNDETERMINED], 0);
return ff_filter_frame(ctx->outputs[0], av_frame_clone(idet->cur));
}
OpenPOWER on IntegriCloud