2 * This file is part of FFmpeg.
4 * FFmpeg is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (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
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef AVFILTER_PULLUP_H
20 #define AVFILTER_PULLUP_H
24 typedef struct PullupBuffer {
29 typedef struct PullupField {
38 struct PullupField *prev, *next;
41 typedef struct PullupFrame {
45 PullupBuffer *ifields[4], *ofields[2];
49 typedef struct PullupContext {
51 int junk_left, junk_right, junk_top, junk_bottom;
55 int metric_w, metric_h, metric_length;
60 PullupField *first, *last, *head;
61 PullupBuffer buffers[10];
64 int (*diff)(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
65 int (*comb)(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
66 int (*var )(const uint8_t *a, const uint8_t *b, ptrdiff_t s);
69 void ff_pullup_init_x86(PullupContext *s);
71 #endif /* AVFILTER_PULLUP_H */