VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/micmap.h@ 81245

最後變更 在這個檔案從81245是 54163,由 vboxsync 提交於 10 年 前

Additions/x11/vboxvideo: support X.Org Server 1.17 (still untested).

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.5 KB
 
1
2#include "colormapst.h"
3
4#ifndef _MICMAP_H_
5#define _MICMAP_H_
6
7#define GetInstalledmiColormap(s) \
8 ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
9#define SetInstalledmiColormap(s,c) \
10 (dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
11
12extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
13
14#define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
15
16typedef Bool (*miInitVisualsProcPtr) (VisualPtr *, DepthPtr *, int *, int *,
17 int *, VisualID *, unsigned long, int,
18 int);
19
20extern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen,
21 Colormap * pmaps);
22extern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
23extern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
24
25extern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *,
26 unsigned short *, VisualPtr);
27extern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
28extern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *,
29 xColorItem *);
30extern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
31extern _X_EXPORT void miClearVisualTypes(void);
32extern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
33extern _X_EXPORT Bool miSetPixmapDepths(void);
34extern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals,
35 int bitsPerRGB, int preferredCVC,
36 Pixel redMask, Pixel greenMask,
37 Pixel blueMask);
38extern _X_EXPORT int miGetDefaultVisualMask(int);
39extern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *,
40 int *, VisualID *, unsigned long, int, int);
41
42#define MAX_PSEUDO_DEPTH 10
43#define MIN_TRUE_DEPTH 6
44
45#define StaticGrayMask (1 << StaticGray)
46#define GrayScaleMask (1 << GrayScale)
47#define StaticColorMask (1 << StaticColor)
48#define PseudoColorMask (1 << PseudoColor)
49#define TrueColorMask (1 << TrueColor)
50#define DirectColorMask (1 << DirectColor)
51
52#define ALL_VISUALS (StaticGrayMask|\
53 GrayScaleMask|\
54 StaticColorMask|\
55 PseudoColorMask|\
56 TrueColorMask|\
57 DirectColorMask)
58
59#define LARGE_VISUALS (TrueColorMask|\
60 DirectColorMask)
61
62#define SMALL_VISUALS (StaticGrayMask|\
63 GrayScaleMask|\
64 StaticColorMask|\
65 PseudoColorMask)
66
67#endif /* _MICMAP_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette