summaryrefslogtreecommitdiff
path: root/libavfilter/vf_idet.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-11-02 04:49:34 -0800
committerMichael Niedermayer <michaelni@gmx.at>2014-11-05 12:10:42 +0100
commitfdf22f973d4118b6844ff73b881d046a2e50f435 (patch)
treeaff9f2a56a05ce82e83151c71c0a475440ba14a6 /libavfilter/vf_idet.h
parent07c3a4f693360b315ecbc45f7260016c09bf0324 (diff)
avfilter/vf_idet: add a repeated field detection
This can be useful for determining telecine. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.h')
-rw-r--r--libavfilter/vf_idet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/vf_idet.h b/libavfilter/vf_idet.h
index 05aa1e0506..af759b476e 100644
--- a/libavfilter/vf_idet.h
+++ b/libavfilter/vf_idet.h
@@ -33,16 +33,26 @@ typedef enum {
UNDETERMINED,
} Type;
+typedef enum {
+ REPEAT_NONE,
+ REPEAT_TOP,
+ REPEAT_BOTTOM,
+} RepeatedField;
+
typedef struct {
const AVClass *class;
float interlace_threshold;
float progressive_threshold;
+ float repeat_threshold;
float half_life;
uint64_t decay_coefficient;
Type last_type;
+
+ uint64_t repeats[3];
uint64_t prestat[4];
uint64_t poststat[4];
+ uint64_t total_repeats[3];
uint64_t total_prestat[4];
uint64_t total_poststat[4];