OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
scalebit.h
1 /*
2  * This file is part of the Scale2x project.
3  *
4  * Copyright (C) 2003 Andrea Mazzoleni
5  *
6  * This program 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  * This program 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., 675 Mass Ave, Cambridge, MA 02139, USA.
19  */
20 
21 /*
22  * This file contains an example implementation of the Scale effect
23  * applyed to a generic bitmap.
24  *
25  * You can find an high level description of the effect at :
26  *
27  * http://scale2x.sourceforge.net/
28  *
29  * Alternatively at the previous license terms, you are allowed to use this
30  * code in your program with these conditions:
31  * - the program is not used in commercial activities.
32  * - the whole source code of the program is released with the binary.
33  * - derivative works of the program are allowed.
34  */
35 
36 #ifndef __SCALEBIT_H
37 #define __SCALEBIT_H
38 
39 int scale_precondition(unsigned scale, unsigned pixel, unsigned width, unsigned height);
40 void scale(unsigned scale, void* void_dst, unsigned dst_slice, const void* void_src, unsigned src_slice, unsigned pixel, unsigned width, unsigned height);
41 
42 #endif
43