home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / extensions / xie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  10.7 KB  |  431 lines

  1. /* $XConsortium: XIE.h,v 1.5 94/04/17 20:11:11 mor Exp $ */
  2. /******************************************************************************
  3.  
  4.  
  5. Copyright (c) 1993, 1994  X Consortium
  6.  
  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:
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  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.
  23.  
  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.
  27.  
  28.  
  29.                 NOTICE
  30.                               
  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
  34. terms and conditions:
  35.  
  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.
  43.      
  44.      "Copyright 1993, 1994 by AGE Logic, Inc."
  45.      
  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
  59.      DAMAGES.
  60.     
  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.
  64.  
  65.      Title to this software shall at all times remain with AGE
  66.      Logic, Inc.
  67.  
  68. ******************************************************************************/
  69.  
  70. #ifndef _XIE_H_
  71. #define _XIE_H_
  72.  
  73.  
  74. /* Extension Name and version number */
  75.  
  76. #define xieExtName        "XIE"
  77.  
  78. #define xieMajorVersion        5
  79. #define xieMinorVersion        0
  80. #define xieEarliestMinorVersion    0
  81. #define xieLatestMinorVersion    0
  82.  
  83.  
  84. /* ServiceClass */
  85.  
  86. #ifdef  XIE_DIS
  87. #define XIE_FULL 0
  88. #else
  89. #define XIE_FULL 1
  90. #endif
  91.  
  92. #define xieValFull        1
  93. #define xieValDIS        2
  94.  
  95.  
  96. /* Limits */
  97.  
  98. #define xieValMaxBands        3
  99.  
  100.  
  101. /* Alignment */
  102.  
  103. #define xieValAlignable        1
  104. #define xieValArbitrary        2
  105.  
  106.  
  107. /* ArithmeticOp */
  108.  
  109. #define xieValAdd        1
  110. #define xieValSub        2
  111. #define xieValSubRev        3
  112. #define xieValMul        4
  113. #define xieValDiv        5
  114. #define xieValDivRev        6
  115. #define xieValMin        7
  116. #define xieValMax        8
  117. #define xieValGamma        9
  118.  
  119.  
  120. /* ColorAllocTechnique */
  121.  
  122. #define xieValColorAllocDefault        0
  123. #define xieValColorAllocAll        2
  124. #define xieValColorAllocMatch        4
  125. #define xieValColorAllocRequantize    6
  126.  
  127.  
  128. /* Colorspace conversions */
  129.  
  130. #define xieValRGBToCIELab    2
  131. #define xieValRGBToCIEXYZ    4
  132. #define xieValRGBToYCbCr    6
  133. #define xieValRGBToYCC        8
  134.  
  135. #define xieValCIELabToRGB    2
  136. #define xieValCIEXYZToRGB    4
  137. #define xieValYCbCrToRGB    6
  138. #define xieValYCCToRGB        8
  139.  
  140.  
  141. /* CompareOp */
  142.  
  143. #define xieValLT    1
  144. #define xieValLE    2
  145. #define xieValEQ    3
  146. #define xieValNE    4
  147. #define xieValGT    5
  148. #define xieValGE    6
  149.  
  150.  
  151. /* ConstrainTechnique */
  152.  
  153. #define xieValConstrainClipScale    2
  154. #define xieValConstrainHardClip        4
  155.  
  156.  
  157. /* ConvolveTechnique */
  158.  
  159. #define xieValConvolveDefault        0
  160. #define xieValConvolveConstant        2
  161. #define xieValConvolveReplicate        4
  162.  
  163.  
  164. /* DataClass */
  165.  
  166. #define xieValSingleBand    1
  167. #define xieValTripleBand    2
  168.  
  169. /* DataType */
  170.  
  171. #define xieValConstrained    1
  172. #define xieValUnconstrained    2
  173.  
  174.  
  175. /* DecodeTechnique */
  176.  
  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 */
  186.  
  187.  
  188. /* DitherTechnique */
  189.  
  190. #define xieValDitherDefault        0
  191. #define xieValDitherErrorDiffusion    2
  192. #define xieValDitherOrdered        4
  193.  
  194.  
  195. /* EncodeTechnique */
  196.  
  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 */
  207.  
  208. /* ServerChoice preference hints */
  209.  
  210. #define xieValPreferDefault        0
  211. #define xieValPreferSpace        1
  212. #define xieValPreferTime        2
  213.  
  214. /* JPEG-Lossless predictor */
  215.  
  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
  224.  
  225.  
  226. /* ExportNotify */
  227.  
  228. #define xieValDisable        1
  229. #define xieValFirstData        2
  230. #define xieValNewData        3
  231.  
  232.  
  233. /* ExportState */
  234.  
  235. #define xieValExportDone    1
  236. #define xieValExportMore    2
  237. #define xieValExportEmpty    3
  238. #define xieValExportError    4
  239.  
  240.  
  241. /* GamutTechnique */
  242.  
  243. #define xieValGamutDefault    0
  244. #define xieValGamutNone        1
  245. #define xieValGamutClipRGB    2
  246.  
  247.  
  248. /* GeometryTechnique */
  249.  
  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
  257.  
  258.  
  259. /* NearestNeighbor modify */
  260.  
  261. #define xieValFavorDown        1
  262. #define xieValFavorUp        2
  263. #define xieValRoundNW        3
  264. #define xieValRoundNE        4
  265. #define xieValRoundSE        5
  266. #define xieValRoundSW        6
  267.  
  268.  
  269. /* HistogramShape */
  270.  
  271. #define    xieValHistogramFlat        2
  272. #define    xieValHistogramGaussian        4
  273. #define    xieValHistogramHyperbolic    6
  274.  
  275.  
  276. /* Interleave */
  277.  
  278. #define xieValBandByPixel    1
  279. #define xieValBandByPlane    2
  280.  
  281.  
  282. /* MathOp */
  283.  
  284. #define xieValExp    1
  285. #define xieValLn    2
  286. #define xieValLog2    3
  287. #define xieValLog10    4
  288. #define xieValSquare    5
  289. #define xieValSqrt    6
  290.  
  291.  
  292. /* Orientation */
  293.  
  294. #define xieValLSFirst        1
  295. #define xieValMSFirst        2
  296.  
  297.  
  298. /* PhotofloOutcome */
  299.  
  300. #define xieValFloSuccess    1
  301. #define xieValFloAbort        2
  302. #define xieValFloError        3
  303.  
  304.  
  305. /* PhotofloState */
  306.  
  307. #define xieValInactive        1
  308. #define xieValActive        2
  309. #define xieValNonexistent    3
  310.  
  311.  
  312. /* TechniqueGroup */
  313.  
  314. #define    xieValDefault        0
  315. #define    xieValAll        1
  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
  328.  
  329. #define xieValMaxTechGroup    24
  330.  
  331.  
  332. /* WhiteAdjustTechnique */
  333.  
  334. #define    xieValWhiteAdjustDefault    0
  335. #define    xieValWhiteAdjustNone        1
  336. #define    xieValWhiteAdjustCIELabShift    2
  337.  
  338.  
  339. /* Photoflo elements */
  340.  
  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
  378.  
  379. #define xieMaxElem            37
  380.  
  381.  
  382. /* Event Codes */
  383.  
  384. #define xieEvnNoColorAlloc        0
  385. #define xieEvnNoDecodeNotify        1
  386. #define xieEvnNoExportAvailable        2
  387. #define xieEvnNoImportObscured        3
  388. #define xieEvnNoPhotofloDone        4
  389.  
  390. #define xieNumEvents            5
  391.  
  392.  
  393. /* Error Codes */
  394.  
  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
  402.  
  403. #define xieNumErrors        7
  404.  
  405.  
  406. /* Flo Error Codes */
  407.  
  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
  427.  
  428. #define xieNumFloErrors          19
  429.  
  430. #endif /* _XIE_H_ */
  431.