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"
25 typedef struct YADIFContext
{
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
36 * 1: bottom field first
44 * 0: deinterlace all frames
45 * 1: only deinterlace frames marked as interlaced
49 AVFilterBufferRef
*cur
;
50 AVFilterBufferRef
*next
;
51 AVFilterBufferRef
*prev
;
52 AVFilterBufferRef
*out
;
53 void (*filter_line
)(uint8_t *dst
,
54 uint8_t *prev
, uint8_t *cur
, uint8_t *next
,
55 int w
, int prefs
, int mrefs
, int parity
, int mode
);
57 const AVPixFmtDescriptor
*csp
;
61 void ff_yadif_init_x86(YADIFContext
*yadif
);
63 #endif /* AVFILTER_YADIF_H */