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