1 /* 2 * Copyright (C) 2001 the xine project 3 * 4 * This file is part of xine, a free video player. 5 * 6 * xine is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * xine is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 19 * 20 * Deinterlace routines by Miguel Freitas 21 * based of DScaler project sources (deinterlace.sourceforge.net) 22 * 23 * Currently only available for Xv driver and MMX extensions 24 * 25 */ 26 27 #ifndef __DEINTERLACE_H__ 28 #define __DEINTERLACE_H__ 29 30 //#include "video_out.h" 31 #include <stdint.h> 32 33 int deinterlace_yuv_supported ( int method ); 34 void deinterlace_yuv( uint8_t *pdst, uint8_t *psrc[], 35 int width, int height, int method ); 36 37 #define DEINTERLACE_NONE 0 38 #define DEINTERLACE_BOB 1 39 #define DEINTERLACE_WEAVE 2 40 #define DEINTERLACE_GREEDY 3 41 #define DEINTERLACE_ONEFIELD 4 42 #define DEINTERLACE_ONEFIELDXV 5 43 #define DEINTERLACE_LINEARBLEND 6 44 #define DEINTERLACE_YADIF 7 45 #define DEINTERLACE_YADIF_NOSPATIAL 8 46 47 extern const char *deinterlace_methods[]; 48 49 #endif 50