// PDConvert.d -- Definitions for PD scan-conversion

get "PDFile.d"

manifest [
//BitBlt function and source definitions
	fReplace=0	//d←s
	fPaint=1	//d←d or s
	fInvert=2	//d←d xor s
	fErase=3	//d←d and -s
	sBM=0		//s←bitmap
	sNotBM=1	//s←-bitmap
	sBMandGray=2	//s←bitmap and gray
	sGray=3		//s←gray
]

// Leftover types

manifest [
// Colors
	loColorInk=0
	loColorClear=1
	loColorTile=2
// Masks
	loRectangle=3
	loTrapezoid=4
	loRunGroup=5
	loSamples=6
	loColorSamples=7
// Control
	loPriority=8
	loEnd=9
		loMax=9
]

// Leftover structures for color

structure LOC:
[
	typ	word
]

structure LOCTile:
[
	typ	word
	transparent	word
	addr	word		//in load
]
	manifest loColorSize=size LOCTile/16

// Leftover structures for masks

structure LORectangle:
[
	typ	word
	@MaskRectangle
]

structure LOTrapezoid:
[
	typ	word
	@MaskTrapezoid
]

structure LORunGroup:
[
	typ	word
	@MaskRunGroup
	fOffset	word
	addr	word	//-1 means in PD file
]

structure LOSamples:
[
	typ	word
	@MaskSamples
	addr	word	//-1 means in PD file
]

// Leftover structures for control

structure LOPriority:
[
	typ	word
	priority	word
]