-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathUFilters.a.inc
172 lines (144 loc) · 4.04 KB
/
UFilters.a.inc
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{Photoshop version 1.0.1, file: UFilters.a.inc
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/ }
PROCEDURE UpdateTotals (buffPtr: Ptr;
dataPtr: Ptr;
count: INTEGER;
radius: INTEGER;
add: BOOLEAN); EXTERNAL;
PROCEDURE DoBoxFilter (buffPtr: Ptr;
dataPtr: Ptr;
radius: INTEGER;
count: INTEGER); EXTERNAL;
PROCEDURE DoWeightedFilter (srcPtr: Ptr;
dstPtr: Ptr;
step: INTEGER;
count: INTEGER;
radius: INTEGER;
weights: Ptr); EXTERNAL;
PROCEDURE SobelLine (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER;
atStart: BOOLEAN;
atEnd: BOOLEAN); EXTERNAL;
PROCEDURE MinOrMaxRow (srcPtr: Ptr;
dstPtr: Ptr;
count: INTEGER;
maxFlag: BOOLEAN); EXTERNAL;
PROCEDURE MinOrMaxRows (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER;
maxFlag: BOOLEAN); EXTERNAL;
PROCEDURE ConvolveRow (inPtr: Ptr;
outPtr: Ptr;
numRows: INTEGER;
numCols: INTEGER;
rowBytes: INTEGER;
row: INTEGER;
col1: INTEGER;
col2: INTEGER;
kernel: UNIV Ptr); EXTERNAL;
PROCEDURE BlurLine (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE BlurMoreLine (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE SharpenLine (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE SharpenMoreLine (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoHighPassLine (srcPtr: Ptr;
dstPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoUnsharpMaskLine (srcPtr: Ptr;
dstPtr: Ptr;
amount: INTEGER;
count: INTEGER); EXTERNAL;
PROCEDURE DoMedianFilter (srcPtr: Ptr;
dstPtr: Ptr;
rowBytes: INTEGER;
radius: INTEGER;
count: INTEGER;
rows: INTEGER;
col1: INTEGER;
col2: INTEGER); EXTERNAL;
PROCEDURE DoFacet1 (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoFacet2 (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoFacet3 (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoFacet4 (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoDiffuseDarken (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoDiffuseLighten (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoTraceContour (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER;
level: INTEGER;
upper: BOOLEAN); EXTERNAL;
PROCEDURE MakeDiffuseNoise (dstPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE MakeUniformNoise (dstPtr: Ptr;
amount: INTEGER;
count: INTEGER); EXTERNAL;
PROCEDURE MakeGaussianNoise (dstPtr: Ptr;
amount: INTEGER;
count: INTEGER); EXTERNAL;
PROCEDURE DoAddNoise (srcPtr: Ptr;
dstPtr: Ptr;
noisePtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE DoMosaicRow (dataPtr: Ptr;
cellSize: INTEGER;
count: INTEGER); EXTERNAL;
PROCEDURE SetJustInside (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;
PROCEDURE SetJustOutside (prevPtr: Ptr;
thisPtr: Ptr;
nextPtr: Ptr;
destPtr: Ptr;
count: INTEGER); EXTERNAL;