diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-01-03 01:58:15 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-01-04 11:48:54 +0100 |
commit | cb8d3965fd7e74740e8b5c0a23a394fee4083770 (patch) | |
tree | 5350e004b86217d3fba9a6a16cadd4f509f994e6 /libavfilter/yadif.h | |
parent | f7dc6aa6b194ea7b8e0d6f475f8ba04c3cd50a99 (diff) | |
download | ffmpeg-cb8d3965fd7e74740e8b5c0a23a394fee4083770.tar.gz |
lavfi/yadif: add support to named constants
Diffstat (limited to 'libavfilter/yadif.h')
-rw-r--r-- | libavfilter/yadif.h | 41 |
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; |