VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.11.0/mipict.h@ 61386

最後變更 在這個檔案從61386是 38824,由 vboxsync 提交於 13 年 前

Additions/x11: header files for building X.Org Server 1.11 modules

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.3 KB
 
1/*
2 *
3 * Copyright © 2000 SuSE, Inc.
4 *
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of SuSE not be used in advertising or
10 * publicity pertaining to distribution of the software without specific,
11 * written prior permission. SuSE makes no representations about the
12 * suitability of this software for any purpose. It is provided "as is"
13 * without express or implied warranty.
14 *
15 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
17 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
19 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 *
22 * Author: Keith Packard, SuSE, Inc.
23 */
24
25#ifndef _MIPICT_H_
26#define _MIPICT_H_
27
28#include "picturestr.h"
29
30#define MI_MAX_INDEXED 256 /* XXX depth must be <= 8 */
31
32#if MI_MAX_INDEXED <= 256
33typedef CARD8 miIndexType;
34#endif
35
36typedef struct _miIndexed {
37 Bool color;
38 CARD32 rgba[MI_MAX_INDEXED];
39 miIndexType ent[32768];
40} miIndexedRec, *miIndexedPtr;
41
42#define miCvtR8G8B8to15(s) ((((s) >> 3) & 0x001f) | \
43 (((s) >> 6) & 0x03e0) | \
44 (((s) >> 9) & 0x7c00))
45#define miIndexToEnt15(mif,rgb15) ((mif)->ent[rgb15])
46#define miIndexToEnt24(mif,rgb24) miIndexToEnt15(mif,miCvtR8G8B8to15(rgb24))
47
48#define miIndexToEntY24(mif,rgb24) ((mif)->ent[CvtR8G8B8toY15(rgb24)])
49
50extern _X_EXPORT int
51miCreatePicture (PicturePtr pPicture);
52
53extern _X_EXPORT void
54miDestroyPicture (PicturePtr pPicture);
55
56extern _X_EXPORT void
57miDestroyPictureClip (PicturePtr pPicture);
58
59extern _X_EXPORT int
60miChangePictureClip (PicturePtr pPicture,
61 int type,
62 pointer value,
63 int n);
64
65extern _X_EXPORT void
66miChangePicture (PicturePtr pPicture,
67 Mask mask);
68
69extern _X_EXPORT void
70miValidatePicture (PicturePtr pPicture,
71 Mask mask);
72
73extern _X_EXPORT int
74miChangePictureTransform (PicturePtr pPicture,
75 PictTransform *transform);
76
77extern _X_EXPORT int
78miChangePictureFilter (PicturePtr pPicture,
79 int filter,
80 xFixed *params,
81 int nparams);
82
83extern _X_EXPORT void
84miCompositeSourceValidate (PicturePtr pPicture);
85
86extern _X_EXPORT Bool
87miComputeCompositeRegion (RegionPtr pRegion,
88 PicturePtr pSrc,
89 PicturePtr pMask,
90 PicturePtr pDst,
91 INT16 xSrc,
92 INT16 ySrc,
93 INT16 xMask,
94 INT16 yMask,
95 INT16 xDst,
96 INT16 yDst,
97 CARD16 width,
98 CARD16 height);
99
100extern _X_EXPORT Bool
101miPictureInit (ScreenPtr pScreen, PictFormatPtr formats, int nformats);
102
103extern _X_EXPORT Bool
104miRealizeGlyph (ScreenPtr pScreen,
105 GlyphPtr glyph);
106
107extern _X_EXPORT void
108miUnrealizeGlyph (ScreenPtr pScreen,
109 GlyphPtr glyph);
110
111extern _X_EXPORT void
112miGlyphs (CARD8 op,
113 PicturePtr pSrc,
114 PicturePtr pDst,
115 PictFormatPtr maskFormat,
116 INT16 xSrc,
117 INT16 ySrc,
118 int nlist,
119 GlyphListPtr list,
120 GlyphPtr *glyphs);
121
122extern _X_EXPORT void
123miRenderColorToPixel (PictFormatPtr pPict,
124 xRenderColor *color,
125 CARD32 *pixel);
126
127extern _X_EXPORT void
128miRenderPixelToColor (PictFormatPtr pPict,
129 CARD32 pixel,
130 xRenderColor *color);
131
132extern _X_EXPORT Bool
133miIsSolidAlpha (PicturePtr pSrc);
134
135extern _X_EXPORT void
136miCompositeRects (CARD8 op,
137 PicturePtr pDst,
138 xRenderColor *color,
139 int nRect,
140 xRectangle *rects);
141
142extern _X_EXPORT void
143miTrapezoidBounds (int ntrap, xTrapezoid *traps, BoxPtr box);
144
145extern _X_EXPORT void
146miPointFixedBounds (int npoint, xPointFixed *points, BoxPtr bounds);
147
148extern _X_EXPORT void
149miTriangleBounds (int ntri, xTriangle *tris, BoxPtr bounds);
150
151extern _X_EXPORT Bool
152miInitIndexed (ScreenPtr pScreen,
153 PictFormatPtr pFormat);
154
155extern _X_EXPORT void
156miCloseIndexed (ScreenPtr pScreen,
157 PictFormatPtr pFormat);
158
159extern _X_EXPORT void
160miUpdateIndexed (ScreenPtr pScreen,
161 PictFormatPtr pFormat,
162 int ndef,
163 xColorItem *pdef);
164
165#endif /* _MIPICT_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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