File:  [RetroPC.NET] / np2 / common / resize.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Nov 21 15:51:10 2003 JST (21 years, 11 months ago) by yui
Branches: MAIN
CVS tags: VER_0_80, VER_0_79, VER_0_78, VER_0_77, VER_0_76, VER_0_75, VER_0_74, VER_0_73, VER_0_72, HEAD
debuneko- (T.Yui)


#define RESIZE_AREAAVG
#define RESIZE_FASTCOPY

enum {
	RSZFN_8BPP		= 0,
	RSZFN_16BPP,
	RSZFN_24BPP,
	RSZFN_16BY24,
	RSZFN_24BY16,
	RSZFNMAX
};

struct _rszhdl;
typedef struct _rszhdl	_RSZHDL;
typedef struct _rszhdl	*RSZHDL;

typedef void (*RSZFN)(RSZHDL hdl, UINT type, BYTE *dst, int dalign,
												const BYTE *src, int salign);

struct _rszhdl {
	RSZFN	func;
	int		width;
	int		height;
};


#ifdef __cplusplus
extern "C" {
#endif

UINT resize_gettype(int dbpp, int sbpp);
RSZHDL resize(int xdst, int ydst, int xsrc, int ysrc);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>