<> <> <> <> <> <> <> <> 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 ~ BEGIN 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}; <> <> <> <> <> 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]; <> END.