2 * This file is part of FFmpeg.
4 * FFmpeg 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 * FFmpeg 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 FFmpeg; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 * progressive to interlaced content filter, inspired by heavy debugging of
25 #ifndef AVFILTER_INTERLACE_H
26 #define AVFILTER_INTERLACE_H
28 #include "libavutil/common.h"
29 #include "libavutil/imgutils.h"
30 #include "libavutil/opt.h"
47 typedef struct InterlaceContext {
49 enum ScanMode scan; // top or bottom field first scanning
50 int lowpass; // enable or disable low pass filterning
51 AVFrame *cur, *next; // the two frames from which the new one is obtained
52 void (*lowpass_line)(uint8_t *dstp, ptrdiff_t linesize, const uint8_t *srcp,
53 const uint8_t *srcp_above, const uint8_t *srcp_below);
56 void ff_interlace_init_x86(InterlaceContext *interlace);
58 #endif /* AVFILTER_INTERLACE_H */