ImagerPDPrivate.mesa
Copyright Ó 1983, 1984, 1985, 1986, 1987 by Xerox Corporation. All rights reserved.
Michael Plass, February 24, 1987 10:00:57 pm PST
Doug Wyatt, April 15, 1985 1:59:11 pm PST
Eric Nickell, February 18, 1986 6:28:25 pm PST
Stone, February 4, 1987 4:24:56 pm PST
Last edited by: Mik Lamming - May 4, 1987 1:05:26 pm PDT
Maureen Stone, May 7, 1987 3:56:05 pm PDT
DIRECTORY
Imager USING [Context],
ImagerPixel USING [PixelBuffer, PixelMap],
ImagerPD USING [CorrectionProc, Tile, Toner, UCR],
ImagerColor USING [Color],
ImagerDevice USING [AllowedMasks],
ImagerTransformation USING [Transformation],
PDFileFormat USING [Toner],
PDFileWriter USING [PDState],
RefTab USING [Ref];
ImagerPDPrivate: CEDAR DEFINITIONS
PD: TYPE ~ REF PDRep;
PDRep:
PUBLIC
TYPE ~
RECORD [
context: Imager.Context,
toners: LIST OF ImagerPD.Toner,
deviceData: DeviceData
];
ColorKind:
TYPE ~ {nil, constant, sampled, sampledBlack, tile};
nil: color uninitialized
constant: all color information required has been passed to PDFileWriter (i.e., in the load)
sampled: color that requires halftoning
sampledBlack: sampled black that could not be turned into constant or tile
tile: a tile color that would not fit into the load
DeviceData: TYPE ~ REF DeviceDataRep;
DeviceDataRep:
TYPE ~
RECORD [
deviceType: ATOM, --for the color names; same as the command line deviceType
writer: PDFileWriter.PDState,
sSize, fSize: CARDINAL,
feed, strip, imageStarted, priorityImportant: BOOL,
tonerSet: PACKED ARRAY PDFileFormat.Toner OF BOOL,
tonerUniverseSet: PACKED ARRAY PDFileFormat.Toner OF BOOL,
toner: PDFileFormat.Toner,
ucr: ImagerPD.UCR,
maskTab: RefTab.Ref,
colorKind: ColorKind,
tileTable: TileTable,
colorTile: ImagerPD.Tile, -- used iff colorKind=tile
colorClear: BOOL, -- used iff colorKind=sampledBlack OR colorKind=tile
sampledSource: ImagerPixel.PixelMap, -- used iff colorKind=sampled OR colorKind=sampledBlack
paToDevice: ImagerTransformation.Transformation, -- mutable; used iff colorKind=sampled OR colorKind=sampledBlack
halftoneBrick: ARRAY PDFileFormat.Toner OF REF ImagerPD.Tile,
correctionProc: ImagerPD.CorrectionProc,
pixelsRGB, pixelsCMYK: ImagerPixel.PixelBuffer,
colorCorrectionData: REF,
interpolate: BOOL
];
TileTable: TYPE ~ REF TileTableRep;
TileTableRep:
TYPE ~
RECORD [
SEQUENCE mod: NAT OF LIST OF TileEntry
];
TileEntry:
TYPE ~
RECORD [
loadIndex: LONG CARDINAL,
hash: CARDINAL,
tile: ImagerPD.Tile
];
SetColor: PROC [context: Imager.Context, color: ImagerColor.Color, viewToDevice: ImagerTransformation.Transformation] RETURNS [ImagerDevice.AllowedMasks];
Private communication between ImagerPDImpl and ImagerPDColorImpl
END.