File:  [RetroPC.NET] / np2 / common / resize.h
Revision 1.2: download - view: text, annotated - select for diffs
Mon Feb 7 23:46:08 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
use UINT8 (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, 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>