[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

#ifndef DEVICES_PRTGFX_H
#define DEVICES_PRTGFX_H
/*
**	$VER: prtgfx.h 44.1 (19.10.1999)
**	Includes Release 44.1
**
**	graphics printer driver structure definitions
**
**	(C) Copyright 1987-1999 Amiga, Inc.
**	    All Rights Reserved
*/

#ifndef GRAPHICS_RASTPORT_H
#include <graphics/rastport.h>
#endif

/****************************************************************************/

#define	PCMYELLOW	0		/* byte index for yellow */
#define	PCMMAGENTA	1		/* byte index for magenta */
#define	PCMCYAN		2		/* byte index for cyan */
#define	PCMBLACK	3		/* byte index for black */
#define PCMBLUE		PCMYELLOW	/* byte index for blue */
#define PCMGREEN	PCMMAGENTA	/* byte index for green */
#define PCMRED		PCMCYAN		/* byte index for red */
#define PCMWHITE	PCMBLACK	/* byte index for white */

/****************************************************************************/

union colorEntry
{
	ULONG	colorLong;	/* quick access to all of YMCB */
	UBYTE	colorByte[4];	/* 1 entry for each of YMCB */
	BYTE	colorSByte[4];	/* ditto (except signed) */
};

/****************************************************************************/

struct PrtInfo /* printer info */
{
	LONG			(*pi_render)();		/* PRIVATE - DO NOT USE! */
	struct RastPort *	pi_rp;			/* PRIVATE - DO NOT USE! */
	struct RastPort *	pi_temprp;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_RowBuf;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_HamBuf;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_ColorMap;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_ColorInt;		/* color intensities for entire row */
	union colorEntry *	pi_HamInt;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_Dest1Int;		/* PRIVATE - DO NOT USE! */
	union colorEntry *	pi_Dest2Int;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_ScaleX;		/* array of scale values for X */
	UWORD *			pi_ScaleXAlt;		/* PRIVATE - DO NOT USE! */
	UBYTE *			pi_dmatrix;		/* pointer to dither matrix */
	UWORD *			pi_TopBuf;		/* PRIVATE - DO NOT USE! */
	UWORD *			pi_BotBuf;		/* PRIVATE - DO NOT USE! */

	UWORD			pi_RowBufSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_HamBufSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ColorMapSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_ColorIntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_HamIntSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_Dest1IntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_Dest2IntSize;	/* PRIVATE - DO NOT USE! */
	UWORD			pi_ScaleXSize;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ScaleXAltSize;	/* PRIVATE - DO NOT USE! */

	UWORD			pi_PrefsFlags;		/* PRIVATE - DO NOT USE! */
	ULONG			pi_special;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_xstart;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ystart;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_width;		/* source width (in pixels) */
	UWORD			pi_height;		/* source height (in pixels) */
	ULONG			pi_pc;			/* PRIVATE - DO NOT USE! */
	ULONG			pi_pr;			/* PRIVATE - DO NOT USE! */
	UWORD			pi_ymult;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ymod;		/* PRIVATE - DO NOT USE! */
	WORD			pi_ety;			/* PRIVATE - DO NOT USE! */
	UWORD			pi_xpos;		/* offset to start printing picture */
	UWORD			pi_threshold;		/* threshold value (from prefs) */
	UWORD			pi_tempwidth;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_flags;		/* PRIVATE - DO NOT USE! */

	/* V44 additions */
	UWORD *			pi_ReduceBuf;		/* PRIVATE - DO NOT USE! */
	UWORD			pi_ReduceBufSize;	/* PRIVATE - DO NOT USE! */
	struct Hook *		pi_SourceHook;		/* PRIVATE - DO NOT USE! */
	ULONG *			pi_InvertHookBuf;	/* RESERVED - DO NOT USE! */
};

#endif	/* DEVICES_PRTGFX_H */