forked from amix/photoshop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
UInitFormats.p
123 lines (91 loc) · 2.83 KB
/
UInitFormats.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{Photoshop version 1.0.1, file: UInitFormats.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 UInitFormats;
INTERFACE
USES
{$LOAD MacIntf.LOAD}
MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf,
{$LOAD UMacApp.LOAD}
UObject, UList, UMacApp,
{$LOAD UPhotoshop.LOAD}
PaletteMgr, UConstants, UVMemory, UPhotoshop,
{$LOAD}
UDialog, URootFormat, UInternal, UPICTFile, UPICTResource,
URawFormat, UThunderScan, UTIFFormat, UGIFFormat, UMacPaint,
UPixelPaint, UIFFFormat, UPixar, UEPSFormat, UScitexFormat, UTarga;
PROCEDURE InitFormats;
IMPLEMENTATION
{$S AInit}
PROCEDURE InitFormats;
VAR
code: INTEGER;
anInternalFormat : TInternalFormat;
aPICTFileFormat : TPICTFileFormat;
aPICTResourceFormat: TPICTResourceFormat;
aRawFormat : TRawFormat;
aThunderScanFormat : TThunderScanFormat;
aTIFFormat : TTIFFormat;
aGIFFormat : TGIFFormat;
aMacPaintFormat : TMacPaintFormat;
aPixelPaintFormat : TPixelPaintFormat;
anIFFFormat : TIFFFormat;
aPixarFormat : TPixarFormat;
anEPSFormat : TEPSFormat;
aScitexFormat : TScitexFormat;
aTargaFormat : TTargaFormat;
BEGIN
NEW (anInternalFormat);
FailNil (anInternalFormat);
NEW (aPICTFileFormat);
FailNil (aPICTFileFormat);
NEW (aPICTResourceFormat);
FailNil (aPICTResourceFormat);
NEW (aRawFormat);
FailNil (aRawFormat);
NEW (aThunderScanFormat);
FailNil (aThunderScanFormat);
NEW (aTIFFormat);
FailNil (aTIFFormat);
NEW (aGIFFormat);
FailNil (aGIFFormat);
NEW (aMacPaintFormat);
FailNil (aMacPaintFormat);
NEW (aPixelPaintFormat);
FailNil (aPixelPaintFormat);
NEW (anIFFFormat);
FailNil (anIFFFormat);
NEW (aPixarFormat);
FailNil (aPixarFormat);
NEW (anEPSFormat);
FailNil (anEPSFormat);
NEW (aTargaFormat);
FailNil (aTargaFormat);
gFormats [kFmtCodeInternal] := anInternalFormat;
gFormats [kFmtCodeIFF] := anIFFFormat;
gFormats [kFmtCodeGIF] := aGIFFormat;
gFormats [kFmtCodeEPS] := anEPSFormat;
gFormats [kFmtCodeMacPaint] := aMacPaintFormat;
gFormats [kFmtCodePICTFile] := aPICTFileFormat;
gFormats [kFmtCodePICTResource] := aPICTResourceFormat;
gFormats [kFmtCodePixar] := aPixarFormat;
gFormats [kFmtCodePixelPaint] := aPixelPaintFormat;
gFormats [kFmtCodeRaw] := aRawFormat;
gFormats [kFmtCodeTarga] := aTargaFormat;
gFormats [kFmtCodeThunderScan] := aThunderScanFormat;
gFormats [kFmtCodeTIFF] := aTIFFormat;
{$IFC NOT qBarneyscan}
NEW (aScitexFormat);
FailNil (aScitexFormat);
gFormats [kFmtCodeScitex] := aScitexFormat;
{$ENDC}
FOR code := 0 TO kLastFmtCode DO
gFormats [code] . IImageFormat;
NEW (gClipFormat);
FailNil (gClipFormat);
gClipFormat.IImageFormat
END;
END.