ImagerDeviceDitheredPrivate.mesa
Copyright © 1985, 1986 by Xerox Corporation. All rights reserved.
Michael Plass, June 25, 1985 2:03:24 pm PDT
Doug Wyatt, March 19, 1986 11:57:18 am PST
Private definitions for ImagerDeviceDitheredImpl.
DIRECTORY
ImagerColor USING [SampledColor],
ImagerDitheredDevice USING [MapEntries],
ImagerDither USING [PackedColorDesc, Table],
ImagerSample USING [SampleMap, SampleBuffer],
ImagerTransformation USING [Transformation],
PrincOps USING [BitBltFlags],
Terminal USING [Virtual];
ImagerDeviceDitheredPrivate: CEDAR DEFINITIONS
~ BEGIN
Case: TYPE ~ {nil, constant, stipple, rgb, sampled};
StippleArray: TYPE ~ PACKED ARRAY [0..16) OF WORD;
Data: TYPE ~ REF DataRep;
DataRep: TYPE ~ RECORD[
terminal: Terminal.Virtual ← NIL,
frame: ImagerSample.SampleMap,
mapEntries: ImagerDitheredDevice.MapEntries ← NIL,
table: ImagerDither.Table ← NIL,
case: Case ← nil, -- what type of color
zerosAreClear: BOOLFALSE, -- special case for sampled black clear.
flags: PrincOps.BitBltFlags ← [], -- bitblt flags
grayWord: WORD ← 0, -- bitblt gray word
packedRGB: WORD ← 0, -- for case = rgb
stipple: StippleArray ← ALL[0], -- stipple pattern
fTileOrg: NAT ← 0,
sTileOrg: NAT ← 0,
sampledColor: ImagerColor.SampledColor ← NIL, -- sampled color
sampledColorData: SampledColorData ← NIL, -- cached data associated with sampledColor
paToDevice: ImagerTransformation.Transformation ← NIL, -- transformation from pa coords to display
sampBuffer: ImagerSample.SampleBuffer ←, -- scan line buffer for samples
lineBuffer: ImagerSample.SampleBuffer ←, -- for ops that cannot go directly to frame
extras: REFNIL
];
SampledColorData: TYPE ~ REF SampledColorDataRep;
SampledColorDataRep: TYPE ~ RECORD [
packing: ImagerDither.PackedColorDesc,
source: ImagerSample.SampleMap -- 16 bits per pixel, packed RGB, with space for tile index.
];
END.