A little more detail regarding using my github copies of the code with where it's...
[vlc/adversarial.git] / modules / video_filter / deinterlace / algo_x.h
blob16b7cd1bde596f9490b78a1b39ae55747f618b1a
1 /*****************************************************************************
2 * algo_x.h : "X" algorithm for vlc deinterlacer
3 *****************************************************************************
4 * Copyright (C) 2000-2011 VLC authors and VideoLAN
5 * $Id$
7 * Author: Laurent Aimar <fenrir@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef VLC_DEINTERLACE_ALGO_X_H
25 #define VLC_DEINTERLACE_ALGO_X_H 1
27 /* Forward declarations */
28 struct picture_t;
30 /*****************************************************************************
31 * Functions
32 *****************************************************************************/
34 /**
35 * Interpolating deinterlace filter "X".
37 * The algorithm works on a 8x8 block basic, it copies the top field
38 * and applies a process to recreate the bottom field.
40 * If a 8x8 block is classified as :
41 * - progressive: it applies a small blend (1,6,1)
42 * - interlaced:
43 * * in the MMX version: we do a ME between the 2 fields, if there is a
44 * good match we use MC to recreate the bottom field (with a small
45 * blend (1,6,1) )
46 * * otherwise: it recreates the bottom field by an edge oriented
47 * interpolation.
49 * @param[in] p_pic Input frame.
50 * @param[out] p_outpic Output frame. Must be allocated by caller.
51 * @see Deinterlace()
53 void RenderX( picture_t *p_outpic, picture_t *p_pic );
55 #endif