2003-11-14 17:48:57 +01:00
|
|
|
|
2005-07-03 09:02:09 +02:00
|
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
|
|
#include <xorg-config.h>
|
|
|
|
#endif
|
|
|
|
|
2003-11-14 17:48:57 +01:00
|
|
|
#ifndef _CFB8_32_H
|
|
|
|
#define _CFB8_32_H
|
|
|
|
|
|
|
|
#include "gcstruct.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
GCOps *Ops8bpp;
|
|
|
|
GCOps *Ops32bpp;
|
|
|
|
unsigned long changes;
|
|
|
|
Bool OpsAre8bpp;
|
|
|
|
} cfb8_32GCRec, *cfb8_32GCPtr;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned char key;
|
|
|
|
void (*EnableDisableFBAccess)(int scrnIndex, Bool enable);
|
|
|
|
pointer visualData;
|
|
|
|
} cfb8_32ScreenRec, *cfb8_32ScreenPtr;
|
|
|
|
|
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
extern DevPrivateKey cfb8_32GetGCPrivateKey(void);
|
|
|
|
extern DevPrivateKey cfb8_32GetScreenPrivateKey(void);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
RegionPtr
|
|
|
|
cfb8_32CopyArea(
|
|
|
|
DrawablePtr pSrcDraw,
|
|
|
|
DrawablePtr pDstDraw,
|
|
|
|
GC *pGC,
|
|
|
|
int srcx, int srcy,
|
|
|
|
int width, int height,
|
|
|
|
int dstx, int dsty
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfbDoBitblt8To32(
|
|
|
|
DrawablePtr pSrc,
|
|
|
|
DrawablePtr pDst,
|
|
|
|
int rop,
|
|
|
|
RegionPtr prgnDst,
|
|
|
|
DDXPointPtr pptSrc,
|
2003-11-25 20:29:01 +01:00
|
|
|
unsigned long planemask
|
2003-11-14 17:48:57 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfbDoBitblt32To8(
|
|
|
|
DrawablePtr pSrc,
|
|
|
|
DrawablePtr pDst,
|
|
|
|
int rop,
|
|
|
|
RegionPtr prgnDst,
|
|
|
|
DDXPointPtr pptSrc,
|
2003-11-25 20:29:01 +01:00
|
|
|
unsigned long planemask
|
2003-11-14 17:48:57 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32ValidateGC8(
|
|
|
|
GCPtr pGC,
|
|
|
|
unsigned long changes,
|
|
|
|
DrawablePtr pDrawable
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32ValidateGC32(
|
|
|
|
GCPtr pGC,
|
|
|
|
unsigned long changes,
|
|
|
|
DrawablePtr pDrawable
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb32ValidateGC_Underlay(
|
|
|
|
GCPtr pGC,
|
|
|
|
unsigned long changes,
|
|
|
|
DrawablePtr pDrawable
|
|
|
|
);
|
|
|
|
|
|
|
|
Bool cfb8_32CreateGC(GCPtr pGC);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32GetSpans(
|
|
|
|
DrawablePtr pDraw,
|
|
|
|
int wMax,
|
|
|
|
DDXPointPtr ppt,
|
|
|
|
int *pwidth,
|
|
|
|
int nspans,
|
|
|
|
char *pchardstStart
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32PutImage (
|
|
|
|
DrawablePtr pDraw,
|
|
|
|
GCPtr pGC,
|
|
|
|
int depth,
|
|
|
|
int x, int y, int w, int h,
|
|
|
|
int leftPad,
|
|
|
|
int format,
|
|
|
|
char *pImage
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32GetImage (
|
|
|
|
DrawablePtr pDraw,
|
|
|
|
int sx, int sy, int w, int h,
|
|
|
|
unsigned int format,
|
|
|
|
unsigned long planeMask,
|
|
|
|
char *pdstLine
|
|
|
|
);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
cfb8_32ScreenInit (
|
|
|
|
ScreenPtr pScreen,
|
|
|
|
pointer pbits,
|
|
|
|
int xsize, int ysize,
|
|
|
|
int dpix, int dpiy,
|
|
|
|
int width
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32FillBoxSolid8 (
|
|
|
|
DrawablePtr pDraw,
|
|
|
|
int nbox,
|
|
|
|
BoxPtr pBox,
|
|
|
|
unsigned long color
|
|
|
|
);
|
|
|
|
|
|
|
|
RegionPtr
|
|
|
|
cfb8_32CopyPlane(
|
|
|
|
DrawablePtr pSrc,
|
|
|
|
DrawablePtr pDst,
|
|
|
|
GCPtr pGC,
|
|
|
|
int srcx, int srcy,
|
|
|
|
int width, int height,
|
|
|
|
int dstx, int dsty,
|
|
|
|
unsigned long bitPlane
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfbDoBitblt8To8GXcopy(
|
|
|
|
DrawablePtr pSrc,
|
|
|
|
DrawablePtr pDst,
|
|
|
|
int rop,
|
|
|
|
RegionPtr prgnDst,
|
|
|
|
DDXPointPtr pptSrc,
|
2003-11-25 20:29:01 +01:00
|
|
|
unsigned long pm
|
2003-11-14 17:48:57 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfbDoBitblt24To24GXcopy(
|
|
|
|
DrawablePtr pSrc,
|
|
|
|
DrawablePtr pDst,
|
|
|
|
int rop,
|
|
|
|
RegionPtr prgnDst,
|
|
|
|
DDXPointPtr pptSrc,
|
2003-11-25 20:29:01 +01:00
|
|
|
unsigned long pm
|
2003-11-14 17:48:57 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
Bool cfb8_32CreateWindow(WindowPtr pWin);
|
|
|
|
Bool cfb8_32DestroyWindow(WindowPtr pWin);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
cfb8_32PositionWindow(
|
|
|
|
WindowPtr pWin,
|
|
|
|
int x, int y
|
|
|
|
);
|
|
|
|
|
|
|
|
void
|
|
|
|
cfb8_32CopyWindow(
|
|
|
|
WindowPtr pWin,
|
|
|
|
DDXPointRec ptOldOrg,
|
|
|
|
RegionPtr prgnSrc
|
|
|
|
);
|
|
|
|
|
|
|
|
Bool
|
|
|
|
cfb8_32ChangeWindowAttributes(
|
|
|
|
WindowPtr pWin,
|
|
|
|
unsigned long mask
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
#define CFB8_32_GET_GC_PRIVATE(pGC) ((cfb8_32GCPtr) \
|
|
|
|
dixLookupPrivate(&(pGC)->devPrivates, cfb8_32GetGCPrivateKey()))
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2007-08-28 15:28:25 +02:00
|
|
|
#define CFB8_32_GET_SCREEN_PRIVATE(pScreen) ((cfb8_32ScreenPtr) \
|
|
|
|
dixLookupPrivate(&(pScreen)->devPrivates, cfb8_32GetScreenPrivateKey()))
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
Bool xf86Overlay8Plus32Init (ScreenPtr pScreen);
|
|
|
|
|
|
|
|
#endif /* _CFB8_32_H */
|