-
Notifications
You must be signed in to change notification settings - Fork 74
/
ULZWCompress.p
38 lines (29 loc) · 952 Bytes
/
ULZWCompress.p
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
31
32
33
34
35
36
37
38
{Photoshop version 1.0.1, file: ULZWCompress.p
Computer History Museum, www.computerhistory.org
This material is (C)Copyright 1990 Adobe Systems Inc.
It may not be distributed to third parties.
It is licensed for non-commercial use according to
www.computerhistory.org/softwarelicense/photoshop/ }
UNIT ULZWCompress;
INTERFACE
USES
{$LOAD MacIntf.LOAD}
MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf,
{$LOAD UMacApp.LOAD}
UObject, UList, UMacApp,
{$LOAD UPhotoshop.LOAD}
PaletteMgr, UConstants, UVMemory, UPhotoshop;
VAR
lzwWordSize: INTEGER;
PROCEDURE LZWCompress (codeSize: INTEGER;
FUNCTION GetData (VAR pixel: INTEGER): BOOLEAN;
PROCEDURE PutCodeWord (code: INTEGER);
tiff: BOOLEAN);
PROCEDURE LZWExpand (codeSize: INTEGER;
errorCode: INTEGER;
FUNCTION GetCodeWord: INTEGER;
PROCEDURE PutData (pixel: INTEGER);
tiff: BOOLEAN);
IMPLEMENTATION
{$I ULZWCompress.inc1.p}
END.