OpenXcom  1.0
Open-source clone of the original X-Com
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 
17 /*
18  * This file contains an example implementation of the Scale effect
19  * applied to a generic bitmap.
20  *
21  * You can find an high level description of the effect at :
22  *
23  * http://scale2x.sourceforge.net/
24  */
25 
26 #ifndef __SCALEBIT_H
27 #define __SCALEBIT_H
28 
29 int scale_precondition(unsigned scale, unsigned pixel, unsigned width, unsigned height);
30 void scale(unsigned scale, void* void_dst, unsigned dst_slice, const void* void_src, unsigned src_slice, unsigned pixel, unsigned width, unsigned height);
31 
32 #endif
33