File:  [RetroPC.NET] / xmil / common / resize.h
Revision 1.1: download - view: text, annotated - select for diffs
Thu Aug 19 18:56:43 2004 JST (21 years, 2 months ago) by yui
Branches: MAIN
CVS tags: HEAD
add...


#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, UINT8 *dst, int dalign,
												const UINT8 *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>