1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86cmap.h,v 1.7 2001/05/06 00:49:12 mvojkovi Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _XF86CMAP_H
|
---|
4 | #define _XF86CMAP_H
|
---|
5 |
|
---|
6 | #include "xf86str.h"
|
---|
7 | #include "colormapst.h"
|
---|
8 |
|
---|
9 | #define CMAP_PALETTED_TRUECOLOR 0x0000001
|
---|
10 | #define CMAP_RELOAD_ON_MODE_SWITCH 0x0000002
|
---|
11 | #define CMAP_LOAD_EVEN_IF_OFFSCREEN 0x0000004
|
---|
12 |
|
---|
13 | typedef void (*LoadPaletteFuncPtr)(
|
---|
14 | ScrnInfoPtr pScrn,
|
---|
15 | int numColors,
|
---|
16 | int *indicies,
|
---|
17 | LOCO *colors,
|
---|
18 | VisualPtr pVisual
|
---|
19 | );
|
---|
20 |
|
---|
21 | typedef void (*SetOverscanFuncPtr)(
|
---|
22 | ScrnInfoPtr pScrn,
|
---|
23 | int Index
|
---|
24 | );
|
---|
25 |
|
---|
26 | Bool xf86HandleColormaps(
|
---|
27 | ScreenPtr pScreen,
|
---|
28 | int maxCol,
|
---|
29 | int sigRGBbits,
|
---|
30 | LoadPaletteFuncPtr loadPalette,
|
---|
31 | SetOverscanFuncPtr setOverscan,
|
---|
32 | unsigned int flags
|
---|
33 | );
|
---|
34 |
|
---|
35 | int
|
---|
36 | xf86ChangeGamma(
|
---|
37 | ScreenPtr pScreen,
|
---|
38 | Gamma newGamma
|
---|
39 | );
|
---|
40 |
|
---|
41 | int
|
---|
42 | xf86ChangeGammaRamp(
|
---|
43 | ScreenPtr pScreen,
|
---|
44 | int size,
|
---|
45 | unsigned short *red,
|
---|
46 | unsigned short *green,
|
---|
47 | unsigned short *blue
|
---|
48 | );
|
---|
49 |
|
---|
50 | int xf86GetGammaRampSize(ScreenPtr pScreen);
|
---|
51 |
|
---|
52 | int
|
---|
53 | xf86GetGammaRamp(
|
---|
54 | ScreenPtr pScreen,
|
---|
55 | int size,
|
---|
56 | unsigned short *red,
|
---|
57 | unsigned short *green,
|
---|
58 | unsigned short *blue
|
---|
59 | );
|
---|
60 |
|
---|
61 | #endif /* _XF86CMAP_H */
|
---|
62 |
|
---|