1 | /* $Xorg: XIE.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
|
---|
2 | /******************************************************************************
|
---|
3 |
|
---|
4 |
|
---|
5 | Copyright 1993, 1994, 1998 The Open Group
|
---|
6 |
|
---|
7 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
8 | documentation for any purpose is hereby granted without fee, provided that
|
---|
9 | the above copyright notice appear in all copies and that both that
|
---|
10 | copyright notice and this permission notice appear in supporting
|
---|
11 | documentation.
|
---|
12 |
|
---|
13 | The above copyright notice and this permission notice shall be included in
|
---|
14 | all copies or substantial portions of the Software.
|
---|
15 |
|
---|
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
19 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
20 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
22 |
|
---|
23 | Except as contained in this notice, the name of The Open Group shall not be
|
---|
24 | used in advertising or otherwise to promote the sale, use or other dealings
|
---|
25 | in this Software without prior written authorization from The Open Group.
|
---|
26 |
|
---|
27 |
|
---|
28 | NOTICE
|
---|
29 |
|
---|
30 | This software is being provided by AGE Logic, Inc. under the
|
---|
31 | following license. By obtaining, using and/or copying this software,
|
---|
32 | you agree that you have read, understood, and will comply with these
|
---|
33 | terms and conditions:
|
---|
34 |
|
---|
35 | Permission to use, copy, modify, distribute and sell this
|
---|
36 | software and its documentation for any purpose and without
|
---|
37 | fee or royalty and to grant others any or all rights granted
|
---|
38 | herein is hereby granted, provided that you agree to comply
|
---|
39 | with the following copyright notice and statements, including
|
---|
40 | the disclaimer, and that the same appears on all copies and
|
---|
41 | derivative works of the software and documentation you make.
|
---|
42 |
|
---|
43 | "Copyright 1993, 1994 by AGE Logic, Inc."
|
---|
44 |
|
---|
45 | THIS SOFTWARE IS PROVIDED "AS IS". AGE LOGIC MAKES NO
|
---|
46 | REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. By way of
|
---|
47 | example, but not limitation, AGE LOGIC MAKE NO
|
---|
48 | REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS
|
---|
49 | FOR ANY PARTICULAR PURPOSE OR THAT THE SOFTWARE DOES NOT
|
---|
50 | INFRINGE THIRD-PARTY PROPRIETARY RIGHTS. AGE LOGIC
|
---|
51 | SHALL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE. IN NO
|
---|
52 | EVENT SHALL EITHER PARTY BE LIABLE FOR ANY INDIRECT,
|
---|
53 | INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS
|
---|
54 | OF PROFITS, REVENUE, DATA OR USE, INCURRED BY EITHER PARTY OR
|
---|
55 | ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT OR
|
---|
56 | BASED ON A WARRANTY, EVEN IF AGE LOGIC LICENSEES
|
---|
57 | HEREUNDER HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
---|
58 | DAMAGES.
|
---|
59 |
|
---|
60 | The name of AGE Logic, Inc. may not be used in
|
---|
61 | advertising or publicity pertaining to this software without
|
---|
62 | specific, written prior permission from AGE Logic.
|
---|
63 |
|
---|
64 | Title to this software shall at all times remain with AGE
|
---|
65 | Logic, Inc.
|
---|
66 |
|
---|
67 | ******************************************************************************/
|
---|
68 |
|
---|
69 | #ifndef _XIE_H_
|
---|
70 | #define _XIE_H_
|
---|
71 |
|
---|
72 |
|
---|
73 | /* Extension Name and version number */
|
---|
74 |
|
---|
75 | #define xieExtName "XIE"
|
---|
76 |
|
---|
77 | #define xieMajorVersion 5
|
---|
78 | #define xieMinorVersion 0
|
---|
79 | #define xieEarliestMinorVersion 0
|
---|
80 | #define xieLatestMinorVersion 0
|
---|
81 |
|
---|
82 |
|
---|
83 | /* ServiceClass */
|
---|
84 |
|
---|
85 | #ifdef XIE_DIS
|
---|
86 | #define XIE_FULL 0
|
---|
87 | #else
|
---|
88 | #define XIE_FULL 1
|
---|
89 | #endif
|
---|
90 |
|
---|
91 | #define xieValFull 1
|
---|
92 | #define xieValDIS 2
|
---|
93 |
|
---|
94 |
|
---|
95 | /* Limits */
|
---|
96 |
|
---|
97 | #define xieValMaxBands 3
|
---|
98 |
|
---|
99 |
|
---|
100 | /* Alignment */
|
---|
101 |
|
---|
102 | #define xieValAlignable 1
|
---|
103 | #define xieValArbitrary 2
|
---|
104 |
|
---|
105 |
|
---|
106 | /* ArithmeticOp */
|
---|
107 |
|
---|
108 | #define xieValAdd 1
|
---|
109 | #define xieValSub 2
|
---|
110 | #define xieValSubRev 3
|
---|
111 | #define xieValMul 4
|
---|
112 | #define xieValDiv 5
|
---|
113 | #define xieValDivRev 6
|
---|
114 | #define xieValMin 7
|
---|
115 | #define xieValMax 8
|
---|
116 | #define xieValGamma 9
|
---|
117 |
|
---|
118 |
|
---|
119 | /* ColorAllocTechnique */
|
---|
120 |
|
---|
121 | #define xieValColorAllocDefault 0
|
---|
122 | #define xieValColorAllocAll 2
|
---|
123 | #define xieValColorAllocMatch 4
|
---|
124 | #define xieValColorAllocRequantize 6
|
---|
125 |
|
---|
126 |
|
---|
127 | /* Colorspace conversions */
|
---|
128 |
|
---|
129 | #define xieValRGBToCIELab 2
|
---|
130 | #define xieValRGBToCIEXYZ 4
|
---|
131 | #define xieValRGBToYCbCr 6
|
---|
132 | #define xieValRGBToYCC 8
|
---|
133 |
|
---|
134 | #define xieValCIELabToRGB 2
|
---|
135 | #define xieValCIEXYZToRGB 4
|
---|
136 | #define xieValYCbCrToRGB 6
|
---|
137 | #define xieValYCCToRGB 8
|
---|
138 |
|
---|
139 |
|
---|
140 | /* CompareOp */
|
---|
141 |
|
---|
142 | #define xieValLT 1
|
---|
143 | #define xieValLE 2
|
---|
144 | #define xieValEQ 3
|
---|
145 | #define xieValNE 4
|
---|
146 | #define xieValGT 5
|
---|
147 | #define xieValGE 6
|
---|
148 |
|
---|
149 |
|
---|
150 | /* ConstrainTechnique */
|
---|
151 |
|
---|
152 | #define xieValConstrainClipScale 2
|
---|
153 | #define xieValConstrainHardClip 4
|
---|
154 |
|
---|
155 |
|
---|
156 | /* ConvolveTechnique */
|
---|
157 |
|
---|
158 | #define xieValConvolveDefault 0
|
---|
159 | #define xieValConvolveConstant 2
|
---|
160 | #define xieValConvolveReplicate 4
|
---|
161 |
|
---|
162 |
|
---|
163 | /* DataClass */
|
---|
164 |
|
---|
165 | #define xieValSingleBand 1
|
---|
166 | #define xieValTripleBand 2
|
---|
167 |
|
---|
168 | /* DataType */
|
---|
169 |
|
---|
170 | #define xieValConstrained 1
|
---|
171 | #define xieValUnconstrained 2
|
---|
172 |
|
---|
173 |
|
---|
174 | /* DecodeTechnique */
|
---|
175 |
|
---|
176 | #define xieValDecodeUncompressedSingle 2 /* bitonal & grayscale */
|
---|
177 | #define xieValDecodeUncompressedTriple 3 /* color */
|
---|
178 | #define xieValDecodeG31D 4 /* FAX */
|
---|
179 | #define xieValDecodeG32D 6 /* FAX */
|
---|
180 | #define xieValDecodeG42D 8 /* FAX */
|
---|
181 | #define xieValDecodeJPEGBaseline 10 /* grayscale & color */
|
---|
182 | #define xieValDecodeJPEGLossless 12 /* grayscale & color */
|
---|
183 | #define xieValDecodeTIFF2 14 /* TIFF modified G31D */
|
---|
184 | #define xieValDecodeTIFFPackBits 16 /* TIFF APPLE FORMAT */
|
---|
185 |
|
---|
186 |
|
---|
187 | /* DitherTechnique */
|
---|
188 |
|
---|
189 | #define xieValDitherDefault 0
|
---|
190 | #define xieValDitherErrorDiffusion 2
|
---|
191 | #define xieValDitherOrdered 4
|
---|
192 |
|
---|
193 |
|
---|
194 | /* EncodeTechnique */
|
---|
195 |
|
---|
196 | #define xieValEncodeServerChoice 1 /* (to photomaps) */
|
---|
197 | #define xieValEncodeUncompressedSingle 2 /* bitonal & grayscale */
|
---|
198 | #define xieValEncodeUncompressedTriple 3 /* color */
|
---|
199 | #define xieValEncodeG31D 4 /* FAX */
|
---|
200 | #define xieValEncodeG32D 6 /* FAX */
|
---|
201 | #define xieValEncodeG42D 8 /* FAX */
|
---|
202 | #define xieValEncodeJPEGBaseline 10 /* grayscale & color */
|
---|
203 | #define xieValEncodeJPEGLossless 12 /* grayscale & color */
|
---|
204 | #define xieValEncodeTIFF2 14 /* TIFF modified G31D */
|
---|
205 | #define xieValEncodeTIFFPackBits 16 /* TIFF APPLE FORMAT */
|
---|
206 |
|
---|
207 | /* ServerChoice preference hints */
|
---|
208 |
|
---|
209 | #define xieValPreferDefault 0
|
---|
210 | #define xieValPreferSpace 1
|
---|
211 | #define xieValPreferTime 2
|
---|
212 |
|
---|
213 | /* JPEG-Lossless predictor */
|
---|
214 |
|
---|
215 | #define xieValPredictorNone 0
|
---|
216 | #define xieValPredictorA 1
|
---|
217 | #define xieValPredictorB 2
|
---|
218 | #define xieValPredictorC 3
|
---|
219 | #define xieValPredictorABC 4
|
---|
220 | #define xieValPredictorABC2 5
|
---|
221 | #define xieValPredictorBAC2 6
|
---|
222 | #define xieValPredictorAB2 7
|
---|
223 |
|
---|
224 |
|
---|
225 | /* ExportNotify */
|
---|
226 |
|
---|
227 | #define xieValDisable 1
|
---|
228 | #define xieValFirstData 2
|
---|
229 | #define xieValNewData 3
|
---|
230 |
|
---|
231 |
|
---|
232 | /* ExportState */
|
---|
233 |
|
---|
234 | #define xieValExportDone 1
|
---|
235 | #define xieValExportMore 2
|
---|
236 | #define xieValExportEmpty 3
|
---|
237 | #define xieValExportError 4
|
---|
238 |
|
---|
239 |
|
---|
240 | /* GamutTechnique */
|
---|
241 |
|
---|
242 | #define xieValGamutDefault 0
|
---|
243 | #define xieValGamutNone 1
|
---|
244 | #define xieValGamutClipRGB 2
|
---|
245 |
|
---|
246 |
|
---|
247 | /* GeometryTechnique */
|
---|
248 |
|
---|
249 | #define xieValGeomDefault 0
|
---|
250 | #define xieValGeomAntialias 2
|
---|
251 | #define xieValGeomAntialiasByArea 4
|
---|
252 | #define xieValGeomAntialiasByLPF 6
|
---|
253 | #define xieValGeomBilinearInterp 8
|
---|
254 | #define xieValGeomGaussian 10
|
---|
255 | #define xieValGeomNearestNeighbor 12
|
---|
256 |
|
---|
257 |
|
---|
258 | /* NearestNeighbor modify */
|
---|
259 |
|
---|
260 | #define xieValFavorDown 1
|
---|
261 | #define xieValFavorUp 2
|
---|
262 | #define xieValRoundNW 3
|
---|
263 | #define xieValRoundNE 4
|
---|
264 | #define xieValRoundSE 5
|
---|
265 | #define xieValRoundSW 6
|
---|
266 |
|
---|
267 |
|
---|
268 | /* HistogramShape */
|
---|
269 |
|
---|
270 | #define xieValHistogramFlat 2
|
---|
271 | #define xieValHistogramGaussian 4
|
---|
272 | #define xieValHistogramHyperbolic 6
|
---|
273 |
|
---|
274 |
|
---|
275 | /* Interleave */
|
---|
276 |
|
---|
277 | #define xieValBandByPixel 1
|
---|
278 | #define xieValBandByPlane 2
|
---|
279 |
|
---|
280 |
|
---|
281 | /* MathOp */
|
---|
282 |
|
---|
283 | #define xieValExp 1
|
---|
284 | #define xieValLn 2
|
---|
285 | #define xieValLog2 3
|
---|
286 | #define xieValLog10 4
|
---|
287 | #define xieValSquare 5
|
---|
288 | #define xieValSqrt 6
|
---|
289 |
|
---|
290 |
|
---|
291 | /* Orientation */
|
---|
292 |
|
---|
293 | #define xieValLSFirst 1
|
---|
294 | #define xieValMSFirst 2
|
---|
295 |
|
---|
296 |
|
---|
297 | /* PhotofloOutcome */
|
---|
298 |
|
---|
299 | #define xieValFloSuccess 1
|
---|
300 | #define xieValFloAbort 2
|
---|
301 | #define xieValFloError 3
|
---|
302 |
|
---|
303 |
|
---|
304 | /* PhotofloState */
|
---|
305 |
|
---|
306 | #define xieValInactive 1
|
---|
307 | #define xieValActive 2
|
---|
308 | #define xieValNonexistent 3
|
---|
309 |
|
---|
310 |
|
---|
311 | /* TechniqueGroup */
|
---|
312 |
|
---|
313 | #define xieValDefault 0
|
---|
314 | #define xieValAll 1
|
---|
315 | #define xieValColorAlloc 2
|
---|
316 | #define xieValConstrain 4
|
---|
317 | #define xieValConvertFromRGB 6
|
---|
318 | #define xieValConvertToRGB 8
|
---|
319 | #define xieValConvolve 10
|
---|
320 | #define xieValDecode 12
|
---|
321 | #define xieValDither 14
|
---|
322 | #define xieValEncode 16
|
---|
323 | #define xieValGamut 18
|
---|
324 | #define xieValGeometry 20
|
---|
325 | #define xieValHistogram 22
|
---|
326 | #define xieValWhiteAdjust 24
|
---|
327 |
|
---|
328 | #define xieValMaxTechGroup 24
|
---|
329 |
|
---|
330 |
|
---|
331 | /* WhiteAdjustTechnique */
|
---|
332 |
|
---|
333 | #define xieValWhiteAdjustDefault 0
|
---|
334 | #define xieValWhiteAdjustNone 1
|
---|
335 | #define xieValWhiteAdjustCIELabShift 2
|
---|
336 |
|
---|
337 |
|
---|
338 | /* Photoflo elements */
|
---|
339 |
|
---|
340 | #define xieElemImportClientLUT 1
|
---|
341 | #define xieElemImportClientPhoto 2
|
---|
342 | #define xieElemImportClientROI 3
|
---|
343 | #define xieElemImportDrawable 4
|
---|
344 | #define xieElemImportDrawablePlane 5
|
---|
345 | #define xieElemImportLUT 6
|
---|
346 | #define xieElemImportPhotomap 7
|
---|
347 | #define xieElemImportROI 8
|
---|
348 | #define xieElemArithmetic 9
|
---|
349 | #define xieElemBandCombine 10
|
---|
350 | #define xieElemBandExtract 11
|
---|
351 | #define xieElemBandSelect 12
|
---|
352 | #define xieElemBlend 13
|
---|
353 | #define xieElemCompare 14
|
---|
354 | #define xieElemConstrain 15
|
---|
355 | #define xieElemConvertFromIndex 16
|
---|
356 | #define xieElemConvertFromRGB 17
|
---|
357 | #define xieElemConvertToIndex 18
|
---|
358 | #define xieElemConvertToRGB 19
|
---|
359 | #define xieElemConvolve 20
|
---|
360 | #define xieElemDither 21
|
---|
361 | #define xieElemGeometry 22
|
---|
362 | #define xieElemLogical 23
|
---|
363 | #define xieElemMatchHistogram 24
|
---|
364 | #define xieElemMath 25
|
---|
365 | #define xieElemPasteUp 26
|
---|
366 | #define xieElemPoint 27
|
---|
367 | #define xieElemUnconstrain 28
|
---|
368 | #define xieElemExportClientHistogram 29
|
---|
369 | #define xieElemExportClientLUT 30
|
---|
370 | #define xieElemExportClientPhoto 31
|
---|
371 | #define xieElemExportClientROI 32
|
---|
372 | #define xieElemExportDrawable 33
|
---|
373 | #define xieElemExportDrawablePlane 34
|
---|
374 | #define xieElemExportLUT 35
|
---|
375 | #define xieElemExportPhotomap 36
|
---|
376 | #define xieElemExportROI 37
|
---|
377 |
|
---|
378 | #define xieMaxElem 37
|
---|
379 |
|
---|
380 |
|
---|
381 | /* Event Codes */
|
---|
382 |
|
---|
383 | #define xieEvnNoColorAlloc 0
|
---|
384 | #define xieEvnNoDecodeNotify 1
|
---|
385 | #define xieEvnNoExportAvailable 2
|
---|
386 | #define xieEvnNoImportObscured 3
|
---|
387 | #define xieEvnNoPhotofloDone 4
|
---|
388 |
|
---|
389 | #define xieNumEvents 5
|
---|
390 |
|
---|
391 |
|
---|
392 | /* Error Codes */
|
---|
393 |
|
---|
394 | #define xieErrNoColorList 0
|
---|
395 | #define xieErrNoLUT 1
|
---|
396 | #define xieErrNoPhotoflo 2
|
---|
397 | #define xieErrNoPhotomap 3
|
---|
398 | #define xieErrNoPhotospace 4
|
---|
399 | #define xieErrNoROI 5
|
---|
400 | #define xieErrNoFlo 6
|
---|
401 |
|
---|
402 | #define xieNumErrors 7
|
---|
403 |
|
---|
404 |
|
---|
405 | /* Flo Error Codes */
|
---|
406 |
|
---|
407 | #define xieErrNoFloAccess 1
|
---|
408 | #define xieErrNoFloAlloc 2
|
---|
409 | #define xieErrNoFloColormap 3
|
---|
410 | #define xieErrNoFloColorList 4
|
---|
411 | #define xieErrNoFloDomain 5
|
---|
412 | #define xieErrNoFloDrawable 6
|
---|
413 | #define xieErrNoFloElement 7
|
---|
414 | #define xieErrNoFloGC 8
|
---|
415 | #define xieErrNoFloID 9
|
---|
416 | #define xieErrNoFloLength 10
|
---|
417 | #define xieErrNoFloLUT 11
|
---|
418 | #define xieErrNoFloMatch 12
|
---|
419 | #define xieErrNoFloOperator 13
|
---|
420 | #define xieErrNoFloPhotomap 14
|
---|
421 | #define xieErrNoFloROI 15
|
---|
422 | #define xieErrNoFloSource 16
|
---|
423 | #define xieErrNoFloTechnique 17
|
---|
424 | #define xieErrNoFloValue 18
|
---|
425 | #define xieErrNoFloImplementation 19
|
---|
426 |
|
---|
427 | #define xieNumFloErrors 19
|
---|
428 |
|
---|
429 | #endif /* _XIE_H_ */
|
---|