From 28b5dc6199ed7b4f62e345865fe28142b9cbf9e0 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Fri, 6 Dec 2019 10:35:41 +0100 Subject: avfilter/vf_interlace: restore lowpass mode constants The documentation still mentions numerical constants in addition to textual ones. It is also wrong to use distinct modes as flags and it disallows us to actually use the flags field for real flags in the future. Signed-off-by: Marton Balint --- libavfilter/tinterlace.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavfilter/tinterlace.h') diff --git a/libavfilter/tinterlace.h b/libavfilter/tinterlace.h index 5bcb9a583a..e204b61aa0 100644 --- a/libavfilter/tinterlace.h +++ b/libavfilter/tinterlace.h @@ -37,6 +37,12 @@ #define TINTERLACE_FLAG_CVLPF 2 #define TINTERLACE_FLAG_EXACT_TB 4 +enum VLPFilter { + VLPF_OFF = 0, + VLPF_LIN = 1, + VLPF_CMP = 2, +}; + enum TInterlaceMode { MODE_MERGE = 0, MODE_DROP_EVEN, @@ -59,6 +65,7 @@ typedef struct TInterlaceContext { int mode; ///< TInterlaceMode, interlace mode selected AVRational preout_time_base; int flags; ///< flags affecting interlacing algorithm + int lowpass; ///< legacy interlace filter lowpass mode int frame; ///< number of the output frame int vsub; ///< chroma vertical subsampling AVFrame *cur; -- cgit v1.2.3