1 /* $XConsortium: XIE.h,v 1.5 94/04/17 20:11:11 mor Exp $ */
2 /******************************************************************************
5 Copyright (c) 1993, 1994 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
31 This software is being provided by AGE Logic, Inc. under the
32 following license. By obtaining, using and/or copying this software,
33 you agree that you have read, understood, and will comply with these
36 Permission to use, copy, modify, distribute and sell this
37 software and its documentation for any purpose and without
38 fee or royalty and to grant others any or all rights granted
39 herein is hereby granted, provided that you agree to comply
40 with the following copyright notice and statements, including
41 the disclaimer, and that the same appears on all copies and
42 derivative works of the software and documentation you make.
44 "Copyright 1993, 1994 by AGE Logic, Inc."
46 THIS SOFTWARE IS PROVIDED "AS IS". AGE LOGIC MAKES NO
47 REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. By way of
48 example, but not limitation, AGE LOGIC MAKE NO
49 REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS
50 FOR ANY PARTICULAR PURPOSE OR THAT THE SOFTWARE DOES NOT
51 INFRINGE THIRD-PARTY PROPRIETARY RIGHTS. AGE LOGIC
52 SHALL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE. IN NO
53 EVENT SHALL EITHER PARTY BE LIABLE FOR ANY INDIRECT,
54 INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS
55 OF PROFITS, REVENUE, DATA OR USE, INCURRED BY EITHER PARTY OR
56 ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT OR
57 BASED ON A WARRANTY, EVEN IF AGE LOGIC LICENSEES
58 HEREUNDER HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
61 The name of AGE Logic, Inc. may not be used in
62 advertising or publicity pertaining to this software without
63 specific, written prior permission from AGE Logic.
65 Title to this software shall at all times remain with AGE
68 ******************************************************************************/
74 /* Extension Name and version number */
76 #define xieExtName "XIE"
78 #define xieMajorVersion 5
79 #define xieMinorVersion 0
80 #define xieEarliestMinorVersion 0
81 #define xieLatestMinorVersion 0
98 #define xieValMaxBands 3
103 #define xieValAlignable 1
104 #define xieValArbitrary 2
111 #define xieValSubRev 3
114 #define xieValDivRev 6
117 #define xieValGamma 9
120 /* ColorAllocTechnique */
122 #define xieValColorAllocDefault 0
123 #define xieValColorAllocAll 2
124 #define xieValColorAllocMatch 4
125 #define xieValColorAllocRequantize 6
128 /* Colorspace conversions */
130 #define xieValRGBToCIELab 2
131 #define xieValRGBToCIEXYZ 4
132 #define xieValRGBToYCbCr 6
133 #define xieValRGBToYCC 8
135 #define xieValCIELabToRGB 2
136 #define xieValCIEXYZToRGB 4
137 #define xieValYCbCrToRGB 6
138 #define xieValYCCToRGB 8
151 /* ConstrainTechnique */
153 #define xieValConstrainClipScale 2
154 #define xieValConstrainHardClip 4
157 /* ConvolveTechnique */
159 #define xieValConvolveDefault 0
160 #define xieValConvolveConstant 2
161 #define xieValConvolveReplicate 4
166 #define xieValSingleBand 1
167 #define xieValTripleBand 2
171 #define xieValConstrained 1
172 #define xieValUnconstrained 2
175 /* DecodeTechnique */
177 #define xieValDecodeUncompressedSingle 2 /* bitonal & grayscale */
178 #define xieValDecodeUncompressedTriple 3 /* color */
179 #define xieValDecodeG31D 4 /* FAX */
180 #define xieValDecodeG32D 6 /* FAX */
181 #define xieValDecodeG42D 8 /* FAX */
182 #define xieValDecodeJPEGBaseline 10 /* grayscale & color */
183 #define xieValDecodeJPEGLossless 12 /* grayscale & color */
184 #define xieValDecodeTIFF2 14 /* TIFF modified G31D */
185 #define xieValDecodeTIFFPackBits 16 /* TIFF APPLE FORMAT */
188 /* DitherTechnique */
190 #define xieValDitherDefault 0
191 #define xieValDitherErrorDiffusion 2
192 #define xieValDitherOrdered 4
195 /* EncodeTechnique */
197 #define xieValEncodeServerChoice 1 /* (to photomaps) */
198 #define xieValEncodeUncompressedSingle 2 /* bitonal & grayscale */
199 #define xieValEncodeUncompressedTriple 3 /* color */
200 #define xieValEncodeG31D 4 /* FAX */
201 #define xieValEncodeG32D 6 /* FAX */
202 #define xieValEncodeG42D 8 /* FAX */
203 #define xieValEncodeJPEGBaseline 10 /* grayscale & color */
204 #define xieValEncodeJPEGLossless 12 /* grayscale & color */
205 #define xieValEncodeTIFF2 14 /* TIFF modified G31D */
206 #define xieValEncodeTIFFPackBits 16 /* TIFF APPLE FORMAT */
208 /* ServerChoice preference hints */
210 #define xieValPreferDefault 0
211 #define xieValPreferSpace 1
212 #define xieValPreferTime 2
214 /* JPEG-Lossless predictor */
216 #define xieValPredictorNone 0
217 #define xieValPredictorA 1
218 #define xieValPredictorB 2
219 #define xieValPredictorC 3
220 #define xieValPredictorABC 4
221 #define xieValPredictorABC2 5
222 #define xieValPredictorBAC2 6
223 #define xieValPredictorAB2 7
228 #define xieValDisable 1
229 #define xieValFirstData 2
230 #define xieValNewData 3
235 #define xieValExportDone 1
236 #define xieValExportMore 2
237 #define xieValExportEmpty 3
238 #define xieValExportError 4
243 #define xieValGamutDefault 0
244 #define xieValGamutNone 1
245 #define xieValGamutClipRGB 2
248 /* GeometryTechnique */
250 #define xieValGeomDefault 0
251 #define xieValGeomAntialias 2
252 #define xieValGeomAntialiasByArea 4
253 #define xieValGeomAntialiasByLPF 6
254 #define xieValGeomBilinearInterp 8
255 #define xieValGeomGaussian 10
256 #define xieValGeomNearestNeighbor 12
259 /* NearestNeighbor modify */
261 #define xieValFavorDown 1
262 #define xieValFavorUp 2
263 #define xieValRoundNW 3
264 #define xieValRoundNE 4
265 #define xieValRoundSE 5
266 #define xieValRoundSW 6
271 #define xieValHistogramFlat 2
272 #define xieValHistogramGaussian 4
273 #define xieValHistogramHyperbolic 6
278 #define xieValBandByPixel 1
279 #define xieValBandByPlane 2
287 #define xieValLog10 4
288 #define xieValSquare 5
294 #define xieValLSFirst 1
295 #define xieValMSFirst 2
298 /* PhotofloOutcome */
300 #define xieValFloSuccess 1
301 #define xieValFloAbort 2
302 #define xieValFloError 3
307 #define xieValInactive 1
308 #define xieValActive 2
309 #define xieValNonexistent 3
314 #define xieValDefault 0
316 #define xieValColorAlloc 2
317 #define xieValConstrain 4
318 #define xieValConvertFromRGB 6
319 #define xieValConvertToRGB 8
320 #define xieValConvolve 10
321 #define xieValDecode 12
322 #define xieValDither 14
323 #define xieValEncode 16
324 #define xieValGamut 18
325 #define xieValGeometry 20
326 #define xieValHistogram 22
327 #define xieValWhiteAdjust 24
329 #define xieValMaxTechGroup 24
332 /* WhiteAdjustTechnique */
334 #define xieValWhiteAdjustDefault 0
335 #define xieValWhiteAdjustNone 1
336 #define xieValWhiteAdjustCIELabShift 2
339 /* Photoflo elements */
341 #define xieElemImportClientLUT 1
342 #define xieElemImportClientPhoto 2
343 #define xieElemImportClientROI 3
344 #define xieElemImportDrawable 4
345 #define xieElemImportDrawablePlane 5
346 #define xieElemImportLUT 6
347 #define xieElemImportPhotomap 7
348 #define xieElemImportROI 8
349 #define xieElemArithmetic 9
350 #define xieElemBandCombine 10
351 #define xieElemBandExtract 11
352 #define xieElemBandSelect 12
353 #define xieElemBlend 13
354 #define xieElemCompare 14
355 #define xieElemConstrain 15
356 #define xieElemConvertFromIndex 16
357 #define xieElemConvertFromRGB 17
358 #define xieElemConvertToIndex 18
359 #define xieElemConvertToRGB 19
360 #define xieElemConvolve 20
361 #define xieElemDither 21
362 #define xieElemGeometry 22
363 #define xieElemLogical 23
364 #define xieElemMatchHistogram 24
365 #define xieElemMath 25
366 #define xieElemPasteUp 26
367 #define xieElemPoint 27
368 #define xieElemUnconstrain 28
369 #define xieElemExportClientHistogram 29
370 #define xieElemExportClientLUT 30
371 #define xieElemExportClientPhoto 31
372 #define xieElemExportClientROI 32
373 #define xieElemExportDrawable 33
374 #define xieElemExportDrawablePlane 34
375 #define xieElemExportLUT 35
376 #define xieElemExportPhotomap 36
377 #define xieElemExportROI 37
379 #define xieMaxElem 37
384 #define xieEvnNoColorAlloc 0
385 #define xieEvnNoDecodeNotify 1
386 #define xieEvnNoExportAvailable 2
387 #define xieEvnNoImportObscured 3
388 #define xieEvnNoPhotofloDone 4
390 #define xieNumEvents 5
395 #define xieErrNoColorList 0
396 #define xieErrNoLUT 1
397 #define xieErrNoPhotoflo 2
398 #define xieErrNoPhotomap 3
399 #define xieErrNoPhotospace 4
400 #define xieErrNoROI 5
401 #define xieErrNoFlo 6
403 #define xieNumErrors 7
406 /* Flo Error Codes */
408 #define xieErrNoFloAccess 1
409 #define xieErrNoFloAlloc 2
410 #define xieErrNoFloColormap 3
411 #define xieErrNoFloColorList 4
412 #define xieErrNoFloDomain 5
413 #define xieErrNoFloDrawable 6
414 #define xieErrNoFloElement 7
415 #define xieErrNoFloGC 8
416 #define xieErrNoFloID 9
417 #define xieErrNoFloLength 10
418 #define xieErrNoFloLUT 11
419 #define xieErrNoFloMatch 12
420 #define xieErrNoFloOperator 13
421 #define xieErrNoFloPhotomap 14
422 #define xieErrNoFloROI 15
423 #define xieErrNoFloSource 16
424 #define xieErrNoFloTechnique 17
425 #define xieErrNoFloValue 18
426 #define xieErrNoFloImplementation 19
428 #define xieNumFloErrors 19