]> git.sesse.net Git - x264/blob - core/mc.h
* all: re-import of the CVS.
[x264] / core / mc.h
1 /*****************************************************************************
2  * mc.h: h264 encoder library (Motion Compensation)
3  *****************************************************************************
4  * Copyright (C) 2003 Laurent Aimar
5  * $Id: mc.h,v 1.1 2004/06/03 19:27:07 fenrir Exp $
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
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 General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _MC_H
25 #define _MC_H 1
26
27 /* Do the MC
28  * XXX: Only width = 4, 8 or 16 are valid
29  * width == 4 -> height == 4 or 8
30  * width == 8 -> height == 4 or 8 or 16
31  * width == 16-> height == 8 or 16
32  * */
33
34 typedef void (*x264_mc_function_t)(uint8_t *, int, uint8_t *, int,
35                           int mvx, int mvy,
36                           int i_width, int i_height );
37 enum
38 {
39     MC_LUMA   = 0,
40     MC_CHROMA = 1,
41 };
42
43 void x264_mc_init( int cpu, x264_mc_function_t pf[2] );
44
45 #endif