blob: e73dfdb4867843f738114fca80e3e97f844278c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Scaler: module
{
PATH: con "/dis/lib/print/scaler.dis";
init: fn(debug: int, WidthInPixels, ScaleFactorMultiplier, ScaleFactorDivisor: int): ref RESSYNSTRUCT;
rasterin: fn(rs: ref RESSYNSTRUCT, inraster: array of int);
rasterout: fn(rs: ref RESSYNSTRUCT ): array of int;
RESSYNSTRUCT: adt {
Width: int;
ScaleFactorMultiplier: int;
ScaleFactorDivisor: int;
ScaleFactor: real;
iOutputWidth: int;
scaling: int;
ReplicateOnly: int;
Repeat: int;
RastersinBuffer: int;
Remainder: int;
Buffer: array of array of int;
oBuffer: array of array of int;
nready: int;
ndelivered: int;
};
};
NUMBER_RASTERS: con 3; # no of rasters to buffer
|