1 | /*
|
---|
2 | * Rootless Acceleration Code
|
---|
3 | */
|
---|
4 | /*
|
---|
5 | * Copyright (c) 2003 Torrey T. Lyons. All Rights Reserved.
|
---|
6 | *
|
---|
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:
|
---|
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
|
---|
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.
|
---|
24 | *
|
---|
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.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifdef HAVE_DIX_CONFIG_H
|
---|
31 | #include <dix-config.h>
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | #include "fb.h"
|
---|
35 |
|
---|
36 | /*
|
---|
37 | * rlBlt.c
|
---|
38 | */
|
---|
39 | void
|
---|
40 | rlBlt (FbBits *srcLine,
|
---|
41 | FbStride srcStride,
|
---|
42 | int srcX,
|
---|
43 |
|
---|
44 | ScreenPtr pDstScreen,
|
---|
45 | FbBits *dstLine,
|
---|
46 | FbStride dstStride,
|
---|
47 | int dstX,
|
---|
48 |
|
---|
49 | int width,
|
---|
50 | int height,
|
---|
51 |
|
---|
52 | int alu,
|
---|
53 | FbBits pm,
|
---|
54 | int bpp,
|
---|
55 |
|
---|
56 | Bool reverse,
|
---|
57 | Bool upsidedown);
|
---|
58 |
|
---|
59 | /*
|
---|
60 | * rlCopy.c
|
---|
61 | */
|
---|
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);
|
---|
72 |
|
---|
73 | /*
|
---|
74 | * rlFill.c
|
---|
75 | */
|
---|
76 | void
|
---|
77 | rlFill (DrawablePtr pDrawable,
|
---|
78 | GCPtr pGC,
|
---|
79 | int x,
|
---|
80 | int y,
|
---|
81 | int width,
|
---|
82 | int height);
|
---|
83 |
|
---|
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);
|
---|
93 |
|
---|
94 | /*
|
---|
95 | * rlFillRect.c
|
---|
96 | */
|
---|
97 | void
|
---|
98 | rlPolyFillRect(DrawablePtr pDrawable,
|
---|
99 | GCPtr pGC,
|
---|
100 | int nrect,
|
---|
101 | xRectangle *prect);
|
---|
102 |
|
---|
103 | /*
|
---|
104 | * rlFillSpans.c
|
---|
105 | */
|
---|
106 | void
|
---|
107 | rlFillSpans (DrawablePtr pDrawable,
|
---|
108 | GCPtr pGC,
|
---|
109 | int n,
|
---|
110 | DDXPointPtr ppt,
|
---|
111 | int *pwidth,
|
---|
112 | int fSorted);
|
---|
113 |
|
---|
114 | /*
|
---|
115 | * rlGlyph.c
|
---|
116 | */
|
---|
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);
|
---|
125 |
|
---|
126 | /*
|
---|
127 | * rlSolid.c
|
---|
128 | */
|
---|
129 | void
|
---|
130 | rlSolid (ScreenPtr pScreen,
|
---|
131 | FbBits *dst,
|
---|
132 | FbStride dstStride,
|
---|
133 | int dstX,
|
---|
134 | int bpp,
|
---|
135 |
|
---|
136 | int width,
|
---|
137 | int height,
|
---|
138 |
|
---|
139 | FbBits and,
|
---|
140 | FbBits xor);
|
---|