summaryrefslogtreecommitdiff
path: root/xc/include/extensions/XIE.h
blob: f426db30f5d7dfb0f940c22c196369cf417bf9f0 (plain)
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
/* $XConsortium: XIE.h,v 1.5 94/04/17 20:11:11 mor Exp $ */
/******************************************************************************


Copyright (c) 1993, 1994  X Consortium

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the X Consortium shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from the X Consortium.


				NOTICE
                              
This software is being provided by AGE Logic, Inc. under the
following license.  By obtaining, using and/or copying this software,
you agree that you have read, understood, and will comply with these
terms and conditions:

     Permission to use, copy, modify, distribute and sell this
     software and its documentation for any purpose and without
     fee or royalty and to grant others any or all rights granted
     herein is hereby granted, provided that you agree to comply
     with the following copyright notice and statements, including
     the disclaimer, and that the same appears on all copies and
     derivative works of the software and documentation you make.
     
     "Copyright 1993, 1994 by AGE Logic, Inc."
     
     THIS SOFTWARE IS PROVIDED "AS IS".  AGE LOGIC MAKES NO
     REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.  By way of
     example, but not limitation, AGE LOGIC MAKE NO
     REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS
     FOR ANY PARTICULAR PURPOSE OR THAT THE SOFTWARE DOES NOT
     INFRINGE THIRD-PARTY PROPRIETARY RIGHTS.  AGE LOGIC 
     SHALL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE.  IN NO
     EVENT SHALL EITHER PARTY BE LIABLE FOR ANY INDIRECT,
     INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS
     OF PROFITS, REVENUE, DATA OR USE, INCURRED BY EITHER PARTY OR
     ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT OR
     BASED ON A WARRANTY, EVEN IF AGE LOGIC LICENSEES
     HEREUNDER HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
     DAMAGES.
    
     The name of AGE Logic, Inc. may not be used in
     advertising or publicity pertaining to this software without
     specific, written prior permission from AGE Logic.

     Title to this software shall at all times remain with AGE
     Logic, Inc.

******************************************************************************/

#ifndef _XIE_H_
#define _XIE_H_


/* Extension Name and version number */

#define xieExtName		"XIE"

#define xieMajorVersion		5
#define xieMinorVersion		0
#define xieEarliestMinorVersion	0
#define xieLatestMinorVersion	0


/* ServiceClass */

#ifdef  XIE_DIS
#define XIE_FULL 0
#else
#define XIE_FULL 1
#endif

#define xieValFull		1
#define xieValDIS		2


/* Limits */

#define xieValMaxBands		3


/* Alignment */

#define xieValAlignable		1
#define xieValArbitrary		2


/* ArithmeticOp */

#define xieValAdd		1
#define xieValSub		2
#define xieValSubRev		3
#define xieValMul		4
#define xieValDiv		5
#define xieValDivRev		6
#define xieValMin		7
#define xieValMax		8
#define xieValGamma		9


/* ColorAllocTechnique */

#define xieValColorAllocDefault		0
#define xieValColorAllocAll		2
#define xieValColorAllocMatch		4
#define xieValColorAllocRequantize	6


/* Colorspace conversions */

#define xieValRGBToCIELab	2
#define xieValRGBToCIEXYZ	4
#define xieValRGBToYCbCr	6
#define xieValRGBToYCC		8

#define xieValCIELabToRGB	2
#define xieValCIEXYZToRGB	4
#define xieValYCbCrToRGB	6
#define xieValYCCToRGB		8


/* CompareOp */

#define xieValLT	1
#define xieValLE	2
#define xieValEQ	3
#define xieValNE	4
#define xieValGT	5
#define xieValGE	6


/* ConstrainTechnique */

#define xieValConstrainClipScale	2
#define xieValConstrainHardClip		4


/* ConvolveTechnique */

#define xieValConvolveDefault		0
#define xieValConvolveConstant		2
#define xieValConvolveReplicate		4


/* DataClass */

#define xieValSingleBand	1
#define xieValTripleBand	2

/* DataType */

#define xieValConstrained	1
#define xieValUnconstrained	2


/* DecodeTechnique */

#define xieValDecodeUncompressedSingle	2     	/* bitonal & grayscale */
#define xieValDecodeUncompressedTriple	3     	/* color */
#define xieValDecodeG31D		4     	/* FAX */
#define xieValDecodeG32D		6     	/* FAX */
#define xieValDecodeG42D		8     	/* FAX */
#define xieValDecodeJPEGBaseline	10     	/* grayscale & color */
#define xieValDecodeJPEGLossless	12     	/* grayscale & color */
#define xieValDecodeTIFF2		14     	/* TIFF modified G31D */
#define xieValDecodeTIFFPackBits	16     	/* TIFF APPLE FORMAT */


/* DitherTechnique */

#define xieValDitherDefault		0
#define xieValDitherErrorDiffusion	2
#define xieValDitherOrdered		4


/* EncodeTechnique */

#define xieValEncodeServerChoice	1	/* (to photomaps) */
#define xieValEncodeUncompressedSingle	2     	/* bitonal & grayscale */
#define xieValEncodeUncompressedTriple	3     	/* color */
#define xieValEncodeG31D		4    	/* FAX */
#define xieValEncodeG32D		6     	/* FAX */
#define xieValEncodeG42D		8     	/* FAX */
#define xieValEncodeJPEGBaseline	10     	/* grayscale & color */
#define xieValEncodeJPEGLossless	12     	/* grayscale & color */
#define xieValEncodeTIFF2		14     	/* TIFF modified G31D */
#define xieValEncodeTIFFPackBits	16     	/* TIFF APPLE FORMAT */

/* ServerChoice preference hints */

#define xieValPreferDefault		0
#define xieValPreferSpace		1
#define xieValPreferTime		2

/* JPEG-Lossless predictor */

#define xieValPredictorNone	0
#define xieValPredictorA	1
#define xieValPredictorB	2
#define xieValPredictorC	3
#define xieValPredictorABC	4
#define xieValPredictorABC2	5
#define xieValPredictorBAC2	6
#define xieValPredictorAB2	7


/* ExportNotify */

#define xieValDisable		1
#define xieValFirstData		2
#define xieValNewData		3


/* ExportState */

#define xieValExportDone	1
#define xieValExportMore	2
#define xieValExportEmpty	3
#define xieValExportError	4


/* GamutTechnique */

#define xieValGamutDefault	0
#define xieValGamutNone		1
#define xieValGamutClipRGB	2


/* GeometryTechnique */

#define xieValGeomDefault		0
#define xieValGeomAntialias		2
#define xieValGeomAntialiasByArea	4
#define xieValGeomAntialiasByLPF	6
#define xieValGeomBilinearInterp	8
#define xieValGeomGaussian		10
#define xieValGeomNearestNeighbor	12


/* NearestNeighbor modify */

#define xieValFavorDown		1
#define xieValFavorUp		2
#define xieValRoundNW		3
#define xieValRoundNE		4
#define xieValRoundSE		5
#define xieValRoundSW		6


/* HistogramShape */

#define	xieValHistogramFlat		2
#define	xieValHistogramGaussian		4
#define	xieValHistogramHyperbolic	6


/* Interleave */

#define xieValBandByPixel	1
#define xieValBandByPlane	2


/* MathOp */

#define xieValExp	1
#define xieValLn	2
#define xieValLog2	3
#define xieValLog10	4
#define xieValSquare	5
#define xieValSqrt	6


/* Orientation */

#define xieValLSFirst		1
#define xieValMSFirst		2


/* PhotofloOutcome */

#define xieValFloSuccess	1
#define xieValFloAbort		2
#define xieValFloError		3


/* PhotofloState */

#define xieValInactive		1
#define xieValActive		2
#define xieValNonexistent	3


/* TechniqueGroup */

#define	xieValDefault		0
#define	xieValAll		1
#define	xieValColorAlloc	2
#define	xieValConstrain		4
#define	xieValConvertFromRGB	6
#define	xieValConvertToRGB	8
#define	xieValConvolve		10
#define	xieValDecode		12
#define	xieValDither		14
#define	xieValEncode		16
#define	xieValGamut		18
#define	xieValGeometry		20
#define	xieValHistogram		22
#define	xieValWhiteAdjust	24

#define xieValMaxTechGroup	24


/* WhiteAdjustTechnique */

#define	xieValWhiteAdjustDefault	0
#define	xieValWhiteAdjustNone		1
#define	xieValWhiteAdjustCIELabShift	2


/* Photoflo elements */

#define xieElemImportClientLUT		1
#define xieElemImportClientPhoto	2
#define xieElemImportClientROI		3
#define xieElemImportDrawable		4
#define xieElemImportDrawablePlane	5
#define xieElemImportLUT		6
#define xieElemImportPhotomap		7
#define xieElemImportROI		8
#define xieElemArithmetic		9
#define xieElemBandCombine		10
#define xieElemBandExtract		11
#define xieElemBandSelect		12
#define xieElemBlend			13
#define xieElemCompare			14
#define xieElemConstrain		15
#define xieElemConvertFromIndex		16
#define xieElemConvertFromRGB		17
#define xieElemConvertToIndex		18
#define xieElemConvertToRGB		19
#define xieElemConvolve			20
#define xieElemDither			21
#define xieElemGeometry			22
#define xieElemLogical			23
#define xieElemMatchHistogram		24
#define xieElemMath			25
#define xieElemPasteUp			26
#define xieElemPoint			27
#define xieElemUnconstrain		28
#define xieElemExportClientHistogram	29
#define xieElemExportClientLUT		30
#define xieElemExportClientPhoto	31
#define xieElemExportClientROI		32
#define xieElemExportDrawable		33
#define xieElemExportDrawablePlane	34
#define xieElemExportLUT		35
#define xieElemExportPhotomap		36
#define xieElemExportROI		37

#define xieMaxElem			37


/* Event Codes */

#define xieEvnNoColorAlloc		0
#define xieEvnNoDecodeNotify		1
#define xieEvnNoExportAvailable		2
#define xieEvnNoImportObscured		3
#define xieEvnNoPhotofloDone		4

#define xieNumEvents			5


/* Error Codes */

#define xieErrNoColorList	0
#define xieErrNoLUT		1
#define xieErrNoPhotoflo	2
#define xieErrNoPhotomap	3
#define xieErrNoPhotospace	4
#define xieErrNoROI		5
#define xieErrNoFlo		6

#define xieNumErrors		7


/* Flo Error Codes */

#define xieErrNoFloAccess	   1
#define xieErrNoFloAlloc	   2
#define xieErrNoFloColormap	   3
#define xieErrNoFloColorList	   4
#define xieErrNoFloDomain	   5
#define xieErrNoFloDrawable	   6
#define xieErrNoFloElement	   7
#define xieErrNoFloGC		   8
#define xieErrNoFloID		   9
#define xieErrNoFloLength	  10
#define xieErrNoFloLUT		  11
#define xieErrNoFloMatch	  12
#define xieErrNoFloOperator	  13
#define xieErrNoFloPhotomap	  14
#define xieErrNoFloROI		  15
#define xieErrNoFloSource	  16
#define xieErrNoFloTechnique	  17
#define xieErrNoFloValue	  18
#define xieErrNoFloImplementation 19

#define xieNumFloErrors		  19

#endif /* _XIE_H_ */