Merge remote-tracking branch 'libav/master'
[FFMpeg-mirror/mplayer-patches.git] / libavfilter / yadif.h
bloba9cbecf471e4c6f102b4a85e0872975754cefc5d
1 /*
2 * This file is part of Libav.
4 * Libav is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * Libav is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with Libav; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef AVFILTER_YADIF_H
20 #define AVFILTER_YADIF_H
22 #include "libavutil/pixdesc.h"
23 #include "avfilter.h"
25 typedef struct YADIFContext {
26 /**
27 * 0: send 1 frame for each frame
28 * 1: send 1 frame for each field
29 * 2: like 0 but skips spatial interlacing check
30 * 3: like 1 but skips spatial interlacing check
32 int mode;
34 /**
35 * 0: top field first
36 * 1: bottom field first
37 * -1: auto-detection
39 int parity;
41 int frame_pending;
43 /**
44 * 0: deinterlace all frames
45 * 1: only deinterlace frames marked as interlaced
47 int auto_enable;
49 AVFrame *cur;
50 AVFrame *next;
51 AVFrame *prev;
52 AVFrame *out;
54 /**
55 * Required alignment for filter_line
57 int req_align;
58 void (*filter_line)(void *dst,
59 void *prev, void *cur, void *next,
60 int w, int prefs, int mrefs, int parity, int mode);
61 void (*filter_edges)(void *dst, void *prev, void *cur, void *next,
62 int w, int prefs, int mrefs, int parity, int mode,
63 int l_edge);
65 const AVPixFmtDescriptor *csp;
66 int eof;
67 } YADIFContext;
69 void ff_yadif_init_x86(YADIFContext *yadif);
71 #endif /* AVFILTER_YADIF_H */