First import
[xorg_rtime.git] / xorg-server-1.4 / miext / rootless / accel / rlAccel.h
bloba3fc6321e9b391893bd1da3b8f568af9cd340876
1 /*
2 * Rootless Acceleration Code
3 */
4 /*
5 * Copyright (c) 2003 Torrey T. Lyons. All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
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
20 * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
21 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
25 * Except as contained in this notice, the name(s) of the above copyright
26 * holders shall not be used in advertising or otherwise to promote the sale,
27 * use or other dealings in this Software without prior written authorization.
30 #ifdef HAVE_DIX_CONFIG_H
31 #include <dix-config.h>
32 #endif
34 #include "fb.h"
37 * rlBlt.c
39 void
40 rlBlt (FbBits *srcLine,
41 FbStride srcStride,
42 int srcX,
44 ScreenPtr pDstScreen,
45 FbBits *dstLine,
46 FbStride dstStride,
47 int dstX,
49 int width,
50 int height,
52 int alu,
53 FbBits pm,
54 int bpp,
56 Bool reverse,
57 Bool upsidedown);
60 * rlCopy.c
62 RegionPtr
63 rlCopyArea (DrawablePtr pSrcDrawable,
64 DrawablePtr pDstDrawable,
65 GCPtr pGC,
66 int xIn,
67 int yIn,
68 int widthSrc,
69 int heightSrc,
70 int xOut,
71 int yOut);
74 * rlFill.c
76 void
77 rlFill (DrawablePtr pDrawable,
78 GCPtr pGC,
79 int x,
80 int y,
81 int width,
82 int height);
84 void
85 rlSolidBoxClipped (DrawablePtr pDrawable,
86 RegionPtr pClip,
87 int x1,
88 int y1,
89 int x2,
90 int y2,
91 FbBits and,
92 FbBits xor);
95 * rlFillRect.c
97 void
98 rlPolyFillRect(DrawablePtr pDrawable,
99 GCPtr pGC,
100 int nrect,
101 xRectangle *prect);
104 * rlFillSpans.c
106 void
107 rlFillSpans (DrawablePtr pDrawable,
108 GCPtr pGC,
109 int n,
110 DDXPointPtr ppt,
111 int *pwidth,
112 int fSorted);
115 * rlGlyph.c
117 void
118 rlImageGlyphBlt (DrawablePtr pDrawable,
119 GCPtr pGC,
120 int x,
121 int y,
122 unsigned int nglyph,
123 CharInfoPtr *ppciInit,
124 pointer pglyphBase);
127 * rlSolid.c
129 void
130 rlSolid (ScreenPtr pScreen,
131 FbBits *dst,
132 FbStride dstStride,
133 int dstX,
134 int bpp,
136 int width,
137 int height,
139 FbBits and,
140 FbBits xor);