VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/extensions/XIEprotost.h@ 99743

Last change on this file since 99743 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 28.5 KB
Line 
1/* $Xorg: XIEprotost.h,v 1.7 2001/02/09 02:03:23 xorgcvs Exp $ */
2/******************************************************************************
3
4
5Copyright 1993, 1994, 1998 The Open Group
6
7Permission to use, copy, modify, distribute, and sell this software and its
8documentation for any purpose is hereby granted without fee, provided that
9the above copyright notice appear in all copies and that both that
10copyright notice and this permission notice appear in supporting
11documentation.
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from The Open Group.
26
27
28 NOTICE
29
30This software is being provided by AGE Logic, Inc. under the
31following license. By obtaining, using and/or copying this software,
32you agree that you have read, understood, and will comply with these
33terms 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
70#ifndef _XIEPROTOST_H_
71#define _XIEPROTOST_H_
72
73#include <X11/Xmd.h> /* defines things like CARD32 */
74
75#define Drawable CARD32
76#define Colormap CARD32
77#define GContext CARD32
78
79typedef CARD32 xieTypFloat;
80
81#ifndef WORD64
82
83typedef xieTypFloat xieTypConstant[3];
84
85typedef xieTypFloat xieTypMatrix[9];
86
87#else /* WORD64 */
88
89typedef CARD8 xieTypConstant[12];
90
91typedef CARD8 xieTypMatrix[36];
92
93#endif /* WORD64 */
94
95
96typedef CARD8 xieTypAlignment;
97
98typedef CARD8 xieTypArithmeticOp;
99
100typedef CARD16 xieTypColorAllocTechnique;
101
102typedef CARD32 xieTypColorList;
103
104typedef CARD8 xieTypCompareOp;
105
106typedef CARD16 xieTypConstrainTechnique;
107
108typedef CARD16 xieTypConvertFromRGBTechnique;
109
110typedef CARD16 xieTypConvertToRGBTechnique;
111
112typedef CARD16 xieTypConvolveTechnique;
113
114typedef CARD8 xieTypDataClass;
115
116typedef CARD8 xieTypDataType;
117
118typedef CARD16 xieTypDecodeTechnique;
119
120typedef CARD16 xieTypDitherTechnique;
121
122typedef CARD16 xieTypEncodeTechnique;
123
124typedef CARD32 xieTypPhotospace;
125
126typedef CARD32 xieTypPhotoflo;
127
128typedef struct {
129 union {
130 struct {
131 xieTypPhotospace nameSpace B32;
132 CARD32 floID B32;
133 } immed;
134 struct {
135 CARD32 nameSpace B32;
136 xieTypPhotoflo floID B32;
137 } stored;
138 } u;
139} xieTypExecutable;
140
141typedef CARD8 xieTypExportNotify;
142
143typedef CARD8 xieTypExportState;
144
145typedef CARD16 xieTypGamutTechnique;
146
147typedef CARD16 xieTypGeometryTechnique;
148
149typedef struct {
150 CARD32 value B32;
151 CARD32 count B32;
152} xieTypHistogramData;
153
154typedef CARD16 xieTypHistogramShape;
155
156typedef CARD8 xieTypInterleave;
157
158typedef CARD32 xieTypLevels[3];
159
160typedef CARD32 xieTypLUT;
161
162typedef CARD8 xieTypMathOp;
163
164typedef CARD8 xieTypOrientation;
165
166typedef CARD8 xieTypPhotofloOutcome;
167
168typedef CARD8 xieTypPhotofloState;
169
170typedef CARD32 xieTypPhotomap;
171
172typedef CARD16 xieTypPhototag;
173
174typedef struct {
175 INT32 offsetX B32;
176 INT32 offsetY B32;
177 xieTypPhototag domain B16;
178} xieTypProcessDomain;
179
180typedef struct {
181 INT32 x B32;
182 INT32 y B32;
183 CARD32 width B32;
184 CARD32 height B32;
185} xieTypRectangle;
186
187typedef CARD32 xieTypROI;
188
189typedef CARD8 xieTypServiceClass;
190
191typedef CARD8 xieTypTechniqueGroup;
192
193typedef struct {
194 BOOL needsParam;
195 xieTypTechniqueGroup group;
196 CARD16 number B16;
197 CARD8 speed;
198 CARD8 nameLength;
199 CARD16 pad B16;
200 /* LISTofCARD8 (nameLength) */
201 /* pad (nameLength) */
202} xieTypTechniqueRec;
203
204typedef struct {
205 xieTypPhototag src B16;
206 CARD16 pad B16;
207 INT32 dstX B32;
208 INT32 dstY B32;
209} xieTypTile;
210
211typedef CARD8 xieTypTripleofCARD8[3];
212
213typedef CARD16 xieTypTripleofCARD16[3];
214
215typedef CARD32 xieTypTripleofCARD32[3];
216
217typedef CARD16 xieTypWhiteAdjustTechnique;
218
219
220/*
221 * Generic Element
222 */
223
224typedef struct {
225 CARD16 elemType B16;
226 CARD16 elemLength B16;
227} xieFlo;
228
229/*
230 * Import Elements
231 */
232typedef struct {
233 CARD16 elemType B16;
234 CARD16 elemLength B16;
235#if defined(__cplusplus) || defined(c_plusplus)
236 xieTypDataClass c_class;
237#else
238 xieTypDataClass class;
239#endif
240 xieTypOrientation bandOrder;
241 CARD16 pad B16;
242 CARD32 length0 B32;
243 CARD32 length1 B32;
244 CARD32 length2 B32;
245 CARD32 levels0 B32;
246 CARD32 levels1 B32;
247 CARD32 levels2 B32;
248} xieFloImportClientLUT;
249
250typedef struct {
251 CARD16 elemType B16;
252 CARD16 elemLength B16;
253 BOOL notify;
254#if defined(__cplusplus) || defined(c_plusplus)
255 xieTypDataClass c_class;
256#else
257 xieTypDataClass class;
258#endif
259 CARD16 pad B16;
260 CARD32 width0 B32;
261 CARD32 width1 B32;
262 CARD32 width2 B32;
263 CARD32 height0 B32;
264 CARD32 height1 B32;
265 CARD32 height2 B32;
266 CARD32 levels0 B32;
267 CARD32 levels1 B32;
268 CARD32 levels2 B32;
269 xieTypDecodeTechnique decodeTechnique B16;
270 CARD16 lenParams B16;
271 /* Technique dependent decode params */
272} xieFloImportClientPhoto;
273
274typedef struct {
275 CARD16 elemType B16;
276 CARD16 elemLength B16;
277 CARD32 rectangles B32;
278} xieFloImportClientROI;
279
280typedef struct {
281 CARD16 elemType B16;
282 CARD16 elemLength B16;
283 Drawable drawable B32;
284 INT16 srcX B16;
285 INT16 srcY B16;
286 CARD16 width B16;
287 CARD16 height B16;
288 CARD32 fill B32;
289 BOOL notify;
290 CARD8 pad[3];
291} xieFloImportDrawable;
292
293typedef struct {
294 CARD16 elemType B16;
295 CARD16 elemLength B16;
296 Drawable drawable B32;
297 INT16 srcX B16;
298 INT16 srcY B16;
299 CARD16 width B16;
300 CARD16 height B16;
301 CARD32 fill B32;
302 CARD32 bitPlane B32;
303 BOOL notify;
304 CARD8 pad[3];
305} xieFloImportDrawablePlane;
306
307typedef struct {
308 CARD16 elemType B16;
309 CARD16 elemLength B16;
310 xieTypLUT lut B32;
311} xieFloImportLUT;
312
313typedef struct {
314 CARD16 elemType B16;
315 CARD16 elemLength B16;
316 xieTypPhotomap photomap B32;
317 BOOL notify;
318 CARD8 pad[3];
319} xieFloImportPhotomap;
320
321typedef struct {
322 CARD16 elemType B16;
323 CARD16 elemLength B16;
324 xieTypROI roi B32;
325} xieFloImportROI;
326
327
328/*
329 * Process Elements
330 */
331typedef struct {
332 CARD16 elemType B16;
333 CARD16 elemLength B16;
334 xieTypPhototag src1 B16;
335 xieTypPhototag src2 B16;
336 INT32 domainOffsetX B32;
337 INT32 domainOffsetY B32;
338 xieTypPhototag domainPhototag B16;
339#if defined(__cplusplus) || defined(c_plusplus)
340 xieTypArithmeticOp c_operator;
341#else
342 xieTypArithmeticOp operator;
343#endif
344 CARD8 bandMask;
345 xieTypFloat constant0 B32;
346 xieTypFloat constant1 B32;
347 xieTypFloat constant2 B32;
348} xieFloArithmetic;
349
350typedef struct {
351 CARD16 elemType B16;
352 CARD16 elemLength B16;
353 xieTypPhototag src1 B16;
354 xieTypPhototag src2 B16;
355 xieTypPhototag src3 B16;
356 CARD16 pad B16;
357} xieFloBandCombine;
358
359typedef struct {
360 CARD16 elemType B16;
361 CARD16 elemLength B16;
362 xieTypPhototag src B16;
363 CARD16 pad B16;
364 CARD32 levels B32;
365 xieTypFloat bias B32;
366 xieTypFloat constant0 B32;
367 xieTypFloat constant1 B32;
368 xieTypFloat constant2 B32;
369} xieFloBandExtract;
370
371typedef struct {
372 CARD16 elemType B16;
373 CARD16 elemLength B16;
374 xieTypPhototag src B16;
375 CARD8 bandNumber;
376 CARD8 pad;
377} xieFloBandSelect;
378
379typedef struct {
380 CARD16 elemType B16;
381 CARD16 elemLength B16;
382 xieTypPhototag src1 B16;
383 xieTypPhototag src2 B16;
384 xieTypPhototag alpha B16;
385 CARD16 pad1 B16;
386 INT32 domainOffsetX B32;
387 INT32 domainOffsetY B32;
388 xieTypPhototag domainPhototag B16;
389 CARD8 bandMask;
390 CARD8 pad2;
391 xieTypFloat constant0 B32;
392 xieTypFloat constant1 B32;
393 xieTypFloat constant2 B32;
394 xieTypFloat alphaConst B32;
395} xieFloBlend;
396
397typedef struct {
398 CARD16 elemType B16;
399 CARD16 elemLength B16;
400 xieTypPhototag src1 B16;
401 xieTypPhototag src2 B16;
402 INT32 domainOffsetX B32;
403 INT32 domainOffsetY B32;
404 xieTypPhototag domainPhototag B16;
405#if defined(__cplusplus) || defined(c_plusplus)
406 xieTypCompareOp c_operator;
407#else
408 xieTypCompareOp operator;
409#endif
410 BOOL combine;
411 xieTypFloat constant0 B32;
412 xieTypFloat constant1 B32;
413 xieTypFloat constant2 B32;
414 CARD8 bandMask;
415 CARD8 pad[3];
416} xieFloCompare;
417
418typedef struct {
419 CARD16 elemType B16;
420 CARD16 elemLength B16;
421 xieTypPhototag src B16;
422 CARD16 pad B16;
423 CARD32 levels0 B32;
424 CARD32 levels1 B32;
425 CARD32 levels2 B32;
426 xieTypConstrainTechnique constrain B16;
427 CARD16 lenParams B16;
428 /* Technique dependent constrain params */
429} xieFloConstrain;
430
431typedef struct {
432 CARD16 elemType B16;
433 CARD16 elemLength B16;
434 xieTypPhototag src B16;
435#if defined(__cplusplus) || defined(c_plusplus)
436 xieTypDataClass c_class;
437#else
438 xieTypDataClass class;
439#endif
440 CARD8 precision;
441 Colormap colormap B32;
442} xieFloConvertFromIndex;
443
444typedef struct {
445 CARD16 elemType B16;
446 CARD16 elemLength B16;
447 xieTypPhototag src B16;
448 CARD16 pad B16;
449 xieTypConvertFromRGBTechnique convert B16;
450 CARD16 lenParams B16;
451 /* Technique dependent conversion params */
452} xieFloConvertFromRGB;
453
454typedef struct {
455 CARD16 elemType B16;
456 CARD16 elemLength B16;
457 xieTypPhototag src B16;
458 BOOL notify;
459 CARD8 pad;
460 Colormap colormap B32;
461 xieTypColorList colorList B32;
462 xieTypColorAllocTechnique colorAlloc B16;
463 CARD16 lenParams B16;
464 /* Technique dependent color alloc params */
465} xieFloConvertToIndex;
466
467typedef struct {
468 CARD16 elemType B16;
469 CARD16 elemLength B16;
470 xieTypPhototag src B16;
471 CARD16 pad B16;
472 xieTypConvertToRGBTechnique convert B16;
473 CARD16 lenParams B16;
474 /* Technique dependent conversion params */
475} xieFloConvertToRGB;
476
477typedef struct {
478 CARD16 elemType B16;
479 CARD16 elemLength B16;
480 xieTypPhototag src B16;
481 CARD16 pad B16;
482 INT32 domainOffsetX B32;
483 INT32 domainOffsetY B32;
484 xieTypPhototag domainPhototag B16;
485 CARD8 bandMask;
486 CARD8 kernelSize;
487 xieTypConvolveTechnique convolve B16;
488 CARD16 lenParams B16;
489 /* LISTofFloat (kernelSize^2) */
490 /* Technique dependent convolve params */
491} xieFloConvolve;
492
493typedef struct {
494 CARD16 elemType B16;
495 CARD16 elemLength B16;
496 xieTypPhototag src B16;
497 CARD8 bandMask;
498 CARD8 pad;
499 CARD32 levels0 B32;
500 CARD32 levels1 B32;
501 CARD32 levels2 B32;
502 xieTypDitherTechnique dither B16;
503 CARD16 lenParams B16;
504 /* Technique dependent dither params */
505} xieFloDither;
506
507typedef struct {
508 CARD16 elemType B16;
509 CARD16 elemLength B16;
510 xieTypPhototag src B16;
511 CARD8 bandMask;
512 CARD8 pad;
513 CARD32 width B32;
514 CARD32 height B32;
515 xieTypFloat a B32;
516 xieTypFloat b B32;
517 xieTypFloat c B32;
518 xieTypFloat d B32;
519 xieTypFloat tx B32;
520 xieTypFloat ty B32;
521 xieTypFloat constant0 B32;
522 xieTypFloat constant1 B32;
523 xieTypFloat constant2 B32;
524 xieTypGeometryTechnique sample B16;
525 CARD16 lenParams B16;
526 /* Technique dependent sample params */
527} xieFloGeometry;
528
529typedef struct {
530 CARD16 elemType B16;
531 CARD16 elemLength B16;
532 xieTypPhototag src1 B16;
533 xieTypPhototag src2 B16;
534 INT32 domainOffsetX B32;
535 INT32 domainOffsetY B32;
536 xieTypPhototag domainPhototag B16;
537#if defined(__cplusplus) || defined(c_plusplus)
538 CARD8 c_operator;
539#else
540 CARD8 operator;
541#endif
542 CARD8 bandMask;
543 xieTypFloat constant0 B32;
544 xieTypFloat constant1 B32;
545 xieTypFloat constant2 B32;
546} xieFloLogical;
547
548typedef struct {
549 CARD16 elemType B16;
550 CARD16 elemLength B16;
551 xieTypPhototag src B16;
552 CARD16 pad1 B16;
553 INT32 domainOffsetX B32;
554 INT32 domainOffsetY B32;
555 xieTypPhototag domainPhototag B16;
556 CARD16 pad2 B16;
557 xieTypHistogramShape shape B16;
558 CARD16 lenParams B16;
559 /* Technique dependent shape params */
560} xieFloMatchHistogram;
561
562typedef struct {
563 CARD16 elemType B16;
564 CARD16 elemLength B16;
565 xieTypPhototag src B16;
566 CARD16 pad B16;
567 INT32 domainOffsetX B32;
568 INT32 domainOffsetY B32;
569 xieTypPhototag domainPhototag B16;
570#if defined(__cplusplus) || defined(c_plusplus)
571 xieTypMathOp c_operator;
572#else
573 xieTypMathOp operator;
574#endif
575 CARD8 bandMask;
576} xieFloMath;
577
578typedef struct {
579 CARD16 elemType B16;
580 CARD16 elemLength B16;
581 CARD16 numTiles B16;
582 CARD16 pad B16;
583 CARD32 width B32;
584 CARD32 height B32;
585 xieTypFloat constant0 B32;
586 xieTypFloat constant1 B32;
587 xieTypFloat constant2 B32;
588 /* LISTofTile (numTiles) */
589} xieFloPasteUp;
590
591typedef struct {
592 CARD16 elemType B16;
593 CARD16 elemLength B16;
594 xieTypPhototag src B16;
595 xieTypPhototag lut B16;
596 INT32 domainOffsetX B32;
597 INT32 domainOffsetY B32;
598 xieTypPhototag domainPhototag B16;
599 CARD8 bandMask;
600 CARD8 pad;
601} xieFloPoint;
602
603typedef struct {
604 CARD16 elemType B16;
605 CARD16 elemLength B16;
606 xieTypPhototag src B16;
607 CARD16 pad B16;
608} xieFloUnconstrain;
609
610
611/*
612 * Export Elements
613 */
614typedef struct {
615 CARD16 elemType B16;
616 CARD16 elemLength B16;
617 xieTypPhototag src B16;
618 xieTypExportNotify notify;
619 CARD8 pad1;
620 INT32 domainOffsetX B32;
621 INT32 domainOffsetY B32;
622 xieTypPhototag domainPhototag B16;
623 CARD16 pad2 B16;
624} xieFloExportClientHistogram;
625
626typedef struct {
627 CARD16 elemType B16;
628 CARD16 elemLength B16;
629 xieTypPhototag src B16;
630 xieTypExportNotify notify;
631 xieTypOrientation bandOrder;
632 CARD32 start0 B32;
633 CARD32 start1 B32;
634 CARD32 start2 B32;
635 CARD32 length0 B32;
636 CARD32 length1 B32;
637 CARD32 length2 B32;
638} xieFloExportClientLUT;
639
640typedef struct {
641 CARD16 elemType B16;
642 CARD16 elemLength B16;
643 xieTypPhototag src B16;
644 xieTypExportNotify notify;
645 CARD8 pad;
646 xieTypEncodeTechnique encodeTechnique B16;
647 CARD16 lenParams B16;
648 /* Technique dependent encode params */
649} xieFloExportClientPhoto;
650
651typedef struct {
652 CARD16 elemType B16;
653 CARD16 elemLength B16;
654 xieTypPhototag src B16;
655 xieTypExportNotify notify;
656 CARD8 pad;
657} xieFloExportClientROI;
658
659typedef struct {
660 CARD16 elemType B16;
661 CARD16 elemLength B16;
662 xieTypPhototag src B16;
663 INT16 dstX B16;
664 INT16 dstY B16;
665 CARD16 pad B16;
666 Drawable drawable B32;
667 GContext gc B32;
668} xieFloExportDrawable;
669
670typedef struct {
671 CARD16 elemType B16;
672 CARD16 elemLength B16;
673 xieTypPhototag src B16;
674 INT16 dstX B16;
675 INT16 dstY B16;
676 CARD16 pad B16;
677 Drawable drawable B32;
678 GContext gc B32;
679} xieFloExportDrawablePlane;
680
681typedef struct {
682 CARD16 elemType B16;
683 CARD16 elemLength B16;
684 xieTypPhototag src B16;
685 CARD8 merge;
686 CARD8 pad;
687 xieTypLUT lut B32;
688 CARD32 start0 B32;
689 CARD32 start1 B32;
690 CARD32 start2 B32;
691} xieFloExportLUT;
692
693typedef struct {
694 CARD16 elemType B16;
695 CARD16 elemLength B16;
696 xieTypPhototag src B16;
697 CARD16 pad B16;
698 xieTypPhotomap photomap B32;
699 xieTypEncodeTechnique encodeTechnique B16;
700 CARD16 lenParams B16;
701 /* Technique dependent encode params */
702} xieFloExportPhotomap;
703
704typedef struct {
705 CARD16 elemType B16;
706 CARD16 elemLength B16;
707 xieTypPhototag src B16;
708 CARD16 pad B16;
709 xieTypROI roi B32;
710} xieFloExportROI;
711
712
713/*
714 * Technique Parameters
715 */
716
717typedef struct {
718 xieTypFloat inputLow0 B32;
719 xieTypFloat inputLow1 B32;
720 xieTypFloat inputLow2 B32;
721 xieTypFloat inputHigh0 B32;
722 xieTypFloat inputHigh1 B32;
723 xieTypFloat inputHigh2 B32;
724 CARD32 outputLow0 B32;
725 CARD32 outputLow1 B32;
726 CARD32 outputLow2 B32;
727 CARD32 outputHigh0 B32;
728 CARD32 outputHigh1 B32;
729 CARD32 outputHigh2 B32;
730} xieTecClipScale;
731
732typedef struct {
733 CARD32 fill B32;
734} xieTecColorAllocAll;
735
736typedef struct {
737 xieTypFloat matchLimit B32;
738 xieTypFloat grayLimit B32;
739} xieTecColorAllocMatch;
740
741typedef struct {
742 CARD32 maxCells B32;
743} xieTecColorAllocRequantize;
744
745typedef struct {
746 xieTypFloat matrix00 B32;
747 xieTypFloat matrix01 B32;
748 xieTypFloat matrix02 B32;
749 xieTypFloat matrix10 B32;
750 xieTypFloat matrix11 B32;
751 xieTypFloat matrix12 B32;
752 xieTypFloat matrix20 B32;
753 xieTypFloat matrix21 B32;
754 xieTypFloat matrix22 B32;
755 xieTypWhiteAdjustTechnique whiteAdjusted B16;
756 CARD16 lenParams B16;
757 /* Technique dependent white params */
758} xieTecRGBToCIELab, xieTecRGBToCIEXYZ;
759
760typedef struct {
761 CARD32 levels0 B32;
762 CARD32 levels1 B32;
763 CARD32 levels2 B32;
764 xieTypFloat lumaRed B32;
765 xieTypFloat lumaGreen B32;
766 xieTypFloat lumaBlue B32;
767 xieTypFloat bias0 B32;
768 xieTypFloat bias1 B32;
769 xieTypFloat bias2 B32;
770} xieTecRGBToYCbCr;
771
772typedef struct {
773 CARD32 levels0 B32;
774 CARD32 levels1 B32;
775 CARD32 levels2 B32;
776 xieTypFloat lumaRed B32;
777 xieTypFloat lumaGreen B32;
778 xieTypFloat lumaBlue B32;
779 xieTypFloat scale B32;
780} xieTecRGBToYCC;
781
782typedef struct {
783 xieTypFloat matrix00 B32;
784 xieTypFloat matrix01 B32;
785 xieTypFloat matrix02 B32;
786 xieTypFloat matrix10 B32;
787 xieTypFloat matrix11 B32;
788 xieTypFloat matrix12 B32;
789 xieTypFloat matrix20 B32;
790 xieTypFloat matrix21 B32;
791 xieTypFloat matrix22 B32;
792 xieTypWhiteAdjustTechnique whiteAdjusted B16;
793 CARD16 lenWhiteParams B16;
794 xieTypGamutTechnique gamutCompress B16;
795 CARD16 lenGamutParams B16;
796 /* Technique dependent white params */
797 /* Technique dependent gamut params */
798} xieTecCIELabToRGB, xieTecCIEXYZToRGB;
799
800typedef struct {
801 CARD32 levels0 B32;
802 CARD32 levels1 B32;
803 CARD32 levels2 B32;
804 xieTypFloat lumaRed B32;
805 xieTypFloat lumaGreen B32;
806 xieTypFloat lumaBlue B32;
807 xieTypFloat bias0 B32;
808 xieTypFloat bias1 B32;
809 xieTypFloat bias2 B32;
810 xieTypGamutTechnique gamutCompress B16;
811 CARD16 lenGamutParams B16;
812 /* Technique dependent gamut params */
813} xieTecYCbCrToRGB;
814
815typedef struct {
816 CARD32 levels0 B32;
817 CARD32 levels1 B32;
818 CARD32 levels2 B32;
819 xieTypFloat lumaRed B32;
820 xieTypFloat lumaGreen B32;
821 xieTypFloat lumaBlue B32;
822 xieTypFloat scale B32;
823 xieTypGamutTechnique gamutCompress B16;
824 CARD16 lenGamutParams B16;
825 /* Technique dependent gamut params */
826} xieTecYCCToRGB;
827
828typedef struct {
829 xieTypFloat constant0 B32;
830 xieTypFloat constant1 B32;
831 xieTypFloat constant2 B32;
832} xieTecConvolveConstant;
833
834typedef struct {
835 xieTypOrientation fillOrder;
836 xieTypOrientation pixelOrder;
837 CARD8 pixelStride;
838 CARD8 leftPad;
839 CARD8 scanlinePad;
840 CARD8 pad[3];
841} xieTecDecodeUncompressedSingle;
842
843typedef struct {
844 CARD8 leftPad[3];
845 xieTypOrientation fillOrder;
846 CARD8 pixelStride[3];
847 xieTypOrientation pixelOrder;
848 CARD8 scanlinePad[3];
849 xieTypOrientation bandOrder;
850 xieTypInterleave interleave;
851 CARD8 pad[3];
852} xieTecDecodeUncompressedTriple;
853
854typedef struct {
855 xieTypOrientation encodedOrder;
856 BOOL normal;
857 BOOL radiometric;
858 CARD8 pad;
859} xieTecDecodeG31D, xieTecDecodeG32D, xieTecDecodeG42D,
860 xieTecDecodeTIFF2;
861
862typedef struct {
863 xieTypOrientation encodedOrder;
864 BOOL normal;
865 CARD16 pad B16;
866} xieTecDecodeTIFFPackBits;
867
868typedef struct {
869 xieTypInterleave interleave;
870 xieTypOrientation bandOrder;
871 BOOL upSample;
872 CARD8 pad;
873} xieTecDecodeJPEGBaseline;
874
875typedef struct {
876 xieTypInterleave interleave;
877 xieTypOrientation bandOrder;
878 CARD16 pad B16;
879} xieTecDecodeJPEGLossless;
880
881typedef struct {
882 CARD8 thresholdOrder;
883 CARD8 pad[3];
884} xieTecDitherOrdered;
885
886typedef struct {
887 CARD8 preference;
888 CARD8 pad[3];
889} xieTecEncodeServerChoice;
890
891typedef struct {
892 xieTypOrientation fillOrder;
893 xieTypOrientation pixelOrder;
894 CARD8 pixelStride;
895 CARD8 scanlinePad;
896} xieTecEncodeUncompressedSingle;
897
898typedef struct {
899 CARD8 pixelStride[3];
900 xieTypOrientation pixelOrder;
901 CARD8 scanlinePad[3];
902 xieTypOrientation fillOrder;
903 xieTypOrientation bandOrder;
904 xieTypInterleave interleave;
905 CARD16 pad B16;
906} xieTecEncodeUncompressedTriple;
907
908typedef struct {
909 xieTypOrientation encodedOrder;
910 BOOL alignEol;
911 BOOL radiometric;
912 CARD8 pad;
913} xieTecEncodeG31D;
914
915typedef struct {
916 xieTypOrientation encodedOrder;
917 BOOL alignEol;
918 BOOL radiometric;
919 BOOL uncompressed;
920 CARD32 kFactor B32;
921} xieTecEncodeG32D;
922
923typedef struct {
924 xieTypOrientation encodedOrder;
925 BOOL radiometric;
926 BOOL uncompressed;
927 CARD8 pad;
928} xieTecEncodeG42D;
929
930typedef struct {
931 xieTypInterleave interleave;
932 xieTypOrientation bandOrder;
933 CARD8 horizontalSamples[3];
934 CARD8 verticalSamples[3];
935 CARD16 lenQtable B16; /* multiple of 4 */
936 CARD16 lenACtable B16; /* multiple of 4 */
937 CARD16 lenDCtable B16; /* multiple of 4 */
938 CARD16 pad B16;
939 /* LISTofCARD8 (Qtable) */
940 /* LISTofCARD8 (ACtable) */
941 /* LISTofCARD8 (DCtable) */
942} xieTecEncodeJPEGBaseline;
943
944typedef struct {
945 xieTypInterleave interleave;
946 xieTypOrientation bandOrder;
947 CARD16 lenTable B16; /* multiple of 4 */
948 CARD8 predictor[3];
949 CARD8 pad;
950 /* LISTofCARD8 (table) */
951} xieTecEncodeJPEGLossless;
952
953typedef struct {
954 xieTypOrientation encodedOrder;
955 BOOL radiometric;
956 CARD16 pad B16;
957} xieTecEncodeTIFF2;
958
959typedef struct {
960 xieTypOrientation encodedOrder;
961 CARD8 pad[3];
962} xieTecEncodeTIFFPackBits;
963
964typedef struct {
965 INT16 simple B16;
966 CARD16 pad B16;
967} xieTecGeomAntialiasByArea;
968
969typedef struct {
970 INT16 kernelSize B16;
971 CARD16 pad B16;
972} xieTecGeomAntialiasByLowpass;
973
974typedef struct {
975 CARD8 radius;
976 BOOL simple;
977 CARD16 pad B16;
978 xieTypFloat sigma B32;
979 xieTypFloat normalize B32;
980} xieTecGeomGaussian;
981
982typedef struct {
983 CARD8 modify;
984 CARD8 pad[3];
985} xieTecGeomNearestNeighbor;
986
987typedef struct {
988 xieTypFloat mean B32;
989 xieTypFloat sigma B32;
990} xieTecHistogramGaussian;
991
992typedef struct {
993 BOOL shapeFactor;
994 CARD8 pad[3];
995 xieTypFloat constant B32;
996} xieTecHistogramHyperbolic;
997
998typedef struct {
999 xieTypFloat whitePoint0 B32;
1000 xieTypFloat whitePoint1 B32;
1001 xieTypFloat whitePoint2 B32;
1002} xieTecWhiteAdjustCIELabShift;
1003
1004
1005/*
1006 * SIZEOF values
1007 */
1008#define sz_xieTypAlignment 1
1009#define sz_xieTypArithmeticOp 1
1010#define sz_xieTypColorAllocTechnique 2
1011#define sz_xieTypColorList 4
1012#define sz_xieTypCompareOp 1
1013#define sz_xieTypConstant 12
1014#define sz_xieTypConstrainTechnique 2
1015#define sz_xieTypConvertFromRGBTechnique 2
1016#define sz_xieTypConvertToRGBTechnique 2
1017#define sz_xieTypConvolveTechnique 2
1018#define sz_xieTypDataClass 1
1019#define sz_xieTypDataType 1
1020#define sz_xieTypDecodeTechnique 2
1021#define sz_xieTypDitherTechnique 2
1022#define sz_xieTypEncodeTechnique 2
1023#define sz_xieTypPhotospace 4
1024#define sz_xieTypPhotoflo 4
1025#define sz_xieTypExecutable 8
1026#define sz_xieTypExportNotify 1
1027#define sz_xieTypExportState 1
1028#define sz_xieTypFloat 4
1029#define sz_xieTypGamutTechnique 2
1030#define sz_xieTypGeometryTechnique 2
1031#define sz_xieTypHistogramData 8
1032#define sz_xieTypHistogramShape 2
1033#define sz_xieTypInterleave 1
1034#define sz_xieTypLevels 12
1035#define sz_xieTypLUT 4
1036#define sz_xieTypMathOp 1
1037#define sz_xieTypMatrix 36
1038#define sz_xieTypOrientation 1
1039#define sz_xieTypPhotofloOutcome 1
1040#define sz_xieTypPhotofloState 1
1041#define sz_xieTypPhotomap 4
1042#define sz_xieTypPhototag 2
1043#define sz_xieTypProcessDomain 12
1044#define sz_xieTypRectangle 16
1045#define sz_xieTypROI 4
1046#define sz_xieTypServiceClass 1
1047#define sz_xieTypTechniqueGroup 1
1048#define sz_xieTypTechniqueRec 8
1049#define sz_xieTypTile 12
1050#define sz_xieTypTripleofCARD8 3
1051#define sz_xieTypTripleofCARD16 6
1052#define sz_xieTypTripleofCARD32 12
1053#define sz_xieTypWhiteAdjustTechnique 2
1054#define sz_xieFloImportClientLUT 32
1055#define sz_xieFloImportClientPhoto 48
1056#define sz_xieFloImportClientROI 8
1057#define sz_xieFloImportDrawable 24
1058#define sz_xieFloImportDrawablePlane 28
1059#define sz_xieFloImportLUT 8
1060#define sz_xieFloImportPhotomap 12
1061#define sz_xieFloImportROI 8
1062#define sz_xieFloArithmetic 32
1063#define sz_xieFloBandCombine 12
1064#define sz_xieFloBandExtract 28
1065#define sz_xieFloBandSelect 8
1066#define sz_xieFloBlend 40
1067#define sz_xieFloCompare 36
1068#define sz_xieFloConstrain 24
1069#define sz_xieFloConvertFromIndex 12
1070#define sz_xieFloConvertFromRGB 12
1071#define sz_xieFloConvertToIndex 20
1072#define sz_xieFloConvertToRGB 12
1073#define sz_xieFloConvolve 24
1074#define sz_xieFloDither 24
1075#define sz_xieFloGeometry 56
1076#define sz_xieFloLogical 32
1077#define sz_xieFloMatchHistogram 24
1078#define sz_xieFloMath 20
1079#define sz_xieFloPasteUp 28
1080#define sz_xieFloPoint 20
1081#define sz_xieFloUnconstrain 8
1082#define sz_xieFloExportClientHistogram 20
1083#define sz_xieFloExportClientLUT 32
1084#define sz_xieFloExportClientPhoto 12
1085#define sz_xieFloExportClientROI 8
1086#define sz_xieFloExportDrawable 20
1087#define sz_xieFloExportDrawablePlane 20
1088#define sz_xieFloExportLUT 24
1089#define sz_xieFloExportPhotomap 16
1090#define sz_xieFloExportROI 12
1091#define sz_xieTecColorAllocAll 4
1092#define sz_xieTecColorAllocMatch 8
1093#define sz_xieTecColorAllocRequantize 4
1094#define sz_xieTecClipScale 48
1095#define sz_xieTecHardClip 0
1096#define sz_xieTecRGBToCIELab 40
1097#define sz_xieTecRGBToCIEXYZ 40
1098#define sz_xieTecRGBToYCbCr 36
1099#define sz_xieTecRGBToYCC 28
1100#define sz_xieTecYCbCrToRGB 40
1101#define sz_xieTecYCCToRGB 32
1102#define sz_xieTecCIELabToRGB 44
1103#define sz_xieTecCIEXYZToRGB 44
1104#define sz_xieTecConvolveConstant 12
1105#define sz_xieTecConvolveReplicate 0
1106#define sz_xieTecDecodeUncompressedSingle 8
1107#define sz_xieTecDecodeUncompressedTriple 16
1108#define sz_xieTecDecodeG31D 4
1109#define sz_xieTecDecodeG32D 4
1110#define sz_xieTecDecodeG42D 4
1111#define sz_xieTecDecodeTIFF2 4
1112#define sz_xieTecDecodeTIFFPackBits 4
1113#define sz_xieTecDecodeJPEGBaseline 4
1114#define sz_xieTecDecodeJPEGLossless 4
1115#define sz_xieTecDitherOrdered 4
1116#define sz_xieTecDitherErrorDiffusion 4
1117#define sz_xieTecEncodeServerChoice 4
1118#define sz_xieTecEncodeUncompressedSingle 4
1119#define sz_xieTecEncodeUncompressedTriple 12
1120#define sz_xieTecEncodeG31D 4
1121#define sz_xieTecEncodeG32D 8
1122#define sz_xieTecEncodeG42D 4
1123#define sz_xieTecEncodeJPEGBaseline 16
1124#define sz_xieTecEncodeJPEGLossless 8
1125#define sz_xieTecEncodeTIFF2 4
1126#define sz_xieTecEncodeTIFFPackBits 4
1127#define sz_xieTecGamutNone 0
1128#define sz_xieTecGamutClipRGB 0
1129#define sz_xieTecGeomAntialias 0
1130#define sz_xieTecGeomAntialiasByArea 4
1131#define sz_xieTecGeomAntialiasByLowpass 4
1132#define sz_xieTecGeomBilinearInterpolation 0
1133#define sz_xieTecGeomGaussian 12
1134#define sz_xieTecGeomNearestNeighbor 4
1135#define sz_xieTecHistogramFlat 0
1136#define sz_xieTecHistogramGaussian 8
1137#define sz_xieTecHistogramHyperbolic 8
1138#define sz_xieTecWhiteAdjustNone 0
1139#define sz_xieTecWhiteAdjustCIELabShift 12
1140
1141#undef Drawable
1142#undef Colormap
1143#undef GContext
1144
1145#endif /* _XIEPROTOST_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette