uae-wii/src/include/gfxfilter.h
2009-05-05 15:36:48 +00:00

61 lines
2.0 KiB
C
Executable File

#ifdef GFXFILTER
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
extern void S2X_refresh (void);
extern void S2X_render (void);
extern void S2X_init (int dw, int dh, int aw, int ah, int mult, int ad, int dd);
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;
typedef int bool;
extern void S2X_configure (int rb, int gb, int bb, int rs, int gs, int bs);
extern int Init_2xSaI(int rb, int gb, int bb, int rs, int gs, int bs);
extern void Super2xSaI(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height);
extern void SuperEagle(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height);
extern void _2xSaI(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height);
extern void AdMame2x(u8 *srcPtr, u32 srcPitch, /* u8 deltaPtr, */
u8 *dstPtr, u32 dstPitch, int width, int height);
extern void AdMame2x32(u8 *srcPtr, u32 srcPitch, /* u8 deltaPtr, */
u8 *dstPtr, u32 dstPitch, int width, int height);
extern void hq_init(int rb, int gb, int bb, int rs, int gs, int bs);
extern void hq2x_32(unsigned char*, unsigned char*, int, int, int, int, int);
extern void hq3x_32(unsigned char*, unsigned char*, int, int, int, int, int);
extern void hq3x_16(unsigned char*, unsigned char*, int, int, int, int, int);
extern void hq4x_32(unsigned char*, unsigned char*, int, int, int, int, int);
#define UAE_FILTER_NULL 1
#define UAE_FILTER_DIRECT3D 2
#define UAE_FILTER_OPENGL 3
#define UAE_FILTER_SCALE2X 4
#define UAE_FILTER_SUPEREAGLE 5
#define UAE_FILTER_SUPER2XSAI 6
#define UAE_FILTER_2XSAI 7
#define UAE_FILTER_HQ 8
#define UAE_FILTER_MODE_16 16
#define UAE_FILTER_MODE_16_16 16
#define UAE_FILTER_MODE_16_32 (16 | 8)
#define UAE_FILTER_MODE_32 32
#define UAE_FILTER_MODE_32_32 32
#define UAE_FILTER_MODE_32_16 (32 | 8)
struct uae_filter
{
int type;
char *name, *cfgname;
int x[5];
};
extern struct uae_filter uaefilters[];
extern struct uae_filter *usedfilter;
#endif