Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-01-03 04:58:15 +0400
committerStefano Sabatini <stefasab@gmail.com>2013-01-04 14:48:54 +0400
commitcb8d3965fd7e74740e8b5c0a23a394fee4083770 (patch)
tree5350e004b86217d3fba9a6a16cadd4f509f994e6 /libavfilter/yadif.h
parentf7dc6aa6b194ea7b8e0d6f475f8ba04c3cd50a99 (diff)
lavfi/yadif: add support to named constants
Diffstat (limited to 'libavfilter/yadif.h')
-rw-r--r--libavfilter/yadif.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/libavfilter/yadif.h b/libavfilter/yadif.h
index 22904fb660..d2084fa86e 100644
--- a/libavfilter/yadif.h
+++ b/libavfilter/yadif.h
@@ -22,32 +22,33 @@
#include "libavutil/pixdesc.h"
#include "avfilter.h"
+enum YADIFMode {
+ YADIF_MODE_SEND_FRAME = 0, ///< send 1 frame for each frame
+ YADIF_MODE_SEND_FIELD = 1, ///< send 1 frame for each field
+ YADIF_MODE_SEND_FRAME_NOSPATIAL = 2, ///< send 1 frame for each frame but skips spatial interlacing check
+ YADIF_MODE_SEND_FIELD_NOSPATIAL = 3, ///< send 1 frame for each field but skips spatial interlacing check
+};
+
+enum YADIFParity {
+ YADIF_PARITY_TFF = 0, ///< top field first
+ YADIF_PARITY_BFF = 1, ///< bottom field first
+ YADIF_PARITY_AUTO = -1, ///< auto detection
+};
+
+enum YADIFDeint {
+ YADIF_DEINT_ALL = 0, ///< deinterlace all frames
+ YADIF_DEINT_INTERLACED = 1, ///< only deinterlace frames marked as interlaced
+};
+
typedef struct YADIFContext {
const AVClass *class;
- /**
- * 0: send 1 frame for each frame
- * 1: send 1 frame for each field
- * 2: like 0 but skips spatial interlacing check
- * 3: like 1 but skips spatial interlacing check
- */
- int mode;
-
- /**
- * 0: top field first
- * 1: bottom field first
- * -1: auto-detection
- */
- int parity;
+ enum YADIFMode mode;
+ enum YADIFParity parity;
+ enum YADIFDeint deint;
int frame_pending;
- /**
- * 0: deinterlace all frames
- * 1: only deinterlace frames marked as interlaced
- */
- int deint;
-
AVFilterBufferRef *cur;
AVFilterBufferRef *next;
AVFilterBufferRef *prev;