1 |
|
---|
2 | #ifndef _XAALOCAL_H
|
---|
3 | #define _XAALOCAL_H
|
---|
4 |
|
---|
5 | /* This file is very unorganized ! */
|
---|
6 |
|
---|
7 |
|
---|
8 | #include "gcstruct.h"
|
---|
9 | #include "regionstr.h"
|
---|
10 | #include "xf86fbman.h"
|
---|
11 | #include "xaa.h"
|
---|
12 | #include "mi.h"
|
---|
13 | #ifdef RENDER
|
---|
14 | #include "picturestr.h"
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | #define GCWhenForced (GCArcMode << 1)
|
---|
18 |
|
---|
19 | #define DO_COLOR_8x8 0x00000001
|
---|
20 | #define DO_MONO_8x8 0x00000002
|
---|
21 | #define DO_CACHE_BLT 0x00000003
|
---|
22 | #define DO_COLOR_EXPAND 0x00000004
|
---|
23 | #define DO_CACHE_EXPAND 0x00000005
|
---|
24 | #define DO_IMAGE_WRITE 0x00000006
|
---|
25 | #define DO_PIXMAP_COPY 0x00000007
|
---|
26 | #define DO_SOLID 0x00000008
|
---|
27 |
|
---|
28 |
|
---|
29 | typedef CARD32 * (*GlyphScanlineFuncPtr)(
|
---|
30 | CARD32 *base, unsigned int **glyphp, int line, int nglyph, int width
|
---|
31 | );
|
---|
32 |
|
---|
33 | typedef CARD32 *(*StippleScanlineProcPtr)(CARD32*, CARD32*, int, int, int);
|
---|
34 |
|
---|
35 | typedef void (*RectFuncPtr) (ScrnInfoPtr, int, int, int, int, int, int,
|
---|
36 | XAACacheInfoPtr);
|
---|
37 | typedef void (*TrapFuncPtr) (ScrnInfoPtr, int, int, int, int, int, int,
|
---|
38 | int, int, int, int, int, int,
|
---|
39 | XAACacheInfoPtr);
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | typedef struct _XAAScreen {
|
---|
44 | CreateGCProcPtr CreateGC;
|
---|
45 | CloseScreenProcPtr CloseScreen;
|
---|
46 | GetImageProcPtr GetImage;
|
---|
47 | GetSpansProcPtr GetSpans;
|
---|
48 | PaintWindowBackgroundProcPtr PaintWindowBackground;
|
---|
49 | PaintWindowBorderProcPtr PaintWindowBorder;
|
---|
50 | CopyWindowProcPtr CopyWindow;
|
---|
51 | WindowExposuresProcPtr WindowExposures;
|
---|
52 | BSFuncRec BackingStoreFuncs;
|
---|
53 | CreatePixmapProcPtr CreatePixmap;
|
---|
54 | DestroyPixmapProcPtr DestroyPixmap;
|
---|
55 | ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
---|
56 | XAAInfoRecPtr AccelInfoRec;
|
---|
57 | Bool (*EnterVT)(int, int);
|
---|
58 | void (*LeaveVT)(int, int);
|
---|
59 | int (*SetDGAMode)(int, int, DGADevicePtr);
|
---|
60 | void (*EnableDisableFBAccess)(int, Bool);
|
---|
61 | #ifdef RENDER
|
---|
62 | CompositeProcPtr Composite;
|
---|
63 | GlyphsProcPtr Glyphs;
|
---|
64 | #endif
|
---|
65 | } XAAScreenRec, *XAAScreenPtr;
|
---|
66 |
|
---|
67 | #define OPS_ARE_PIXMAP 0x00000001
|
---|
68 | #define OPS_ARE_ACCEL 0x00000002
|
---|
69 |
|
---|
70 | typedef struct _XAAGC {
|
---|
71 | GCOps *wrapOps;
|
---|
72 | GCFuncs *wrapFuncs;
|
---|
73 | GCOps *XAAOps;
|
---|
74 | int DashLength;
|
---|
75 | unsigned char* DashPattern;
|
---|
76 | unsigned long changes;
|
---|
77 | unsigned long flags;
|
---|
78 | } XAAGCRec, *XAAGCPtr;
|
---|
79 |
|
---|
80 | #define REDUCIBILITY_CHECKED 0x00000001
|
---|
81 | #define REDUCIBLE_TO_8x8 0x00000002
|
---|
82 | #define REDUCIBLE_TO_2_COLOR 0x00000004
|
---|
83 | #define DIRTY 0x00010000
|
---|
84 | #define OFFSCREEN 0x00020000
|
---|
85 | #define DGA_PIXMAP 0x00040000
|
---|
86 | #define SHARED_PIXMAP 0x00080000
|
---|
87 | #define LOCKED_PIXMAP 0x00100000
|
---|
88 |
|
---|
89 | #define REDUCIBILITY_MASK \
|
---|
90 | (REDUCIBILITY_CHECKED | REDUCIBLE_TO_8x8 | REDUCIBLE_TO_2_COLOR)
|
---|
91 |
|
---|
92 | typedef struct _XAAPixmap {
|
---|
93 | unsigned long flags;
|
---|
94 | CARD32 pattern0;
|
---|
95 | CARD32 pattern1;
|
---|
96 | int fg;
|
---|
97 | int bg;
|
---|
98 | FBAreaPtr offscreenArea;
|
---|
99 | Bool freeData;
|
---|
100 | } XAAPixmapRec, *XAAPixmapPtr;
|
---|
101 |
|
---|
102 |
|
---|
103 | Bool
|
---|
104 | XAACreateGC(
|
---|
105 | GCPtr pGC
|
---|
106 | );
|
---|
107 |
|
---|
108 | Bool
|
---|
109 | XAAInitAccel(
|
---|
110 | ScreenPtr pScreen,
|
---|
111 | XAAInfoRecPtr infoRec
|
---|
112 | );
|
---|
113 |
|
---|
114 | RegionPtr
|
---|
115 | XAABitBlt(
|
---|
116 | DrawablePtr pSrcDrawable,
|
---|
117 | DrawablePtr pDstDrawable,
|
---|
118 | GC *pGC,
|
---|
119 | int srcx,
|
---|
120 | int srcy,
|
---|
121 | int width,
|
---|
122 | int height,
|
---|
123 | int dstx,
|
---|
124 | int dsty,
|
---|
125 | void (*doBitBlt)(DrawablePtr, DrawablePtr, GCPtr, RegionPtr, DDXPointPtr),
|
---|
126 | unsigned long bitPlane
|
---|
127 | );
|
---|
128 |
|
---|
129 | void
|
---|
130 | XAAScreenToScreenBitBlt(
|
---|
131 | ScrnInfoPtr pScrn,
|
---|
132 | int nbox,
|
---|
133 | DDXPointPtr pptSrc,
|
---|
134 | BoxPtr pbox,
|
---|
135 | int xdir,
|
---|
136 | int ydir,
|
---|
137 | int alu,
|
---|
138 | unsigned int planemask
|
---|
139 | );
|
---|
140 |
|
---|
141 | void
|
---|
142 | XAADoBitBlt(
|
---|
143 | DrawablePtr pSrc,
|
---|
144 | DrawablePtr pDst,
|
---|
145 | GC *pGC,
|
---|
146 | RegionPtr prgnDst,
|
---|
147 | DDXPointPtr pptSrc
|
---|
148 | );
|
---|
149 |
|
---|
150 | void
|
---|
151 | XAADoImageWrite(
|
---|
152 | DrawablePtr pSrc,
|
---|
153 | DrawablePtr pDst,
|
---|
154 | GC *pGC,
|
---|
155 | RegionPtr prgnDst,
|
---|
156 | DDXPointPtr pptSrc
|
---|
157 | );
|
---|
158 |
|
---|
159 | void
|
---|
160 | XAADoImageRead(
|
---|
161 | DrawablePtr pSrc,
|
---|
162 | DrawablePtr pDst,
|
---|
163 | GC *pGC,
|
---|
164 | RegionPtr prgnDst,
|
---|
165 | DDXPointPtr pptSrc
|
---|
166 | );
|
---|
167 |
|
---|
168 | void
|
---|
169 | XAACopyWindow(
|
---|
170 | WindowPtr pWin,
|
---|
171 | DDXPointRec ptOldOrg,
|
---|
172 | RegionPtr prgnSrc
|
---|
173 | );
|
---|
174 |
|
---|
175 |
|
---|
176 | RegionPtr
|
---|
177 | XAACopyArea(
|
---|
178 | DrawablePtr pSrcDrawable,
|
---|
179 | DrawablePtr pDstDrawable,
|
---|
180 | GC *pGC,
|
---|
181 | int srcx,
|
---|
182 | int srcy,
|
---|
183 | int width,
|
---|
184 | int height,
|
---|
185 | int dstx,
|
---|
186 | int dsty
|
---|
187 | );
|
---|
188 |
|
---|
189 | void
|
---|
190 | XAAValidateCopyArea(
|
---|
191 | GCPtr pGC,
|
---|
192 | unsigned long changes,
|
---|
193 | DrawablePtr pDraw
|
---|
194 | );
|
---|
195 |
|
---|
196 | void
|
---|
197 | XAAValidatePutImage(
|
---|
198 | GCPtr pGC,
|
---|
199 | unsigned long changes,
|
---|
200 | DrawablePtr pDraw
|
---|
201 | );
|
---|
202 |
|
---|
203 | void
|
---|
204 | XAAValidateCopyPlane(
|
---|
205 | GCPtr pGC,
|
---|
206 | unsigned long changes,
|
---|
207 | DrawablePtr pDraw
|
---|
208 | );
|
---|
209 |
|
---|
210 | void
|
---|
211 | XAAValidatePushPixels(
|
---|
212 | GCPtr pGC,
|
---|
213 | unsigned long changes,
|
---|
214 | DrawablePtr pDraw
|
---|
215 | );
|
---|
216 |
|
---|
217 | void
|
---|
218 | XAAValidateFillSpans(
|
---|
219 | GCPtr pGC,
|
---|
220 | unsigned long changes,
|
---|
221 | DrawablePtr pDraw
|
---|
222 | );
|
---|
223 |
|
---|
224 | void
|
---|
225 | XAAValidatePolyGlyphBlt(
|
---|
226 | GCPtr pGC,
|
---|
227 | unsigned long changes,
|
---|
228 | DrawablePtr pDraw
|
---|
229 | );
|
---|
230 |
|
---|
231 | void
|
---|
232 | XAAValidateImageGlyphBlt(
|
---|
233 | GCPtr pGC,
|
---|
234 | unsigned long changes,
|
---|
235 | DrawablePtr pDraw
|
---|
236 | );
|
---|
237 |
|
---|
238 | void
|
---|
239 | XAAValidatePolylines(
|
---|
240 | GCPtr pGC,
|
---|
241 | unsigned long changes,
|
---|
242 | DrawablePtr pDraw
|
---|
243 | );
|
---|
244 |
|
---|
245 |
|
---|
246 | RegionPtr
|
---|
247 | XAACopyPlaneColorExpansion(
|
---|
248 | DrawablePtr pSrc,
|
---|
249 | DrawablePtr pDst,
|
---|
250 | GCPtr pGC,
|
---|
251 | int srcx,
|
---|
252 | int srcy,
|
---|
253 | int width,
|
---|
254 | int height,
|
---|
255 | int dstx,
|
---|
256 | int dsty,
|
---|
257 | unsigned long bitPlane
|
---|
258 | );
|
---|
259 |
|
---|
260 |
|
---|
261 | void
|
---|
262 | XAAPushPixelsSolidColorExpansion(
|
---|
263 | GCPtr pGC,
|
---|
264 | PixmapPtr pBitMap,
|
---|
265 | DrawablePtr pDrawable,
|
---|
266 | int dx,
|
---|
267 | int dy,
|
---|
268 | int xOrg,
|
---|
269 | int yOrg
|
---|
270 | );
|
---|
271 |
|
---|
272 | void
|
---|
273 | XAAWriteBitmapColorExpandMSBFirstFixedBase (
|
---|
274 | ScrnInfoPtr pScrn,
|
---|
275 | int x, int y, int w, int h,
|
---|
276 | unsigned char *src,
|
---|
277 | int srcwidth,
|
---|
278 | int skipleft,
|
---|
279 | int fg, int bg,
|
---|
280 | int rop,
|
---|
281 | unsigned int planemask
|
---|
282 | );
|
---|
283 |
|
---|
284 | void
|
---|
285 | XAAWriteBitmapColorExpand3MSBFirstFixedBase (
|
---|
286 | ScrnInfoPtr pScrn,
|
---|
287 | int x, int y, int w, int h,
|
---|
288 | unsigned char *src,
|
---|
289 | int srcwidth,
|
---|
290 | int skipleft,
|
---|
291 | int fg, int bg,
|
---|
292 | int rop,
|
---|
293 | unsigned int planemask
|
---|
294 | );
|
---|
295 |
|
---|
296 | void
|
---|
297 | XAAWriteBitmapColorExpandMSBFirst (
|
---|
298 | ScrnInfoPtr pScrn,
|
---|
299 | int x, int y, int w, int h,
|
---|
300 | unsigned char *src,
|
---|
301 | int srcwidth,
|
---|
302 | int skipleft,
|
---|
303 | int fg, int bg,
|
---|
304 | int rop,
|
---|
305 | unsigned int planemask
|
---|
306 | );
|
---|
307 |
|
---|
308 | void
|
---|
309 | XAAWriteBitmapColorExpand3MSBFirst (
|
---|
310 | ScrnInfoPtr pScrn,
|
---|
311 | int x, int y, int w, int h,
|
---|
312 | unsigned char *src,
|
---|
313 | int srcwidth,
|
---|
314 | int skipleft,
|
---|
315 | int fg, int bg,
|
---|
316 | int rop,
|
---|
317 | unsigned int planemask
|
---|
318 | );
|
---|
319 |
|
---|
320 | void
|
---|
321 | XAAWriteBitmapColorExpandLSBFirstFixedBase (
|
---|
322 | ScrnInfoPtr pScrn,
|
---|
323 | int x, int y, int w, int h,
|
---|
324 | unsigned char *src,
|
---|
325 | int srcwidth,
|
---|
326 | int skipleft,
|
---|
327 | int fg, int bg,
|
---|
328 | int rop,
|
---|
329 | unsigned int planemask
|
---|
330 | );
|
---|
331 |
|
---|
332 | void
|
---|
333 | XAAWriteBitmapColorExpand3LSBFirstFixedBase (
|
---|
334 | ScrnInfoPtr pScrn,
|
---|
335 | int x, int y, int w, int h,
|
---|
336 | unsigned char *src,
|
---|
337 | int srcwidth,
|
---|
338 | int skipleft,
|
---|
339 | int fg, int bg,
|
---|
340 | int rop,
|
---|
341 | unsigned int planemask
|
---|
342 | );
|
---|
343 |
|
---|
344 | void
|
---|
345 | XAAWriteBitmapColorExpandLSBFirst (
|
---|
346 | ScrnInfoPtr pScrn,
|
---|
347 | int x, int y, int w, int h,
|
---|
348 | unsigned char *src,
|
---|
349 | int srcwidth,
|
---|
350 | int skipleft,
|
---|
351 | int fg, int bg,
|
---|
352 | int rop,
|
---|
353 | unsigned int planemask
|
---|
354 | );
|
---|
355 |
|
---|
356 | void
|
---|
357 | XAAWriteBitmapColorExpand3LSBFirst (
|
---|
358 | ScrnInfoPtr pScrn,
|
---|
359 | int x, int y, int w, int h,
|
---|
360 | unsigned char *src,
|
---|
361 | int srcwidth,
|
---|
362 | int skipleft,
|
---|
363 | int fg, int bg,
|
---|
364 | int rop,
|
---|
365 | unsigned int planemask
|
---|
366 | );
|
---|
367 |
|
---|
368 |
|
---|
369 | void
|
---|
370 | XAAWriteBitmapScanlineColorExpandMSBFirst (
|
---|
371 | ScrnInfoPtr pScrn,
|
---|
372 | int x, int y, int w, int h,
|
---|
373 | unsigned char *src,
|
---|
374 | int srcwidth,
|
---|
375 | int skipleft,
|
---|
376 | int fg, int bg,
|
---|
377 | int rop,
|
---|
378 | unsigned int planemask
|
---|
379 | );
|
---|
380 |
|
---|
381 | void
|
---|
382 | XAAWriteBitmapScanlineColorExpand3MSBFirst (
|
---|
383 | ScrnInfoPtr pScrn,
|
---|
384 | int x, int y, int w, int h,
|
---|
385 | unsigned char *src,
|
---|
386 | int srcwidth,
|
---|
387 | int skipleft,
|
---|
388 | int fg, int bg,
|
---|
389 | int rop,
|
---|
390 | unsigned int planemask
|
---|
391 | );
|
---|
392 |
|
---|
393 | void
|
---|
394 | XAAWriteBitmapScanlineColorExpandMSBFirstFixedBase (
|
---|
395 | ScrnInfoPtr pScrn,
|
---|
396 | int x, int y, int w, int h,
|
---|
397 | unsigned char *src,
|
---|
398 | int srcwidth,
|
---|
399 | int skipleft,
|
---|
400 | int fg, int bg,
|
---|
401 | int rop,
|
---|
402 | unsigned int planemask
|
---|
403 | );
|
---|
404 |
|
---|
405 | void
|
---|
406 | XAAWriteBitmapScanlineColorExpand3MSBFirstFixedBase (
|
---|
407 | ScrnInfoPtr pScrn,
|
---|
408 | int x, int y, int w, int h,
|
---|
409 | unsigned char *src,
|
---|
410 | int srcwidth,
|
---|
411 | int skipleft,
|
---|
412 | int fg, int bg,
|
---|
413 | int rop,
|
---|
414 | unsigned int planemask
|
---|
415 | );
|
---|
416 |
|
---|
417 | void
|
---|
418 | XAAWriteBitmapScanlineColorExpandLSBFirst (
|
---|
419 | ScrnInfoPtr pScrn,
|
---|
420 | int x, int y, int w, int h,
|
---|
421 | unsigned char *src,
|
---|
422 | int srcwidth,
|
---|
423 | int skipleft,
|
---|
424 | int fg, int bg,
|
---|
425 | int rop,
|
---|
426 | unsigned int planemask
|
---|
427 | );
|
---|
428 |
|
---|
429 | void
|
---|
430 | XAAWriteBitmapScanlineColorExpand3LSBFirst (
|
---|
431 | ScrnInfoPtr pScrn,
|
---|
432 | int x, int y, int w, int h,
|
---|
433 | unsigned char *src,
|
---|
434 | int srcwidth,
|
---|
435 | int skipleft,
|
---|
436 | int fg, int bg,
|
---|
437 | int rop,
|
---|
438 | unsigned int planemask
|
---|
439 | );
|
---|
440 |
|
---|
441 | void
|
---|
442 | XAAWriteBitmapScanlineColorExpandLSBFirstFixedBase (
|
---|
443 | ScrnInfoPtr pScrn,
|
---|
444 | int x, int y, int w, int h,
|
---|
445 | unsigned char *src,
|
---|
446 | int srcwidth,
|
---|
447 | int skipleft,
|
---|
448 | int fg, int bg,
|
---|
449 | int rop,
|
---|
450 | unsigned int planemask
|
---|
451 | );
|
---|
452 |
|
---|
453 | void
|
---|
454 | XAAWriteBitmapScanlineColorExpand3LSBFirstFixedBase (
|
---|
455 | ScrnInfoPtr pScrn,
|
---|
456 | int x, int y, int w, int h,
|
---|
457 | unsigned char *src,
|
---|
458 | int srcwidth,
|
---|
459 | int skipleft,
|
---|
460 | int fg, int bg,
|
---|
461 | int rop,
|
---|
462 | unsigned int planemask
|
---|
463 | );
|
---|
464 |
|
---|
465 | void
|
---|
466 | XAAWritePixmap (
|
---|
467 | ScrnInfoPtr pScrn,
|
---|
468 | int x, int y, int w, int h,
|
---|
469 | unsigned char *src,
|
---|
470 | int srcwidth,
|
---|
471 | int rop,
|
---|
472 | unsigned int planemask,
|
---|
473 | int transparency_color,
|
---|
474 | int bpp, int depth
|
---|
475 | );
|
---|
476 |
|
---|
477 | void
|
---|
478 | XAAWritePixmapScanline (
|
---|
479 | ScrnInfoPtr pScrn,
|
---|
480 | int x, int y, int w, int h,
|
---|
481 | unsigned char *src,
|
---|
482 | int srcwidth,
|
---|
483 | int rop,
|
---|
484 | unsigned int planemask,
|
---|
485 | int transparency_color,
|
---|
486 | int bpp, int depth
|
---|
487 | );
|
---|
488 |
|
---|
489 | typedef void (*ClipAndRenderRectsFunc)(GCPtr, int, BoxPtr, int, int);
|
---|
490 |
|
---|
491 |
|
---|
492 | void
|
---|
493 | XAAClipAndRenderRects(
|
---|
494 | GCPtr pGC,
|
---|
495 | ClipAndRenderRectsFunc func,
|
---|
496 | int nrectFill,
|
---|
497 | xRectangle *prectInit,
|
---|
498 | int xorg, int yorg
|
---|
499 | );
|
---|
500 |
|
---|
501 |
|
---|
502 | typedef void (*ClipAndRenderSpansFunc)(GCPtr, int, DDXPointPtr, int*,
|
---|
503 | int, int, int);
|
---|
504 |
|
---|
505 | void
|
---|
506 | XAAClipAndRenderSpans(
|
---|
507 | GCPtr pGC,
|
---|
508 | DDXPointPtr ppt,
|
---|
509 | int *pwidth,
|
---|
510 | int nspans,
|
---|
511 | int fSorted,
|
---|
512 | ClipAndRenderSpansFunc func,
|
---|
513 | int xorg,
|
---|
514 | int yorg
|
---|
515 | );
|
---|
516 |
|
---|
517 |
|
---|
518 | void
|
---|
519 | XAAFillSolidRects(
|
---|
520 | ScrnInfoPtr pScrn,
|
---|
521 | int fg, int rop,
|
---|
522 | unsigned int planemask,
|
---|
523 | int nBox,
|
---|
524 | BoxPtr pBox
|
---|
525 | );
|
---|
526 |
|
---|
527 | void
|
---|
528 | XAAFillMono8x8PatternRects(
|
---|
529 | ScrnInfoPtr pScrn,
|
---|
530 | int fg, int bg, int rop,
|
---|
531 | unsigned int planemask,
|
---|
532 | int nBox,
|
---|
533 | BoxPtr pBox,
|
---|
534 | int pat0, int pat1,
|
---|
535 | int xorg, int yorg
|
---|
536 | );
|
---|
537 |
|
---|
538 | void
|
---|
539 | XAAFillMono8x8PatternRectsScreenOrigin(
|
---|
540 | ScrnInfoPtr pScrn,
|
---|
541 | int fg, int bg, int rop,
|
---|
542 | unsigned int planemask,
|
---|
543 | int nBox,
|
---|
544 | BoxPtr pBox,
|
---|
545 | int pat0, int pat1,
|
---|
546 | int xorg, int yorg
|
---|
547 | );
|
---|
548 |
|
---|
549 |
|
---|
550 | void
|
---|
551 | XAAFillColor8x8PatternRectsScreenOrigin(
|
---|
552 | ScrnInfoPtr pScrn,
|
---|
553 | int rop,
|
---|
554 | unsigned int planemask,
|
---|
555 | int nBox,
|
---|
556 | BoxPtr pBox,
|
---|
557 | int xorigin, int yorigin,
|
---|
558 | XAACacheInfoPtr pCache
|
---|
559 | );
|
---|
560 |
|
---|
561 | void
|
---|
562 | XAAFillColor8x8PatternRects(
|
---|
563 | ScrnInfoPtr pScrn,
|
---|
564 | int rop,
|
---|
565 | unsigned int planemask,
|
---|
566 | int nBox,
|
---|
567 | BoxPtr pBox,
|
---|
568 | int xorigin, int yorigin,
|
---|
569 | XAACacheInfoPtr pCache
|
---|
570 | );
|
---|
571 |
|
---|
572 | void
|
---|
573 | XAAFillCacheBltRects(
|
---|
574 | ScrnInfoPtr pScrn,
|
---|
575 | int rop,
|
---|
576 | unsigned int planemask,
|
---|
577 | int nBox,
|
---|
578 | BoxPtr pBox,
|
---|
579 | int xorg, int yorg,
|
---|
580 | XAACacheInfoPtr pCache
|
---|
581 | );
|
---|
582 |
|
---|
583 | void
|
---|
584 | XAAFillCacheExpandRects(
|
---|
585 | ScrnInfoPtr pScrn,
|
---|
586 | int fg, int bg, int rop,
|
---|
587 | unsigned int planemask,
|
---|
588 | int nBox,
|
---|
589 | BoxPtr pBox,
|
---|
590 | int xorg, int yorg,
|
---|
591 | PixmapPtr pPix
|
---|
592 | );
|
---|
593 |
|
---|
594 | void
|
---|
595 | XAAFillImageWriteRects(
|
---|
596 | ScrnInfoPtr pScrn,
|
---|
597 | int rop,
|
---|
598 | unsigned int planemask,
|
---|
599 | int nBox,
|
---|
600 | BoxPtr pBox,
|
---|
601 | int xorg, int yorg,
|
---|
602 | PixmapPtr pPix
|
---|
603 | );
|
---|
604 |
|
---|
605 | void
|
---|
606 | XAAPolyFillRect(
|
---|
607 | DrawablePtr pDraw,
|
---|
608 | GCPtr pGC,
|
---|
609 | int nrectFill,
|
---|
610 | xRectangle *prectInit
|
---|
611 | );
|
---|
612 |
|
---|
613 |
|
---|
614 | void
|
---|
615 | XAATEGlyphRendererMSBFirstFixedBase (
|
---|
616 | ScrnInfoPtr pScrn,
|
---|
617 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
618 | unsigned int **glyphs, int glyphWidth,
|
---|
619 | int fg, int bg, int rop, unsigned planemask
|
---|
620 | );
|
---|
621 |
|
---|
622 | void
|
---|
623 | XAATEGlyphRenderer3MSBFirstFixedBase (
|
---|
624 | ScrnInfoPtr pScrn,
|
---|
625 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
626 | unsigned int **glyphs, int glyphWidth,
|
---|
627 | int fg, int bg, int rop, unsigned planemask
|
---|
628 | );
|
---|
629 |
|
---|
630 | void
|
---|
631 | XAATEGlyphRendererMSBFirst (
|
---|
632 | ScrnInfoPtr pScrn,
|
---|
633 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
634 | unsigned int **glyphs, int glyphWidth,
|
---|
635 | int fg, int bg, int rop, unsigned planemask
|
---|
636 | );
|
---|
637 |
|
---|
638 | void
|
---|
639 | XAATEGlyphRenderer3MSBFirst (
|
---|
640 | ScrnInfoPtr pScrn,
|
---|
641 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
642 | unsigned int **glyphs, int glyphWidth,
|
---|
643 | int fg, int bg, int rop, unsigned planemask
|
---|
644 | );
|
---|
645 |
|
---|
646 | void
|
---|
647 | XAATEGlyphRendererLSBFirstFixedBase (
|
---|
648 | ScrnInfoPtr pScrn,
|
---|
649 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
650 | unsigned int **glyphs, int glyphWidth,
|
---|
651 | int fg, int bg, int rop, unsigned planemask
|
---|
652 | );
|
---|
653 |
|
---|
654 |
|
---|
655 | void
|
---|
656 | XAATEGlyphRenderer3LSBFirstFixedBase (
|
---|
657 | ScrnInfoPtr pScrn,
|
---|
658 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
659 | unsigned int **glyphs, int glyphWidth,
|
---|
660 | int fg, int bg, int rop, unsigned planemask
|
---|
661 | );
|
---|
662 |
|
---|
663 | void
|
---|
664 | XAATEGlyphRendererLSBFirst (
|
---|
665 | ScrnInfoPtr pScrn,
|
---|
666 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
667 | unsigned int **glyphs, int glyphWidth,
|
---|
668 | int fg, int bg, int rop, unsigned planemask
|
---|
669 | );
|
---|
670 |
|
---|
671 | void
|
---|
672 | XAATEGlyphRenderer3LSBFirst (
|
---|
673 | ScrnInfoPtr pScrn,
|
---|
674 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
675 | unsigned int **glyphs, int glyphWidth,
|
---|
676 | int fg, int bg, int rop, unsigned planemask
|
---|
677 | );
|
---|
678 |
|
---|
679 |
|
---|
680 | void
|
---|
681 | XAATEGlyphRendererScanlineMSBFirst (
|
---|
682 | ScrnInfoPtr pScrn,
|
---|
683 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
684 | unsigned int **glyphs, int glyphWidth,
|
---|
685 | int fg, int bg, int rop, unsigned planemask
|
---|
686 | );
|
---|
687 |
|
---|
688 | void
|
---|
689 | XAATEGlyphRendererScanline3MSBFirst (
|
---|
690 | ScrnInfoPtr pScrn,
|
---|
691 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
692 | unsigned int **glyphs, int glyphWidth,
|
---|
693 | int fg, int bg, int rop, unsigned planemask
|
---|
694 | );
|
---|
695 |
|
---|
696 | void
|
---|
697 | XAATEGlyphRendererScanlineLSBFirst (
|
---|
698 | ScrnInfoPtr pScrn,
|
---|
699 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
700 | unsigned int **glyphs, int glyphWidth,
|
---|
701 | int fg, int bg, int rop, unsigned planemask
|
---|
702 | );
|
---|
703 |
|
---|
704 | void
|
---|
705 | XAATEGlyphRendererScanline3LSBFirst (
|
---|
706 | ScrnInfoPtr pScrn,
|
---|
707 | int x, int y, int w, int h, int skipleft, int startline,
|
---|
708 | unsigned int **glyphs, int glyphWidth,
|
---|
709 | int fg, int bg, int rop, unsigned planemask
|
---|
710 | );
|
---|
711 |
|
---|
712 |
|
---|
713 | extern CARD32 *(*XAAGlyphScanlineFuncMSBFirstFixedBase[32])(
|
---|
714 | CARD32 *base, unsigned int **glyphp, int line, int nglyph, int width
|
---|
715 | );
|
---|
716 |
|
---|
717 | extern CARD32 *(*XAAGlyphScanlineFuncMSBFirst[32])(
|
---|
718 | CARD32 *base, unsigned int **glyphp, int line, int nglyph, int width
|
---|
719 | );
|
---|
720 |
|
---|
721 | extern CARD32 *(*XAAGlyphScanlineFuncLSBFirstFixedBase[32])(
|
---|
722 | CARD32 *base, unsigned int **glyphp, int line, int nglyph, int width
|
---|
723 | );
|
---|
724 |
|
---|
725 | extern CARD32 *(*XAAGlyphScanlineFuncLSBFirst[32])(
|
---|
726 | CARD32 *base, unsigned int **glyphp, int line, int nglyph, int width
|
---|
727 | );
|
---|
728 |
|
---|
729 | GlyphScanlineFuncPtr *XAAGetGlyphScanlineFuncMSBFirstFixedBase(void);
|
---|
730 | GlyphScanlineFuncPtr *XAAGetGlyphScanlineFuncMSBFirst(void);
|
---|
731 | GlyphScanlineFuncPtr *XAAGetGlyphScanlineFuncLSBFirstFixedBase(void);
|
---|
732 | GlyphScanlineFuncPtr *XAAGetGlyphScanlineFuncLSBFirst(void);
|
---|
733 |
|
---|
734 | void
|
---|
735 | XAAFillColorExpandRectsLSBFirst(
|
---|
736 | ScrnInfoPtr pScrn,
|
---|
737 | int fg, int bg, int rop,
|
---|
738 | unsigned int planemask,
|
---|
739 | int nBox,
|
---|
740 | BoxPtr pBox,
|
---|
741 | int xorg, int yorg,
|
---|
742 | PixmapPtr pPix
|
---|
743 | );
|
---|
744 |
|
---|
745 | void
|
---|
746 | XAAFillColorExpandRects3LSBFirst(
|
---|
747 | ScrnInfoPtr pScrn,
|
---|
748 | int fg, int bg, int rop,
|
---|
749 | unsigned int planemask,
|
---|
750 | int nBox,
|
---|
751 | BoxPtr pBox,
|
---|
752 | int xorg, int yorg,
|
---|
753 | PixmapPtr pPix
|
---|
754 | );
|
---|
755 |
|
---|
756 | void
|
---|
757 | XAAFillColorExpandRectsLSBFirstFixedBase(
|
---|
758 | ScrnInfoPtr pScrn,
|
---|
759 | int fg, int bg, int rop,
|
---|
760 | unsigned int planemask,
|
---|
761 | int nBox,
|
---|
762 | BoxPtr pBox,
|
---|
763 | int xorg, int yorg,
|
---|
764 | PixmapPtr pPix
|
---|
765 | );
|
---|
766 |
|
---|
767 | void
|
---|
768 | XAAFillColorExpandRects3LSBFirstFixedBase(
|
---|
769 | ScrnInfoPtr pScrn,
|
---|
770 | int fg, int bg, int rop,
|
---|
771 | unsigned int planemask,
|
---|
772 | int nBox,
|
---|
773 | BoxPtr pBox,
|
---|
774 | int xorg, int yorg,
|
---|
775 | PixmapPtr pPix
|
---|
776 | );
|
---|
777 |
|
---|
778 | void
|
---|
779 | XAAFillColorExpandRectsMSBFirst(
|
---|
780 | ScrnInfoPtr pScrn,
|
---|
781 | int fg, int bg, int rop,
|
---|
782 | unsigned int planemask,
|
---|
783 | int nBox,
|
---|
784 | BoxPtr pBox,
|
---|
785 | int xorg, int yorg,
|
---|
786 | PixmapPtr pPix
|
---|
787 | );
|
---|
788 |
|
---|
789 | void
|
---|
790 | XAAFillColorExpandRects3MSBFirst(
|
---|
791 | ScrnInfoPtr pScrn,
|
---|
792 | int fg, int bg, int rop,
|
---|
793 | unsigned int planemask,
|
---|
794 | int nBox,
|
---|
795 | BoxPtr pBox,
|
---|
796 | int xorg, int yorg,
|
---|
797 | PixmapPtr pPix
|
---|
798 | );
|
---|
799 |
|
---|
800 | void
|
---|
801 | XAAFillColorExpandRectsMSBFirstFixedBase(
|
---|
802 | ScrnInfoPtr pScrn,
|
---|
803 | int fg, int bg, int rop,
|
---|
804 | unsigned int planemask,
|
---|
805 | int nBox,
|
---|
806 | BoxPtr pBox,
|
---|
807 | int xorg, int yorg,
|
---|
808 | PixmapPtr pPix
|
---|
809 | );
|
---|
810 |
|
---|
811 | void
|
---|
812 | XAAFillColorExpandRects3MSBFirstFixedBase(
|
---|
813 | ScrnInfoPtr pScrn,
|
---|
814 | int fg, int bg, int rop,
|
---|
815 | unsigned int planemask,
|
---|
816 | int nBox,
|
---|
817 | BoxPtr pBox,
|
---|
818 | int xorg, int yorg,
|
---|
819 | PixmapPtr pPix
|
---|
820 | );
|
---|
821 |
|
---|
822 | void
|
---|
823 | XAAFillScanlineColorExpandRectsLSBFirst(
|
---|
824 | ScrnInfoPtr pScrn,
|
---|
825 | int fg, int bg, int rop,
|
---|
826 | unsigned int planemask,
|
---|
827 | int nBox,
|
---|
828 | BoxPtr pBox,
|
---|
829 | int xorg, int yorg,
|
---|
830 | PixmapPtr pPix
|
---|
831 | );
|
---|
832 |
|
---|
833 | void
|
---|
834 | XAAFillScanlineColorExpandRects3LSBFirst(
|
---|
835 | ScrnInfoPtr pScrn,
|
---|
836 | int fg, int bg, int rop,
|
---|
837 | unsigned int planemask,
|
---|
838 | int nBox,
|
---|
839 | BoxPtr pBox,
|
---|
840 | int xorg, int yorg,
|
---|
841 | PixmapPtr pPix
|
---|
842 | );
|
---|
843 |
|
---|
844 | void
|
---|
845 | XAAFillScanlineColorExpandRectsMSBFirst(
|
---|
846 | ScrnInfoPtr pScrn,
|
---|
847 | int fg, int bg, int rop,
|
---|
848 | unsigned int planemask,
|
---|
849 | int nBox,
|
---|
850 | BoxPtr pBox,
|
---|
851 | int xorg, int yorg,
|
---|
852 | PixmapPtr pPix
|
---|
853 | );
|
---|
854 |
|
---|
855 | void
|
---|
856 | XAAFillScanlineColorExpandRects3MSBFirst(
|
---|
857 | ScrnInfoPtr pScrn,
|
---|
858 | int fg, int bg, int rop,
|
---|
859 | unsigned int planemask,
|
---|
860 | int nBox,
|
---|
861 | BoxPtr pBox,
|
---|
862 | int xorg, int yorg,
|
---|
863 | PixmapPtr pPix
|
---|
864 | );
|
---|
865 |
|
---|
866 | void
|
---|
867 | XAAFillColorExpandSpansLSBFirst(
|
---|
868 | ScrnInfoPtr pScrn,
|
---|
869 | int fg, int bg, int rop,
|
---|
870 | unsigned int planemask,
|
---|
871 | int n,
|
---|
872 | DDXPointPtr ppt,
|
---|
873 | int *pwidth,
|
---|
874 | int fSorted,
|
---|
875 | int xorg, int yorg,
|
---|
876 | PixmapPtr pPix
|
---|
877 | );
|
---|
878 |
|
---|
879 | void
|
---|
880 | XAAFillColorExpandSpans3LSBFirst(
|
---|
881 | ScrnInfoPtr pScrn,
|
---|
882 | int fg, int bg, int rop,
|
---|
883 | unsigned int planemask,
|
---|
884 | int n,
|
---|
885 | DDXPointPtr ppt,
|
---|
886 | int *pwidth,
|
---|
887 | int fSorted,
|
---|
888 | int xorg, int yorg,
|
---|
889 | PixmapPtr pPix
|
---|
890 | );
|
---|
891 |
|
---|
892 | void
|
---|
893 | XAAFillColorExpandSpansLSBFirstFixedBase(
|
---|
894 | ScrnInfoPtr pScrn,
|
---|
895 | int fg, int bg, int rop,
|
---|
896 | unsigned int planemask,
|
---|
897 | int n,
|
---|
898 | DDXPointPtr ppt,
|
---|
899 | int *pwidth,
|
---|
900 | int fSorted,
|
---|
901 | int xorg, int yorg,
|
---|
902 | PixmapPtr pPix
|
---|
903 | );
|
---|
904 |
|
---|
905 | void
|
---|
906 | XAAFillColorExpandSpans3LSBFirstFixedBase(
|
---|
907 | ScrnInfoPtr pScrn,
|
---|
908 | int fg, int bg, int rop,
|
---|
909 | unsigned int planemask,
|
---|
910 | int n,
|
---|
911 | DDXPointPtr ppt,
|
---|
912 | int *pwidth,
|
---|
913 | int fSorted,
|
---|
914 | int xorg, int yorg,
|
---|
915 | PixmapPtr pPix
|
---|
916 | );
|
---|
917 |
|
---|
918 | void
|
---|
919 | XAAFillColorExpandSpansMSBFirst(
|
---|
920 | ScrnInfoPtr pScrn,
|
---|
921 | int fg, int bg, int rop,
|
---|
922 | unsigned int planemask,
|
---|
923 | int n,
|
---|
924 | DDXPointPtr ppt,
|
---|
925 | int *pwidth,
|
---|
926 | int fSorted,
|
---|
927 | int xorg, int yorg,
|
---|
928 | PixmapPtr pPix
|
---|
929 | );
|
---|
930 |
|
---|
931 | void
|
---|
932 | XAAFillColorExpandSpans3MSBFirst(
|
---|
933 | ScrnInfoPtr pScrn,
|
---|
934 | int fg, int bg, int rop,
|
---|
935 | unsigned int planemask,
|
---|
936 | int n,
|
---|
937 | DDXPointPtr ppt,
|
---|
938 | int *pwidth,
|
---|
939 | int fSorted,
|
---|
940 | int xorg, int yorg,
|
---|
941 | PixmapPtr pPix
|
---|
942 | );
|
---|
943 |
|
---|
944 | void
|
---|
945 | XAAFillColorExpandSpansMSBFirstFixedBase(
|
---|
946 | ScrnInfoPtr pScrn,
|
---|
947 | int fg, int bg, int rop,
|
---|
948 | unsigned int planemask,
|
---|
949 | int n,
|
---|
950 | DDXPointPtr ppt,
|
---|
951 | int *pwidth,
|
---|
952 | int fSorted,
|
---|
953 | int xorg, int yorg,
|
---|
954 | PixmapPtr pPix
|
---|
955 | );
|
---|
956 |
|
---|
957 | void
|
---|
958 | XAAFillColorExpandSpans3MSBFirstFixedBase(
|
---|
959 | ScrnInfoPtr pScrn,
|
---|
960 | int fg, int bg, int rop,
|
---|
961 | unsigned int planemask,
|
---|
962 | int n,
|
---|
963 | DDXPointPtr ppt,
|
---|
964 | int *pwidth,
|
---|
965 | int fSorted,
|
---|
966 | int xorg, int yorg,
|
---|
967 | PixmapPtr pPix
|
---|
968 | );
|
---|
969 |
|
---|
970 | void
|
---|
971 | XAAFillScanlineColorExpandSpansLSBFirst(
|
---|
972 | ScrnInfoPtr pScrn,
|
---|
973 | int fg, int bg, int rop,
|
---|
974 | unsigned int planemask,
|
---|
975 | int n,
|
---|
976 | DDXPointPtr ppt,
|
---|
977 | int *pwidth,
|
---|
978 | int fSorted,
|
---|
979 | int xorg, int yorg,
|
---|
980 | PixmapPtr pPix
|
---|
981 | );
|
---|
982 |
|
---|
983 | void
|
---|
984 | XAAFillScanlineColorExpandSpans3LSBFirst(
|
---|
985 | ScrnInfoPtr pScrn,
|
---|
986 | int fg, int bg, int rop,
|
---|
987 | unsigned int planemask,
|
---|
988 | int n,
|
---|
989 | DDXPointPtr ppt,
|
---|
990 | int *pwidth,
|
---|
991 | int fSorted,
|
---|
992 | int xorg, int yorg,
|
---|
993 | PixmapPtr pPix
|
---|
994 | );
|
---|
995 |
|
---|
996 | void
|
---|
997 | XAAPutImage(
|
---|
998 | DrawablePtr pDraw,
|
---|
999 | GCPtr pGC,
|
---|
1000 | int depth,
|
---|
1001 | int x,
|
---|
1002 | int y,
|
---|
1003 | int w,
|
---|
1004 | int h,
|
---|
1005 | int leftPad,
|
---|
1006 | int format,
|
---|
1007 | char *pImage
|
---|
1008 | );
|
---|
1009 |
|
---|
1010 | void
|
---|
1011 | XAAFillScanlineColorExpandSpansMSBFirst(
|
---|
1012 | ScrnInfoPtr pScrn,
|
---|
1013 | int fg, int bg, int rop,
|
---|
1014 | unsigned int planemask,
|
---|
1015 | int n,
|
---|
1016 | DDXPointPtr ppt,
|
---|
1017 | int *pwidth,
|
---|
1018 | int fSorted,
|
---|
1019 | int xorg, int yorg,
|
---|
1020 | PixmapPtr pPix
|
---|
1021 | );
|
---|
1022 |
|
---|
1023 | void
|
---|
1024 | XAAFillScanlineColorExpandSpans3MSBFirst(
|
---|
1025 | ScrnInfoPtr pScrn,
|
---|
1026 | int fg, int bg, int rop,
|
---|
1027 | unsigned int planemask,
|
---|
1028 | int n,
|
---|
1029 | DDXPointPtr ppt,
|
---|
1030 | int *pwidth,
|
---|
1031 | int fSorted,
|
---|
1032 | int xorg, int yorg,
|
---|
1033 | PixmapPtr pPix
|
---|
1034 | );
|
---|
1035 |
|
---|
1036 |
|
---|
1037 | extern CARD32 *(*XAAStippleScanlineFuncMSBFirstFixedBase[6])(
|
---|
1038 | CARD32* base, CARD32* src, int offset, int width, int dwords
|
---|
1039 | );
|
---|
1040 |
|
---|
1041 | extern CARD32 *(*XAAStippleScanlineFuncMSBFirst[6])(
|
---|
1042 | CARD32* base, CARD32* src, int offset, int width, int dwords
|
---|
1043 | );
|
---|
1044 |
|
---|
1045 | extern CARD32 *(*XAAStippleScanlineFuncLSBFirstFixedBase[6])(
|
---|
1046 | CARD32* base, CARD32* src, int offset, int width, int dwords
|
---|
1047 | );
|
---|
1048 |
|
---|
1049 | extern CARD32 *(*XAAStippleScanlineFuncLSBFirst[6])(
|
---|
1050 | CARD32* base, CARD32* src, int offset, int width, int dwords
|
---|
1051 | );
|
---|
1052 |
|
---|
1053 | StippleScanlineProcPtr *XAAGetStippleScanlineFuncMSBFirstFixedBase(void);
|
---|
1054 | StippleScanlineProcPtr *XAAGetStippleScanlineFuncMSBFirst(void);
|
---|
1055 | StippleScanlineProcPtr *XAAGetStippleScanlineFuncLSBFirstFixedBase(void);
|
---|
1056 | StippleScanlineProcPtr *XAAGetStippleScanlineFuncLSBFirst(void);
|
---|
1057 |
|
---|
1058 | int
|
---|
1059 | XAAPolyText8TEColorExpansion(
|
---|
1060 | DrawablePtr pDraw,
|
---|
1061 | GCPtr pGC,
|
---|
1062 | int x, int y,
|
---|
1063 | int count,
|
---|
1064 | char *chars
|
---|
1065 | );
|
---|
1066 |
|
---|
1067 | int
|
---|
1068 | XAAPolyText16TEColorExpansion(
|
---|
1069 | DrawablePtr pDraw,
|
---|
1070 | GCPtr pGC,
|
---|
1071 | int x, int y,
|
---|
1072 | int count,
|
---|
1073 | unsigned short *chars
|
---|
1074 | );
|
---|
1075 |
|
---|
1076 | void
|
---|
1077 | XAAImageText8TEColorExpansion(
|
---|
1078 | DrawablePtr pDraw,
|
---|
1079 | GCPtr pGC,
|
---|
1080 | int x, int y,
|
---|
1081 | int count,
|
---|
1082 | char *chars
|
---|
1083 | );
|
---|
1084 |
|
---|
1085 | void
|
---|
1086 | XAAImageText16TEColorExpansion(
|
---|
1087 | DrawablePtr pDraw,
|
---|
1088 | GCPtr pGC,
|
---|
1089 | int x, int y,
|
---|
1090 | int count,
|
---|
1091 | unsigned short *chars
|
---|
1092 | );
|
---|
1093 |
|
---|
1094 | void
|
---|
1095 | XAAImageGlyphBltTEColorExpansion(
|
---|
1096 | DrawablePtr pDrawable,
|
---|
1097 | GCPtr pGC,
|
---|
1098 | int xInit, int yInit,
|
---|
1099 | unsigned int nglyph,
|
---|
1100 | CharInfoPtr *ppci,
|
---|
1101 | pointer pglyphBase
|
---|
1102 | );
|
---|
1103 |
|
---|
1104 | void
|
---|
1105 | XAAPolyGlyphBltTEColorExpansion(
|
---|
1106 | DrawablePtr pDrawable,
|
---|
1107 | GCPtr pGC,
|
---|
1108 | int xInit, int yInit,
|
---|
1109 | unsigned int nglyph,
|
---|
1110 | CharInfoPtr *ppci,
|
---|
1111 | pointer pglyphBase
|
---|
1112 | );
|
---|
1113 |
|
---|
1114 |
|
---|
1115 | int
|
---|
1116 | XAAPolyText8NonTEColorExpansion(
|
---|
1117 | DrawablePtr pDraw,
|
---|
1118 | GCPtr pGC,
|
---|
1119 | int x, int y,
|
---|
1120 | int count,
|
---|
1121 | char *chars
|
---|
1122 | );
|
---|
1123 |
|
---|
1124 | int
|
---|
1125 | XAAPolyText16NonTEColorExpansion(
|
---|
1126 | DrawablePtr pDraw,
|
---|
1127 | GCPtr pGC,
|
---|
1128 | int x, int y,
|
---|
1129 | int count,
|
---|
1130 | unsigned short *chars
|
---|
1131 | );
|
---|
1132 |
|
---|
1133 | void
|
---|
1134 | XAAImageText8NonTEColorExpansion(
|
---|
1135 | DrawablePtr pDraw,
|
---|
1136 | GCPtr pGC,
|
---|
1137 | int x, int y,
|
---|
1138 | int count,
|
---|
1139 | char *chars
|
---|
1140 | );
|
---|
1141 |
|
---|
1142 | void
|
---|
1143 | XAAImageText16NonTEColorExpansion(
|
---|
1144 | DrawablePtr pDraw,
|
---|
1145 | GCPtr pGC,
|
---|
1146 | int x, int y,
|
---|
1147 | int count,
|
---|
1148 | unsigned short *chars
|
---|
1149 | );
|
---|
1150 |
|
---|
1151 | void
|
---|
1152 | XAAImageGlyphBltNonTEColorExpansion(
|
---|
1153 | DrawablePtr pDrawable,
|
---|
1154 | GCPtr pGC,
|
---|
1155 | int xInit, int yInit,
|
---|
1156 | unsigned int nglyph,
|
---|
1157 | CharInfoPtr *ppci,
|
---|
1158 | pointer pglyphBase
|
---|
1159 | );
|
---|
1160 |
|
---|
1161 | void
|
---|
1162 | XAAPolyGlyphBltNonTEColorExpansion(
|
---|
1163 | DrawablePtr pDrawable,
|
---|
1164 | GCPtr pGC,
|
---|
1165 | int xInit, int yInit,
|
---|
1166 | unsigned int nglyph,
|
---|
1167 | CharInfoPtr *ppci,
|
---|
1168 | pointer pglyphBase
|
---|
1169 | );
|
---|
1170 |
|
---|
1171 |
|
---|
1172 | void XAANonTEGlyphRenderer(
|
---|
1173 | ScrnInfoPtr pScrn,
|
---|
1174 | int x, int y, int n,
|
---|
1175 | NonTEGlyphPtr glyphs,
|
---|
1176 | BoxPtr pbox,
|
---|
1177 | int fg, int rop,
|
---|
1178 | unsigned int planemask
|
---|
1179 | );
|
---|
1180 |
|
---|
1181 | void
|
---|
1182 | XAAFillSolidSpans(
|
---|
1183 | ScrnInfoPtr pScrn,
|
---|
1184 | int fg, int rop,
|
---|
1185 | unsigned int planemask,
|
---|
1186 | int n,
|
---|
1187 | DDXPointPtr ppt,
|
---|
1188 | int *pwidth, int fSorted
|
---|
1189 | );
|
---|
1190 |
|
---|
1191 | void
|
---|
1192 | XAAFillMono8x8PatternSpans(
|
---|
1193 | ScrnInfoPtr pScrn,
|
---|
1194 | int fg, int bg, int rop,
|
---|
1195 | unsigned int planemask,
|
---|
1196 | int n,
|
---|
1197 | DDXPointPtr ppt,
|
---|
1198 | int *pwidth, int fSorted,
|
---|
1199 | int patx, int paty,
|
---|
1200 | int xorg, int yorg
|
---|
1201 | );
|
---|
1202 |
|
---|
1203 | void
|
---|
1204 | XAAFillMono8x8PatternSpansScreenOrigin(
|
---|
1205 | ScrnInfoPtr pScrn,
|
---|
1206 | int fg, int bg, int rop,
|
---|
1207 | unsigned int planemask,
|
---|
1208 | int n,
|
---|
1209 | DDXPointPtr ppt,
|
---|
1210 | int *pwidth, int fSorted,
|
---|
1211 | int patx, int paty,
|
---|
1212 | int xorg, int yorg
|
---|
1213 | );
|
---|
1214 |
|
---|
1215 | void
|
---|
1216 | XAAFillColor8x8PatternSpansScreenOrigin(
|
---|
1217 | ScrnInfoPtr pScrn,
|
---|
1218 | int rop,
|
---|
1219 | unsigned int planemask,
|
---|
1220 | int n,
|
---|
1221 | DDXPointPtr ppt,
|
---|
1222 | int *pwidth, int fSorted,
|
---|
1223 | XAACacheInfoPtr,
|
---|
1224 | int xorigin, int yorigin
|
---|
1225 | );
|
---|
1226 |
|
---|
1227 | void
|
---|
1228 | XAAFillColor8x8PatternSpans(
|
---|
1229 | ScrnInfoPtr pScrn,
|
---|
1230 | int rop,
|
---|
1231 | unsigned int planemask,
|
---|
1232 | int n,
|
---|
1233 | DDXPointPtr ppt,
|
---|
1234 | int *pwidth, int fSorted,
|
---|
1235 | XAACacheInfoPtr,
|
---|
1236 | int xorigin, int yorigin
|
---|
1237 | );
|
---|
1238 |
|
---|
1239 | void
|
---|
1240 | XAAFillCacheBltSpans(
|
---|
1241 | ScrnInfoPtr pScrn,
|
---|
1242 | int rop,
|
---|
1243 | unsigned int planemask,
|
---|
1244 | int n,
|
---|
1245 | DDXPointPtr points,
|
---|
1246 | int *widths,
|
---|
1247 | int fSorted,
|
---|
1248 | XAACacheInfoPtr pCache,
|
---|
1249 | int xorg, int yorg
|
---|
1250 | );
|
---|
1251 |
|
---|
1252 | void
|
---|
1253 | XAAFillCacheExpandSpans(
|
---|
1254 | ScrnInfoPtr pScrn,
|
---|
1255 | int fg, int bg, int rop,
|
---|
1256 | unsigned int planemask,
|
---|
1257 | int n,
|
---|
1258 | DDXPointPtr ppt,
|
---|
1259 | int *pwidth,
|
---|
1260 | int fSorted,
|
---|
1261 | int xorg, int yorg,
|
---|
1262 | PixmapPtr pPix
|
---|
1263 | );
|
---|
1264 |
|
---|
1265 | void
|
---|
1266 | XAAFillSpans(
|
---|
1267 | DrawablePtr pDrawable,
|
---|
1268 | GC *pGC,
|
---|
1269 | int nInit,
|
---|
1270 | DDXPointPtr pptInit,
|
---|
1271 | int *pwidth,
|
---|
1272 | int fSorted
|
---|
1273 | );
|
---|
1274 |
|
---|
1275 |
|
---|
1276 | void
|
---|
1277 | XAAInitPixmapCache(
|
---|
1278 | ScreenPtr pScreen,
|
---|
1279 | RegionPtr areas,
|
---|
1280 | pointer data
|
---|
1281 | );
|
---|
1282 |
|
---|
1283 | void
|
---|
1284 | XAAWriteBitmapToCache(
|
---|
1285 | ScrnInfoPtr pScrn,
|
---|
1286 | int x, int y, int w, int h,
|
---|
1287 | unsigned char *src,
|
---|
1288 | int srcwidth,
|
---|
1289 | int fg, int bg
|
---|
1290 | );
|
---|
1291 |
|
---|
1292 | void
|
---|
1293 | XAAWriteBitmapToCacheLinear(
|
---|
1294 | ScrnInfoPtr pScrn,
|
---|
1295 | int x, int y, int w, int h,
|
---|
1296 | unsigned char *src,
|
---|
1297 | int srcwidth,
|
---|
1298 | int fg, int bg
|
---|
1299 | );
|
---|
1300 |
|
---|
1301 | void
|
---|
1302 | XAAWritePixmapToCache(
|
---|
1303 | ScrnInfoPtr pScrn,
|
---|
1304 | int x, int y, int w, int h,
|
---|
1305 | unsigned char *src,
|
---|
1306 | int srcwidth,
|
---|
1307 | int bpp, int depth
|
---|
1308 | );
|
---|
1309 |
|
---|
1310 | void
|
---|
1311 | XAAWritePixmapToCacheLinear(
|
---|
1312 | ScrnInfoPtr pScrn,
|
---|
1313 | int x, int y, int w, int h,
|
---|
1314 | unsigned char *src,
|
---|
1315 | int srcwidth,
|
---|
1316 | int bpp, int depth
|
---|
1317 | );
|
---|
1318 |
|
---|
1319 |
|
---|
1320 | void
|
---|
1321 | XAAPaintWindow(
|
---|
1322 | WindowPtr pWin,
|
---|
1323 | RegionPtr prgn,
|
---|
1324 | int what
|
---|
1325 | );
|
---|
1326 |
|
---|
1327 | void
|
---|
1328 | XAASolidHorVertLineAsRects(
|
---|
1329 | ScrnInfoPtr pScrn,
|
---|
1330 | int x, int y, int len, int dir
|
---|
1331 | );
|
---|
1332 |
|
---|
1333 | void
|
---|
1334 | XAASolidHorVertLineAsTwoPoint(
|
---|
1335 | ScrnInfoPtr pScrn,
|
---|
1336 | int x, int y, int len, int dir
|
---|
1337 | );
|
---|
1338 |
|
---|
1339 | void
|
---|
1340 | XAASolidHorVertLineAsBresenham(
|
---|
1341 | ScrnInfoPtr pScrn,
|
---|
1342 | int x, int y, int len, int dir
|
---|
1343 | );
|
---|
1344 |
|
---|
1345 |
|
---|
1346 | void
|
---|
1347 | XAAPolyRectangleThinSolid(
|
---|
1348 | DrawablePtr pDrawable,
|
---|
1349 | GCPtr pGC,
|
---|
1350 | int nRectsInit,
|
---|
1351 | xRectangle *pRectsInit
|
---|
1352 | );
|
---|
1353 |
|
---|
1354 |
|
---|
1355 | void
|
---|
1356 | XAAPolylinesWideSolid (
|
---|
1357 | DrawablePtr pDrawable,
|
---|
1358 | GCPtr pGC,
|
---|
1359 | int mode,
|
---|
1360 | int npt,
|
---|
1361 | DDXPointPtr pPts
|
---|
1362 | );
|
---|
1363 |
|
---|
1364 | void
|
---|
1365 | XAAFillPolygonSolid(
|
---|
1366 | DrawablePtr pDrawable,
|
---|
1367 | GCPtr pGC,
|
---|
1368 | int shape,
|
---|
1369 | int mode,
|
---|
1370 | int count,
|
---|
1371 | DDXPointPtr ptsIn
|
---|
1372 | );
|
---|
1373 |
|
---|
1374 | void
|
---|
1375 | XAAFillPolygonStippled(
|
---|
1376 | DrawablePtr pDrawable,
|
---|
1377 | GCPtr pGC,
|
---|
1378 | int shape,
|
---|
1379 | int mode,
|
---|
1380 | int count,
|
---|
1381 | DDXPointPtr ptsIn
|
---|
1382 | );
|
---|
1383 |
|
---|
1384 |
|
---|
1385 | void
|
---|
1386 | XAAFillPolygonTiled(
|
---|
1387 | DrawablePtr pDrawable,
|
---|
1388 | GCPtr pGC,
|
---|
1389 | int shape,
|
---|
1390 | int mode,
|
---|
1391 | int count,
|
---|
1392 | DDXPointPtr ptsIn
|
---|
1393 | );
|
---|
1394 |
|
---|
1395 |
|
---|
1396 | int
|
---|
1397 | XAAIsEasyPolygon(
|
---|
1398 | DDXPointPtr ptsIn,
|
---|
1399 | int count,
|
---|
1400 | BoxPtr extents,
|
---|
1401 | int origin,
|
---|
1402 | DDXPointPtr *topPoint,
|
---|
1403 | int *topY, int *bottomY,
|
---|
1404 | int shape
|
---|
1405 | );
|
---|
1406 |
|
---|
1407 | void
|
---|
1408 | XAAFillPolygonHelper(
|
---|
1409 | ScrnInfoPtr pScrn,
|
---|
1410 | DDXPointPtr ptsIn,
|
---|
1411 | int count,
|
---|
1412 | DDXPointPtr topPoint,
|
---|
1413 | int y,
|
---|
1414 | int maxy,
|
---|
1415 | int origin,
|
---|
1416 | RectFuncPtr RectFunc,
|
---|
1417 | TrapFuncPtr TrapFunc,
|
---|
1418 | int xorg,
|
---|
1419 | int yorg,
|
---|
1420 | XAACacheInfoPtr pCache
|
---|
1421 | );
|
---|
1422 |
|
---|
1423 | void
|
---|
1424 | XAAPolySegment(
|
---|
1425 | DrawablePtr pDrawable,
|
---|
1426 | GCPtr pGC,
|
---|
1427 | int nseg,
|
---|
1428 | xSegment *pSeg
|
---|
1429 | );
|
---|
1430 |
|
---|
1431 | void
|
---|
1432 | XAAPolyLines(
|
---|
1433 | DrawablePtr pDrawable,
|
---|
1434 | GCPtr pGC,
|
---|
1435 | int mode,
|
---|
1436 | int npt,
|
---|
1437 | DDXPointPtr pptInit
|
---|
1438 | );
|
---|
1439 |
|
---|
1440 | void
|
---|
1441 | XAAPolySegmentDashed(
|
---|
1442 | DrawablePtr pDrawable,
|
---|
1443 | GCPtr pGC,
|
---|
1444 | int nseg,
|
---|
1445 | xSegment *pSeg
|
---|
1446 | );
|
---|
1447 |
|
---|
1448 | void
|
---|
1449 | XAAPolyLinesDashed(
|
---|
1450 | DrawablePtr pDrawable,
|
---|
1451 | GCPtr pGC,
|
---|
1452 | int mode,
|
---|
1453 | int npt,
|
---|
1454 | DDXPointPtr pptInit
|
---|
1455 | );
|
---|
1456 |
|
---|
1457 |
|
---|
1458 | void
|
---|
1459 | XAAWriteMono8x8PatternToCache(ScrnInfoPtr pScrn, XAACacheInfoPtr pCache);
|
---|
1460 |
|
---|
1461 | void
|
---|
1462 | XAAWriteColor8x8PatternToCache(
|
---|
1463 | ScrnInfoPtr pScrn,
|
---|
1464 | PixmapPtr pPix,
|
---|
1465 | XAACacheInfoPtr pCache
|
---|
1466 | );
|
---|
1467 |
|
---|
1468 | void
|
---|
1469 | XAARotateMonoPattern(
|
---|
1470 | int *pat0, int *pat1,
|
---|
1471 | int xoffset, int yoffset,
|
---|
1472 | Bool msbfirst
|
---|
1473 | );
|
---|
1474 |
|
---|
1475 | void XAAComputeDash(GCPtr pGC);
|
---|
1476 |
|
---|
1477 | void XAAMoveDWORDS_FixedBase(
|
---|
1478 | register CARD32* dest,
|
---|
1479 | register CARD32* src,
|
---|
1480 | register int dwords
|
---|
1481 | );
|
---|
1482 |
|
---|
1483 | void XAAMoveDWORDS_FixedSrc(
|
---|
1484 | register CARD32* dest,
|
---|
1485 | register CARD32* src,
|
---|
1486 | register int dwords
|
---|
1487 | );
|
---|
1488 |
|
---|
1489 | void XAAMoveDWORDS(
|
---|
1490 | register CARD32* dest,
|
---|
1491 | register CARD32* src,
|
---|
1492 | register int dwords
|
---|
1493 | );
|
---|
1494 |
|
---|
1495 | int
|
---|
1496 | XAAGetRectClipBoxes(
|
---|
1497 | GCPtr pGC,
|
---|
1498 | BoxPtr pboxClippedBase,
|
---|
1499 | int nrectFill,
|
---|
1500 | xRectangle *prectInit
|
---|
1501 | );
|
---|
1502 |
|
---|
1503 | void
|
---|
1504 | XAASetupOverlay8_32Planar(ScreenPtr);
|
---|
1505 |
|
---|
1506 | void
|
---|
1507 | XAAPolyFillArcSolid(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs);
|
---|
1508 |
|
---|
1509 | XAACacheInfoPtr
|
---|
1510 | XAACacheTile(ScrnInfoPtr Scrn, PixmapPtr pPix);
|
---|
1511 |
|
---|
1512 | XAACacheInfoPtr
|
---|
1513 | XAACacheMonoStipple(ScrnInfoPtr Scrn, PixmapPtr pPix);
|
---|
1514 |
|
---|
1515 | XAACacheInfoPtr
|
---|
1516 | XAACachePlanarMonoStipple(ScrnInfoPtr Scrn, PixmapPtr pPix);
|
---|
1517 |
|
---|
1518 | typedef XAACacheInfoPtr (*XAACachePlanarMonoStippleProc)(ScrnInfoPtr, PixmapPtr);
|
---|
1519 | XAACachePlanarMonoStippleProc XAAGetCachePlanarMonoStipple(void);
|
---|
1520 |
|
---|
1521 | XAACacheInfoPtr
|
---|
1522 | XAACacheStipple(ScrnInfoPtr Scrn, PixmapPtr pPix, int fg, int bg);
|
---|
1523 |
|
---|
1524 | XAACacheInfoPtr
|
---|
1525 | XAACacheMono8x8Pattern(ScrnInfoPtr Scrn, int pat0, int pat1);
|
---|
1526 |
|
---|
1527 | XAACacheInfoPtr
|
---|
1528 | XAACacheColor8x8Pattern(ScrnInfoPtr Scrn, PixmapPtr pPix, int fg, int bg);
|
---|
1529 |
|
---|
1530 | void
|
---|
1531 | XAATileCache(ScrnInfoPtr pScrn, XAACacheInfoPtr pCache, int w, int h);
|
---|
1532 |
|
---|
1533 | void XAAClosePixmapCache(ScreenPtr pScreen);
|
---|
1534 | void XAAInvalidatePixmapCache(ScreenPtr pScreen);
|
---|
1535 |
|
---|
1536 | Bool XAACheckStippleReducibility(PixmapPtr pPixmap);
|
---|
1537 | Bool XAACheckTileReducibility(PixmapPtr pPixmap, Bool checkMono);
|
---|
1538 |
|
---|
1539 | int XAAStippledFillChooser(GCPtr pGC);
|
---|
1540 | int XAAOpaqueStippledFillChooser(GCPtr pGC);
|
---|
1541 | int XAATiledFillChooser(GCPtr pGC);
|
---|
1542 |
|
---|
1543 | void XAAMoveInOffscreenPixmaps(ScreenPtr pScreen);
|
---|
1544 | void XAAMoveOutOffscreenPixmaps(ScreenPtr pScreen);
|
---|
1545 | void XAARemoveAreaCallback(FBAreaPtr area);
|
---|
1546 | void XAAMoveOutOffscreenPixmap(PixmapPtr pPix);
|
---|
1547 | Bool XAAInitStateWrap(ScreenPtr pScreen, XAAInfoRecPtr infoRec);
|
---|
1548 |
|
---|
1549 | #ifdef RENDER
|
---|
1550 | void
|
---|
1551 | XAAComposite (CARD8 op,
|
---|
1552 | PicturePtr pSrc,
|
---|
1553 | PicturePtr pMask,
|
---|
1554 | PicturePtr pDst,
|
---|
1555 | INT16 xSrc,
|
---|
1556 | INT16 ySrc,
|
---|
1557 | INT16 xMask,
|
---|
1558 | INT16 yMask,
|
---|
1559 | INT16 xDst,
|
---|
1560 | INT16 yDst,
|
---|
1561 | CARD16 width,
|
---|
1562 | CARD16 height);
|
---|
1563 |
|
---|
1564 |
|
---|
1565 | Bool
|
---|
1566 | XAADoComposite (CARD8 op,
|
---|
1567 | PicturePtr pSrc,
|
---|
1568 | PicturePtr pMask,
|
---|
1569 | PicturePtr pDst,
|
---|
1570 | INT16 xSrc,
|
---|
1571 | INT16 ySrc,
|
---|
1572 | INT16 xMask,
|
---|
1573 | INT16 yMask,
|
---|
1574 | INT16 xDst,
|
---|
1575 | INT16 yDst,
|
---|
1576 | CARD16 width,
|
---|
1577 | CARD16 height);
|
---|
1578 |
|
---|
1579 |
|
---|
1580 | void
|
---|
1581 | XAAGlyphs (CARD8 op,
|
---|
1582 | PicturePtr pSrc,
|
---|
1583 | PicturePtr pDst,
|
---|
1584 | PictFormatPtr maskFormat,
|
---|
1585 | INT16 xSrc,
|
---|
1586 | INT16 ySrc,
|
---|
1587 | int nlist,
|
---|
1588 | GlyphListPtr list,
|
---|
1589 | GlyphPtr *glyphs);
|
---|
1590 |
|
---|
1591 | Bool
|
---|
1592 | XAADoGlyphs (CARD8 op,
|
---|
1593 | PicturePtr pSrc,
|
---|
1594 | PicturePtr pDst,
|
---|
1595 | PictFormatPtr maskFormat,
|
---|
1596 | INT16 xSrc,
|
---|
1597 | INT16 ySrc,
|
---|
1598 | int nlist,
|
---|
1599 | GlyphListPtr list,
|
---|
1600 | GlyphPtr *glyphs);
|
---|
1601 |
|
---|
1602 |
|
---|
1603 |
|
---|
1604 | /* helpers */
|
---|
1605 | void
|
---|
1606 | XAA_888_plus_PICT_a8_to_8888 (
|
---|
1607 | CARD32 color,
|
---|
1608 | CARD8 *alphaPtr, /* in bytes */
|
---|
1609 | int alphaPitch,
|
---|
1610 | CARD32 *dstPtr,
|
---|
1611 | int dstPitch, /* in dwords */
|
---|
1612 | int width,
|
---|
1613 | int height
|
---|
1614 | );
|
---|
1615 |
|
---|
1616 | Bool
|
---|
1617 | XAAGetRGBAFromPixel(
|
---|
1618 | CARD32 pixel,
|
---|
1619 | CARD16 *red,
|
---|
1620 | CARD16 *green,
|
---|
1621 | CARD16 *blue,
|
---|
1622 | CARD16 *alpha,
|
---|
1623 | CARD32 format
|
---|
1624 | );
|
---|
1625 |
|
---|
1626 |
|
---|
1627 | Bool
|
---|
1628 | XAAGetPixelFromRGBA (
|
---|
1629 | CARD32 *pixel,
|
---|
1630 | CARD16 red,
|
---|
1631 | CARD16 green,
|
---|
1632 | CARD16 blue,
|
---|
1633 | CARD16 alpha,
|
---|
1634 | CARD32 format
|
---|
1635 | );
|
---|
1636 |
|
---|
1637 | #endif
|
---|
1638 |
|
---|
1639 | /* XXX should be static */
|
---|
1640 | extern GCOps XAAFallbackOps;
|
---|
1641 | extern GCOps *XAAGetFallbackOps(void);
|
---|
1642 | extern GCFuncs XAAGCFuncs;
|
---|
1643 | extern int XAAGetScreenIndex(void);
|
---|
1644 | extern int XAAGetGCIndex(void);
|
---|
1645 | extern int XAAGetPixmapIndex(void);
|
---|
1646 |
|
---|
1647 | extern unsigned int XAAShiftMasks[32];
|
---|
1648 |
|
---|
1649 | extern unsigned int byte_expand3[256], byte_reversed_expand3[256];
|
---|
1650 |
|
---|
1651 | CARD32 XAAReverseBitOrder(CARD32 data);
|
---|
1652 |
|
---|
1653 | #define GET_XAASCREENPTR_FROM_SCREEN(pScreen)\
|
---|
1654 | (pScreen)->devPrivates[XAAGetScreenIndex()].ptr
|
---|
1655 |
|
---|
1656 | #define GET_XAASCREENPTR_FROM_GC(pGC)\
|
---|
1657 | (pGC)->pScreen->devPrivates[XAAGetScreenIndex()].ptr
|
---|
1658 |
|
---|
1659 | #define GET_XAASCREENPTR_FROM_DRAWABLE(pDraw)\
|
---|
1660 | (pDraw)->pScreen->devPrivates[XAAGetScreenIndex()].ptr
|
---|
1661 |
|
---|
1662 | #define GET_XAAINFORECPTR_FROM_SCREEN(pScreen)\
|
---|
1663 | ((XAAScreenPtr)((pScreen)->devPrivates[XAAGetScreenIndex()].ptr))->AccelInfoRec
|
---|
1664 |
|
---|
1665 | #define GET_XAAINFORECPTR_FROM_GC(pGC)\
|
---|
1666 | ((XAAScreenPtr)((pGC)->pScreen->devPrivates[XAAGetScreenIndex()].ptr))->AccelInfoRec
|
---|
1667 |
|
---|
1668 | #define GET_XAAINFORECPTR_FROM_DRAWABLE(pDraw)\
|
---|
1669 | ((XAAScreenPtr)((pDraw)->pScreen->devPrivates[XAAGetScreenIndex()].ptr))->AccelInfoRec
|
---|
1670 |
|
---|
1671 | #define GET_XAAINFORECPTR_FROM_SCRNINFOPTR(pScrn)\
|
---|
1672 | ((XAAScreenPtr)((pScrn)->pScreen->devPrivates[XAAGetScreenIndex()].ptr))->AccelInfoRec
|
---|
1673 |
|
---|
1674 | #define XAA_GET_PIXMAP_PRIVATE(pix)\
|
---|
1675 | (XAAPixmapPtr)((pix)->devPrivates[XAAGetPixmapIndex()].ptr)
|
---|
1676 |
|
---|
1677 | #define CHECK_RGB_EQUAL(c) (!((((c) >> 8) ^ (c)) & 0xffff))
|
---|
1678 |
|
---|
1679 | #define CHECK_FG(pGC, flags) \
|
---|
1680 | (!(flags & RGB_EQUAL) || CHECK_RGB_EQUAL(pGC->fgPixel))
|
---|
1681 |
|
---|
1682 | #define CHECK_BG(pGC, flags) \
|
---|
1683 | (!(flags & RGB_EQUAL) || CHECK_RGB_EQUAL(pGC->bgPixel))
|
---|
1684 |
|
---|
1685 | #define CHECK_ROP(pGC, flags) \
|
---|
1686 | (!(flags & GXCOPY_ONLY) || (pGC->alu == GXcopy))
|
---|
1687 |
|
---|
1688 | #define CHECK_ROPSRC(pGC, flags) \
|
---|
1689 | (!(flags & ROP_NEEDS_SOURCE) || ((pGC->alu != GXclear) && \
|
---|
1690 | (pGC->alu != GXnoop) && (pGC->alu != GXinvert) && \
|
---|
1691 | (pGC->alu != GXset)))
|
---|
1692 |
|
---|
1693 | #define CHECK_PLANEMASK(pGC, flags) \
|
---|
1694 | (!(flags & NO_PLANEMASK) || \
|
---|
1695 | ((pGC->planemask & infoRec->FullPlanemasks[pGC->depth - 1]) == \
|
---|
1696 | infoRec->FullPlanemasks[pGC->depth - 1]))
|
---|
1697 |
|
---|
1698 | #define CHECK_COLORS(pGC, flags) \
|
---|
1699 | (!(flags & RGB_EQUAL) || \
|
---|
1700 | (CHECK_RGB_EQUAL(pGC->fgPixel) && CHECK_RGB_EQUAL(pGC->bgPixel)))
|
---|
1701 |
|
---|
1702 | #define CHECK_NO_GXCOPY(pGC, flags) \
|
---|
1703 | ((pGC->alu != GXcopy) || !(flags & NO_GXCOPY) || \
|
---|
1704 | ((pGC->planemask & infoRec->FullPlanemask) != infoRec->FullPlanemask))
|
---|
1705 |
|
---|
1706 | #define IS_OFFSCREEN_PIXMAP(pPix)\
|
---|
1707 | ((XAA_GET_PIXMAP_PRIVATE((PixmapPtr)(pPix)))->offscreenArea)
|
---|
1708 |
|
---|
1709 | #define PIXMAP_IS_SHARED(pPix)\
|
---|
1710 | ((XAA_GET_PIXMAP_PRIVATE((PixmapPtr)(pPix)))->flags & SHARED_PIXMAP)
|
---|
1711 |
|
---|
1712 | #define OFFSCREEN_PIXMAP_LOCKED(pPix)\
|
---|
1713 | ((XAA_GET_PIXMAP_PRIVATE((PixmapPtr)(pPix)))->flags & LOCKED_PIXMAP)
|
---|
1714 |
|
---|
1715 | #define XAA_DEPTH_BUG(pGC) \
|
---|
1716 | ((pGC->depth == 32) && (pGC->bgPixel == 0xffffffff))
|
---|
1717 |
|
---|
1718 | #define DELIST_OFFSCREEN_PIXMAP(pPix) { \
|
---|
1719 | PixmapLinkPtr _pLink, _prev; \
|
---|
1720 | _pLink = infoRec->OffscreenPixmaps; \
|
---|
1721 | _prev = NULL; \
|
---|
1722 | while(_pLink) { \
|
---|
1723 | if(_pLink->pPix == pPix) { \
|
---|
1724 | if(_prev) _prev->next = _pLink->next; \
|
---|
1725 | else infoRec->OffscreenPixmaps = _pLink->next; \
|
---|
1726 | xfree(_pLink); \
|
---|
1727 | break; \
|
---|
1728 | } \
|
---|
1729 | _prev = _pLink; \
|
---|
1730 | _pLink = _pLink->next; \
|
---|
1731 | }}
|
---|
1732 |
|
---|
1733 |
|
---|
1734 | #define SWAP_BITS_IN_BYTES(v) \
|
---|
1735 | (((0x01010101 & (v)) << 7) | ((0x02020202 & (v)) << 5) | \
|
---|
1736 | ((0x04040404 & (v)) << 3) | ((0x08080808 & (v)) << 1) | \
|
---|
1737 | ((0x10101010 & (v)) >> 1) | ((0x20202020 & (v)) >> 3) | \
|
---|
1738 | ((0x40404040 & (v)) >> 5) | ((0x80808080 & (v)) >> 7))
|
---|
1739 |
|
---|
1740 | /*
|
---|
1741 | * Moved XAAPixmapCachePrivate here from xaaPCache.c, since driver
|
---|
1742 | * replacements for CacheMonoStipple need access to it
|
---|
1743 | */
|
---|
1744 |
|
---|
1745 | typedef struct {
|
---|
1746 | int Num512x512;
|
---|
1747 | int Current512;
|
---|
1748 | XAACacheInfoPtr Info512;
|
---|
1749 | int Num256x256;
|
---|
1750 | int Current256;
|
---|
1751 | XAACacheInfoPtr Info256;
|
---|
1752 | int Num128x128;
|
---|
1753 | int Current128;
|
---|
1754 | XAACacheInfoPtr Info128;
|
---|
1755 | int NumMono;
|
---|
1756 | int CurrentMono;
|
---|
1757 | XAACacheInfoPtr InfoMono;
|
---|
1758 | int NumColor;
|
---|
1759 | int CurrentColor;
|
---|
1760 | XAACacheInfoPtr InfoColor;
|
---|
1761 | int NumPartial;
|
---|
1762 | int CurrentPartial;
|
---|
1763 | XAACacheInfoPtr InfoPartial;
|
---|
1764 | DDXPointRec MonoOffsets[64];
|
---|
1765 | DDXPointRec ColorOffsets[64];
|
---|
1766 | } XAAPixmapCachePrivate, *XAAPixmapCachePrivatePtr;
|
---|
1767 |
|
---|
1768 |
|
---|
1769 | #endif /* _XAALOCAL_H */
|
---|