📄 xieprotost.h
字号:
/* $XConsortium: XIEprotost.h,v 1.6 94/04/17 20:11:12 mor Exp $ *//******************************************************************************Copyright (c) 1993, 1994 X ConsortiumPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION 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 beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from the X Consortium. NOTICE This software is being provided by AGE Logic, Inc. under thefollowing license. By obtaining, using and/or copying this software,you agree that you have read, understood, and will comply with theseterms 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 _XIEPROTOST_H_#define _XIEPROTOST_H_#include <X11/Xmd.h> /* defines things like CARD32 */#define Drawable CARD32#define Colormap CARD32#define GContext CARD32typedef CARD32 xieTypFloat;#ifndef WORD64typedef xieTypFloat xieTypConstant[3];typedef xieTypFloat xieTypMatrix[9];#else /* WORD64 */typedef CARD8 xieTypConstant[12];typedef CARD8 xieTypMatrix[36];#endif /* WORD64 */typedef CARD8 xieTypAlignment;typedef CARD8 xieTypArithmeticOp;typedef CARD16 xieTypColorAllocTechnique;typedef CARD32 xieTypColorList;typedef CARD8 xieTypCompareOp;typedef CARD16 xieTypConstrainTechnique;typedef CARD16 xieTypConvertFromRGBTechnique;typedef CARD16 xieTypConvertToRGBTechnique;typedef CARD16 xieTypConvolveTechnique;typedef CARD8 xieTypDataClass;typedef CARD8 xieTypDataType;typedef CARD16 xieTypDecodeTechnique;typedef CARD16 xieTypDitherTechnique;typedef CARD16 xieTypEncodeTechnique;typedef CARD32 xieTypPhotospace;typedef CARD32 xieTypPhotoflo;typedef struct { union { struct { xieTypPhotospace nameSpace B32; CARD32 floID B32; } immed; struct { CARD32 nameSpace B32; xieTypPhotoflo floID B32; } stored; } u;} xieTypExecutable;typedef CARD8 xieTypExportNotify;typedef CARD8 xieTypExportState;typedef CARD16 xieTypGamutTechnique;typedef CARD16 xieTypGeometryTechnique;typedef struct { CARD32 value B32; CARD32 count B32;} xieTypHistogramData;typedef CARD16 xieTypHistogramShape;typedef CARD8 xieTypInterleave;typedef CARD32 xieTypLevels[3];typedef CARD32 xieTypLUT;typedef CARD8 xieTypMathOp;typedef CARD8 xieTypOrientation;typedef CARD8 xieTypPhotofloOutcome;typedef CARD8 xieTypPhotofloState;typedef CARD32 xieTypPhotomap;typedef CARD16 xieTypPhototag;typedef struct { INT32 offsetX B32; INT32 offsetY B32; xieTypPhototag domain B16; } xieTypProcessDomain;typedef struct { INT32 x B32; INT32 y B32; CARD32 width B32; CARD32 height B32;} xieTypRectangle;typedef CARD32 xieTypROI;typedef CARD8 xieTypServiceClass;typedef CARD8 xieTypTechniqueGroup;typedef struct { BOOL needsParam; xieTypTechniqueGroup group; CARD16 number B16; CARD8 speed; CARD8 nameLength; CARD16 pad B16; /* LISTofCARD8 (nameLength) */ /* pad (nameLength) */} xieTypTechniqueRec;typedef struct { xieTypPhototag src B16; CARD16 pad B16; INT32 dstX B32; INT32 dstY B32;} xieTypTile;typedef CARD8 xieTypTripleofCARD8[3];typedef CARD16 xieTypTripleofCARD16[3];typedef CARD32 xieTypTripleofCARD32[3];typedef CARD16 xieTypWhiteAdjustTechnique;/* * Generic Element */typedef struct { CARD16 elemType B16; CARD16 elemLength B16;} xieFlo;/* * Import Elements */typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypDataClass class; xieTypOrientation bandOrder; CARD16 pad B16; CARD32 length0 B32; CARD32 length1 B32; CARD32 length2 B32; CARD32 levels0 B32; CARD32 levels1 B32; CARD32 levels2 B32;} xieFloImportClientLUT;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; BOOL notify; xieTypDataClass class; CARD16 pad B16; CARD32 width0 B32; CARD32 width1 B32; CARD32 width2 B32; CARD32 height0 B32; CARD32 height1 B32; CARD32 height2 B32; CARD32 levels0 B32; CARD32 levels1 B32; CARD32 levels2 B32; xieTypDecodeTechnique decodeTechnique B16; CARD16 lenParams B16; /* Technique dependent decode params */} xieFloImportClientPhoto;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; CARD32 rectangles B32;} xieFloImportClientROI;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; Drawable drawable B32; INT16 srcX B16; INT16 srcY B16; CARD16 width B16; CARD16 height B16; CARD32 fill B32; BOOL notify; CARD8 pad[3]; } xieFloImportDrawable;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; Drawable drawable B32; INT16 srcX B16; INT16 srcY B16; CARD16 width B16; CARD16 height B16; CARD32 fill B32; CARD32 bitPlane B32; BOOL notify; CARD8 pad[3]; } xieFloImportDrawablePlane;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypLUT lut B32;} xieFloImportLUT; typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhotomap photomap B32; BOOL notify; CARD8 pad[3];} xieFloImportPhotomap;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypROI roi B32;} xieFloImportROI;/* * Process Elements */typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src1 B16; xieTypPhototag src2 B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; xieTypArithmeticOp operator; CARD8 bandMask; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32;} xieFloArithmetic;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src1 B16; xieTypPhototag src2 B16; xieTypPhototag src3 B16; CARD16 pad B16;} xieFloBandCombine;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; CARD32 levels B32; xieTypFloat bias B32; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32;} xieFloBandExtract;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD8 bandNumber; CARD8 pad;} xieFloBandSelect;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src1 B16; xieTypPhototag src2 B16; xieTypPhototag alpha B16; CARD16 pad1 B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; CARD8 bandMask; CARD8 pad2; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32; xieTypFloat alphaConst B32;} xieFloBlend;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src1 B16; xieTypPhototag src2 B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; xieTypCompareOp operator; BOOL combine; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32; CARD8 bandMask; CARD8 pad[3];} xieFloCompare;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; CARD32 levels0 B32; CARD32 levels1 B32; CARD32 levels2 B32; xieTypConstrainTechnique constrain B16; CARD16 lenParams B16; /* Technique dependent constrain params */} xieFloConstrain;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; xieTypDataClass class; CARD8 precision; Colormap colormap B32;} xieFloConvertFromIndex;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; xieTypConvertFromRGBTechnique convert B16; CARD16 lenParams B16; /* Technique dependent conversion params */} xieFloConvertFromRGB;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; BOOL notify; CARD8 pad; Colormap colormap B32; xieTypColorList colorList B32; xieTypColorAllocTechnique colorAlloc B16; CARD16 lenParams B16; /* Technique dependent color alloc params */} xieFloConvertToIndex;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; xieTypConvertToRGBTechnique convert B16; CARD16 lenParams B16; /* Technique dependent conversion params */} xieFloConvertToRGB;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; CARD8 bandMask; CARD8 kernelSize; xieTypConvolveTechnique convolve B16; CARD16 lenParams B16; /* LISTofFloat (kernelSize^2) */ /* Technique dependent convolve params */} xieFloConvolve;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD8 bandMask; CARD8 pad; CARD32 levels0 B32; CARD32 levels1 B32; CARD32 levels2 B32; xieTypDitherTechnique dither B16; CARD16 lenParams B16; /* Technique dependent dither params */} xieFloDither;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD8 bandMask; CARD8 pad; CARD32 width B32; CARD32 height B32; xieTypFloat a B32; xieTypFloat b B32; xieTypFloat c B32; xieTypFloat d B32; xieTypFloat tx B32; xieTypFloat ty B32; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32; xieTypGeometryTechnique sample B16; CARD16 lenParams B16; /* Technique dependent sample params */} xieFloGeometry;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src1 B16; xieTypPhototag src2 B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; CARD8 operator; CARD8 bandMask; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32;} xieFloLogical;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad1 B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; CARD16 pad2 B16; xieTypHistogramShape shape B16; CARD16 lenParams B16; /* Technique dependent shape params */} xieFloMatchHistogram;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; xieTypPhototag src B16; CARD16 pad B16; INT32 domainOffsetX B32; INT32 domainOffsetY B32; xieTypPhototag domainPhototag B16; xieTypMathOp operator; CARD8 bandMask;} xieFloMath;typedef struct { CARD16 elemType B16; CARD16 elemLength B16; CARD16 numTiles B16; CARD16 pad B16; CARD32 width B32; CARD32 height B32; xieTypFloat constant0 B32; xieTypFloat constant1 B32; xieTypFloat constant2 B32;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -