00001 /* 00002 * This file is part of FFmpeg. 00003 * 00004 * FFmpeg is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * FFmpeg is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License along 00015 * with FFmpeg; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00017 */ 00018 00019 #ifndef AVFILTER_YADIF_H 00020 #define AVFILTER_YADIF_H 00021 00022 #include "libavutil/pixdesc.h" 00023 #include "avfilter.h" 00024 00025 typedef struct { 00032 int mode; 00033 00039 int parity; 00040 00041 int frame_pending; 00042 00047 int auto_enable; 00048 00049 AVFilterBufferRef *cur; 00050 AVFilterBufferRef *next; 00051 AVFilterBufferRef *prev; 00052 AVFilterBufferRef *out; 00053 void (*filter_line)(uint8_t *dst, 00054 uint8_t *prev, uint8_t *cur, uint8_t *next, 00055 int w, int prefs, int mrefs, int parity, int mode); 00056 00057 const AVPixFmtDescriptor *csp; 00058 int eof; 00059 uint8_t *temp_line; 00060 int temp_line_size; 00061 } YADIFContext; 00062 00063 void ff_yadif_init_x86(YADIFContext *yadif); 00064 00065 #endif /* AVFILTER_YADIF_H */