1 |
|
---|
2 | #ifdef HAVE_XORG_CONFIG_H
|
---|
3 | #include <xorg-config.h>
|
---|
4 | #endif
|
---|
5 |
|
---|
6 | #ifndef _CFB8_32_H
|
---|
7 | #define _CFB8_32_H
|
---|
8 |
|
---|
9 | #include "gcstruct.h"
|
---|
10 |
|
---|
11 | typedef struct {
|
---|
12 | GCOps *Ops8bpp;
|
---|
13 | GCOps *Ops32bpp;
|
---|
14 | unsigned long changes;
|
---|
15 | Bool OpsAre8bpp;
|
---|
16 | } cfb8_32GCRec, *cfb8_32GCPtr;
|
---|
17 |
|
---|
18 | typedef struct {
|
---|
19 | unsigned char key;
|
---|
20 | void (*EnableDisableFBAccess)(int scrnIndex, Bool enable);
|
---|
21 | pointer visualData;
|
---|
22 | } cfb8_32ScreenRec, *cfb8_32ScreenPtr;
|
---|
23 |
|
---|
24 |
|
---|
25 | extern int cfb8_32GCPrivateIndex; /* XXX */
|
---|
26 | extern int cfb8_32GetGCPrivateIndex(void);
|
---|
27 | extern int cfb8_32ScreenPrivateIndex; /* XXX */
|
---|
28 | extern int cfb8_32GetScreenPrivateIndex(void);
|
---|
29 |
|
---|
30 | void
|
---|
31 | cfb8_32SaveAreas(
|
---|
32 | PixmapPtr pPixmap,
|
---|
33 | RegionPtr prgnSave,
|
---|
34 | int xorg,
|
---|
35 | int yorg,
|
---|
36 | WindowPtr pWin
|
---|
37 | );
|
---|
38 |
|
---|
39 | void
|
---|
40 | cfb8_32RestoreAreas(
|
---|
41 | PixmapPtr pPixmap,
|
---|
42 | RegionPtr prgnRestore,
|
---|
43 | int xorg,
|
---|
44 | int yorg,
|
---|
45 | WindowPtr pWin
|
---|
46 | );
|
---|
47 |
|
---|
48 | RegionPtr
|
---|
49 | cfb8_32CopyArea(
|
---|
50 | DrawablePtr pSrcDraw,
|
---|
51 | DrawablePtr pDstDraw,
|
---|
52 | GC *pGC,
|
---|
53 | int srcx, int srcy,
|
---|
54 | int width, int height,
|
---|
55 | int dstx, int dsty
|
---|
56 | );
|
---|
57 |
|
---|
58 | void
|
---|
59 | cfbDoBitblt8To32(
|
---|
60 | DrawablePtr pSrc,
|
---|
61 | DrawablePtr pDst,
|
---|
62 | int rop,
|
---|
63 | RegionPtr prgnDst,
|
---|
64 | DDXPointPtr pptSrc,
|
---|
65 | unsigned long planemask
|
---|
66 | );
|
---|
67 |
|
---|
68 | void
|
---|
69 | cfbDoBitblt32To8(
|
---|
70 | DrawablePtr pSrc,
|
---|
71 | DrawablePtr pDst,
|
---|
72 | int rop,
|
---|
73 | RegionPtr prgnDst,
|
---|
74 | DDXPointPtr pptSrc,
|
---|
75 | unsigned long planemask
|
---|
76 | );
|
---|
77 |
|
---|
78 |
|
---|
79 | void
|
---|
80 | cfb8_32ValidateGC8(
|
---|
81 | GCPtr pGC,
|
---|
82 | unsigned long changes,
|
---|
83 | DrawablePtr pDrawable
|
---|
84 | );
|
---|
85 |
|
---|
86 | void
|
---|
87 | cfb8_32ValidateGC32(
|
---|
88 | GCPtr pGC,
|
---|
89 | unsigned long changes,
|
---|
90 | DrawablePtr pDrawable
|
---|
91 | );
|
---|
92 |
|
---|
93 | void
|
---|
94 | cfb32ValidateGC_Underlay(
|
---|
95 | GCPtr pGC,
|
---|
96 | unsigned long changes,
|
---|
97 | DrawablePtr pDrawable
|
---|
98 | );
|
---|
99 |
|
---|
100 | Bool cfb8_32CreateGC(GCPtr pGC);
|
---|
101 |
|
---|
102 | void
|
---|
103 | cfb8_32GetSpans(
|
---|
104 | DrawablePtr pDraw,
|
---|
105 | int wMax,
|
---|
106 | DDXPointPtr ppt,
|
---|
107 | int *pwidth,
|
---|
108 | int nspans,
|
---|
109 | char *pchardstStart
|
---|
110 | );
|
---|
111 |
|
---|
112 | void
|
---|
113 | cfb8_32PutImage (
|
---|
114 | DrawablePtr pDraw,
|
---|
115 | GCPtr pGC,
|
---|
116 | int depth,
|
---|
117 | int x, int y, int w, int h,
|
---|
118 | int leftPad,
|
---|
119 | int format,
|
---|
120 | char *pImage
|
---|
121 | );
|
---|
122 |
|
---|
123 | void
|
---|
124 | cfb8_32GetImage (
|
---|
125 | DrawablePtr pDraw,
|
---|
126 | int sx, int sy, int w, int h,
|
---|
127 | unsigned int format,
|
---|
128 | unsigned long planeMask,
|
---|
129 | char *pdstLine
|
---|
130 | );
|
---|
131 |
|
---|
132 | void
|
---|
133 | cfb8_32PaintWindow (
|
---|
134 | WindowPtr pWin,
|
---|
135 | RegionPtr pRegion,
|
---|
136 | int what
|
---|
137 | );
|
---|
138 |
|
---|
139 | Bool
|
---|
140 | cfb8_32ScreenInit (
|
---|
141 | ScreenPtr pScreen,
|
---|
142 | pointer pbits,
|
---|
143 | int xsize, int ysize,
|
---|
144 | int dpix, int dpiy,
|
---|
145 | int width
|
---|
146 | );
|
---|
147 |
|
---|
148 | void
|
---|
149 | cfb8_32FillBoxSolid8 (
|
---|
150 | DrawablePtr pDraw,
|
---|
151 | int nbox,
|
---|
152 | BoxPtr pBox,
|
---|
153 | unsigned long color
|
---|
154 | );
|
---|
155 |
|
---|
156 |
|
---|
157 | void
|
---|
158 | cfb8_32FillBoxSolid32 (
|
---|
159 | DrawablePtr pDraw,
|
---|
160 | int nbox,
|
---|
161 | BoxPtr pBox,
|
---|
162 | unsigned long color
|
---|
163 | );
|
---|
164 |
|
---|
165 | RegionPtr
|
---|
166 | cfb8_32CopyPlane(
|
---|
167 | DrawablePtr pSrc,
|
---|
168 | DrawablePtr pDst,
|
---|
169 | GCPtr pGC,
|
---|
170 | int srcx, int srcy,
|
---|
171 | int width, int height,
|
---|
172 | int dstx, int dsty,
|
---|
173 | unsigned long bitPlane
|
---|
174 | );
|
---|
175 |
|
---|
176 | void
|
---|
177 | cfbDoBitblt8To8GXcopy(
|
---|
178 | DrawablePtr pSrc,
|
---|
179 | DrawablePtr pDst,
|
---|
180 | int rop,
|
---|
181 | RegionPtr prgnDst,
|
---|
182 | DDXPointPtr pptSrc,
|
---|
183 | unsigned long pm
|
---|
184 | );
|
---|
185 |
|
---|
186 | void
|
---|
187 | cfbDoBitblt24To24GXcopy(
|
---|
188 | DrawablePtr pSrc,
|
---|
189 | DrawablePtr pDst,
|
---|
190 | int rop,
|
---|
191 | RegionPtr prgnDst,
|
---|
192 | DDXPointPtr pptSrc,
|
---|
193 | unsigned long pm
|
---|
194 | );
|
---|
195 |
|
---|
196 | Bool cfb8_32CreateWindow(WindowPtr pWin);
|
---|
197 | Bool cfb8_32DestroyWindow(WindowPtr pWin);
|
---|
198 |
|
---|
199 | Bool
|
---|
200 | cfb8_32PositionWindow(
|
---|
201 | WindowPtr pWin,
|
---|
202 | int x, int y
|
---|
203 | );
|
---|
204 |
|
---|
205 | void
|
---|
206 | cfb8_32CopyWindow(
|
---|
207 | WindowPtr pWin,
|
---|
208 | DDXPointRec ptOldOrg,
|
---|
209 | RegionPtr prgnSrc
|
---|
210 | );
|
---|
211 |
|
---|
212 | Bool
|
---|
213 | cfb8_32ChangeWindowAttributes(
|
---|
214 | WindowPtr pWin,
|
---|
215 | unsigned long mask
|
---|
216 | );
|
---|
217 |
|
---|
218 |
|
---|
219 | #define CFB8_32_GET_GC_PRIVATE(pGC)\
|
---|
220 | (cfb8_32GCPtr)((pGC)->devPrivates[cfb8_32GetGCPrivateIndex()].ptr)
|
---|
221 |
|
---|
222 | #define CFB8_32_GET_SCREEN_PRIVATE(pScreen)\
|
---|
223 | (cfb8_32ScreenPtr)((pScreen)->devPrivates[cfb8_32GetScreenPrivateIndex()].ptr)
|
---|
224 |
|
---|
225 | Bool xf86Overlay8Plus32Init (ScreenPtr pScreen);
|
---|
226 |
|
---|
227 | #endif /* _CFB8_32_H */
|
---|