1 /* 2 * Copyright (C) 2003 Maxim Stepin ( maxst@hiend3d.com ) 3 * 4 * Copyright (C) 2010 Cameron Zemek ( grom@zeminvaders.net) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (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 GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 */ 20 21 #ifndef __HQX_H_ 22 #define __HQX_H_ 23 24 #include <stdint.h> 25 26 #if defined( __GNUC__ ) 27 #ifdef __MINGW32__ 28 #define HQX_CALLCONV __stdcall 29 #else 30 #define HQX_CALLCONV 31 #endif 32 #else 33 #define HQX_CALLCONV 34 #endif 35 36 #if defined(_WIN32) && 0 37 #ifdef DLL_EXPORT 38 #define HQX_API __declspec(dllexport) 39 #else 40 #define HQX_API __declspec(dllimport) 41 #endif 42 #else 43 #define HQX_API 44 #endif 45 46 HQX_API void HQX_CALLCONV hqxInit(void); 47 HQX_API void HQX_CALLCONV hq2x_32( uint32_t * src, uint32_t * dest, int width, int height ); 48 HQX_API void HQX_CALLCONV hq3x_32( uint32_t * src, uint32_t * dest, int width, int height ); 49 HQX_API void HQX_CALLCONV hq4x_32( uint32_t * src, uint32_t * dest, int width, int height ); 50 51 HQX_API void HQX_CALLCONV hq2x_32_rb( uint32_t * src, uint32_t src_rowBytes, uint32_t * dest, uint32_t dest_rowBytes, int width, int height ); 52 HQX_API void HQX_CALLCONV hq3x_32_rb( uint32_t * src, uint32_t src_rowBytes, uint32_t * dest, uint32_t dest_rowBytes, int width, int height ); 53 HQX_API void HQX_CALLCONV hq4x_32_rb( uint32_t * src, uint32_t src_rowBytes, uint32_t * dest, uint32_t dest_rowBytes, int width, int height ); 54 55 #endif 56