Home
last modified time | relevance | path

Searched refs:pVisual (Results 1 – 25 of 52) sorted by relevance

123

/OK3568_Linux_fs/external/xserver/mi/
H A Dmicmap.c88 unsigned short *pblue, VisualPtr pVisual) in miResolveColor() argument
90 int shift = 16 - pVisual->bitsPerRGBValue; in miResolveColor()
91 unsigned lim = (1 << pVisual->bitsPerRGBValue) - 1; in miResolveColor()
93 if ((pVisual->class | DynamicClass) == GrayScale) { in miResolveColor()
110 VisualPtr pVisual; in miInitializeColormap() local
113 pVisual = pmap->pVisual; in miInitializeColormap()
114 lim = (1 << pVisual->bitsPerRGBValue) - 1; in miInitializeColormap()
115 shift = 16 - pVisual->bitsPerRGBValue; in miInitializeColormap()
116 maxent = pVisual->ColormapEntries - 1; in miInitializeColormap()
117 if (pVisual->class == TrueColor) { in miInitializeColormap()
[all …]
H A Dmisprite.c90 VisualPtr pVisual; member
289 VisualPtr pVisual; in miSpriteInitialize() local
314 for (pVisual = pScreen->visuals; in miSpriteInitialize()
315 pVisual->vid != pScreen->rootVisual; pVisual++); in miSpriteInitialize()
316 pScreenPriv->pVisual = pVisual; in miSpriteInitialize()
594 VisualPtr pVisual; in miSpriteStoreColors() local
606 pVisual = pMap->pVisual; in miSpriteStoreColors()
607 if (pVisual->class == DirectColor) { in miSpriteStoreColors()
610 #define MaskMatch(a,b,mask) (((a) & (pVisual->mask)) == ((b) & (pVisual->mask))) in miSpriteStoreColors()
/OK3568_Linux_fs/external/xserver/hw/xnest/
H A DColor.c48 VisualPtr pVisual; in xnestCreateColormap() local
54 pVisual = pCmap->pVisual; in xnestCreateColormap()
55 ncolors = pVisual->ColormapEntries; in xnestCreateColormap()
60 xnestVisual(pVisual), in xnestCreateColormap()
61 (pVisual->class & DynamicClass) ? AllocAll : AllocNone); in xnestCreateColormap()
63 switch (pVisual->class) { in xnestCreateColormap()
93 redInc = lowbit(pVisual->redMask); in xnestCreateColormap()
94 greenInc = lowbit(pVisual->greenMask); in xnestCreateColormap()
95 blueInc = lowbit(pVisual->blueMask); in xnestCreateColormap()
99 if (red > pVisual->redMask) in xnestCreateColormap()
[all …]
H A DVisual.c30 xnestVisual(VisualPtr pVisual) in xnestVisual() argument
35 if (pVisual->class == xnestVisuals[i].class && in xnestVisual()
36 pVisual->bitsPerRGBValue == xnestVisuals[i].bits_per_rgb && in xnestVisual()
37 pVisual->ColormapEntries == xnestVisuals[i].colormap_size && in xnestVisual()
38 pVisual->nplanes == xnestVisuals[i].depth && in xnestVisual()
39 pVisual->redMask == xnestVisuals[i].red_mask && in xnestVisual()
40 pVisual->greenMask == xnestVisuals[i].green_mask && in xnestVisual()
41 pVisual->blueMask == xnestVisuals[i].blue_mask) in xnestVisual()
H A DVisual.h18 Visual *xnestVisual(VisualPtr pVisual);
/OK3568_Linux_fs/external/xserver/dix/
H A Dcolormap.c238 CreateColormap(Colormap mid, ScreenPtr pScreen, VisualPtr pVisual, in CreateColormap() argument
248 class = pVisual->class; in CreateColormap()
253 size = pVisual->ColormapEntries; in CreateColormap()
286 pmap->pVisual = pVisual; in CreateColormap()
289 size = NUMRED(pVisual); in CreateColormap()
314 pmap->freeGreen = NUMGREEN(pVisual); in CreateColormap()
320 pmap->freeBlue = NUMBLUE(pVisual); in CreateColormap()
424 for (pent = &pmap->red[pmap->pVisual->ColormapEntries - 1]; in FreeColormap()
535 VisualPtr pVisual; in CopyColormapAndFree() local
538 pVisual = pSrc->pVisual; in CopyColormapAndFree()
[all …]
/OK3568_Linux_fs/external/xserver/hw/dmx/
H A Ddmxvisual.c51 VisualPtr pVisual,
56 dmxLookupGLXVisual(ScreenPtr pScreen, VisualPtr pVisual) in dmxLookupGLXVisual() argument
62 vid = glxMatchVisualInConfigList(pScreen, pVisual, in dmxLookupGLXVisual()
79 dmxLookupVisual(ScreenPtr pScreen, VisualPtr pVisual) in dmxLookupVisual() argument
92 if ((retval = dmxLookupGLXVisual(pScreen, pVisual))) in dmxLookupVisual()
97 if (pVisual->class == dmxScreen->beVisuals[i].class && in dmxLookupVisual()
98 pVisual->bitsPerRGBValue == dmxScreen->beVisuals[i].bits_per_rgb && in dmxLookupVisual()
99 pVisual->ColormapEntries == dmxScreen->beVisuals[i].colormap_size && in dmxLookupVisual()
100 pVisual->nplanes == dmxScreen->beVisuals[i].depth && in dmxLookupVisual()
101 pVisual->redMask == dmxScreen->beVisuals[i].red_mask && in dmxLookupVisual()
[all …]
H A Ddmxcmap.c71 VisualPtr pVisual = pColormap->pVisual; in dmxBECreateColormap() local
72 Visual *visual = dmxLookupVisual(pScreen, pVisual); in dmxBECreateColormap()
78 (pVisual->class & DynamicClass ? in dmxBECreateColormap()
179 if (dmxScreen->beDisplay && (pColormap->pVisual->class & DynamicClass)) { in dmxStoreColors()
H A Ddmxvisual.h42 extern Visual *dmxLookupVisual(ScreenPtr pScreen, VisualPtr pVisual);
/OK3568_Linux_fs/external/xserver/hw/xfree86/common/
H A Dxf86cmap.c254 CMapColormapUseMax(VisualPtr pVisual, CMapScreenPtr pScreenPriv) in CMapColormapUseMax() argument
256 if (pVisual->nplanes > 16) in CMapColormapUseMax()
258 return ((1 << pVisual->nplanes) > pScreenPriv->maxColors); in CMapColormapUseMax()
272 if (CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapAllocateColormapPrivate()
273 numColors = pmap->pVisual->ColormapEntries; in CMapAllocateColormapPrivate()
275 numColors = 1 << pmap->pVisual->nplanes; in CMapAllocateColormapPrivate()
361 VisualPtr pVisual = pmap->pVisual; in CMapStoreColors() local
373 if ((pVisual->class == TrueColor) || in CMapStoreColors()
374 (pVisual->class == StaticColor) || (pVisual->class == StaticGray)) in CMapStoreColors()
377 if (pVisual->class == DirectColor) { in CMapStoreColors()
[all …]
H A Dxf86DGA.c105 VisualPtr pVisual; member
256 free(tmp->pVisual); in FreeMarkedVisuals()
296 VisualPtr pVisual = pmap->pVisual; in DGADestroyColormap() local
302 if (curr->pVisual == pVisual) { in DGADestroyColormap()
684 VisualPtr pVisual; in DGACreateColormap() local
696 if (!(pVisual = malloc(sizeof(VisualRec)))) in DGACreateColormap()
699 pVisual->vid = FakeClientID(0); in DGACreateColormap()
700 pVisual->class = pMode->visualClass; in DGACreateColormap()
701 pVisual->nplanes = pMode->depth; in DGACreateColormap()
702 pVisual->ColormapEntries = 1 << pMode->depth; in DGACreateColormap()
[all …]
/OK3568_Linux_fs/external/xserver/render/
H A Dmiindex.c59 int avail = pColormap->pVisual->ColormapEntries; in miBuildRenderColormap()
64 (pColormap->pVisual->class | DynamicClass) == PseudoColor) in miBuildRenderColormap()
105 if ((pColormap->pVisual->class | DynamicClass) == PseudoColor) { in miBuildRenderColormap()
107 cube * cube * cube < pColormap->pVisual->ColormapEntries; in miBuildRenderColormap()
120 needed = pColormap->pVisual->ColormapEntries - (cube * cube * cube); in miBuildRenderColormap()
127 gray = pColormap->pVisual->ColormapEntries; in miBuildRenderColormap()
142 memset(used, '\0', pColormap->pVisual->ColormapEntries * sizeof(Bool)); in miBuildRenderColormap()
163 for (i = 0; i < pColormap->pVisual->ColormapEntries; i++) in miBuildRenderColormap()
231 VisualPtr pVisual = pColormap->pVisual; in miInitIndexed() local
239 if (pVisual->ColormapEntries > MI_MAX_INDEXED) in miInitIndexed()
[all …]
H A Dpicture.c132 visualDepth(ScreenPtr pScreen, VisualPtr pVisual) in visualDepth() argument
140 if (pDepth->vids[v] == pVisual->vid) in visualDepth()
174 VisualPtr pVisual; in PictureCreateDefaultFormats() local
210 pVisual = &pScreen->visuals[v]; in PictureCreateDefaultFormats()
211 depth = visualDepth(pScreen, pVisual); in PictureCreateDefaultFormats()
215 switch (pVisual->class) { in PictureCreateDefaultFormats()
218 r = Ones(pVisual->redMask); in PictureCreateDefaultFormats()
219 g = Ones(pVisual->greenMask); in PictureCreateDefaultFormats()
220 b = Ones(pVisual->blueMask); in PictureCreateDefaultFormats()
226 if (pVisual->offsetBlue == 0 && in PictureCreateDefaultFormats()
[all …]
/OK3568_Linux_fs/external/xserver/Xext/
H A DpanoramiX.c66 VisualPtr pVisual, ScreenPtr pMatchScreen);
603 VisualPtr pVisual; in PanoramiXCreateConnectionBlock() local
658 for (pVisual = PanoramiXVisuals; in PanoramiXCreateConnectionBlock()
659 pVisual->vid != visual->visualID; pVisual++); in PanoramiXCreateConnectionBlock()
661 visual->class = pVisual->class; in PanoramiXCreateConnectionBlock()
662 visual->bitsPerRGB = pVisual->bitsPerRGBValue; in PanoramiXCreateConnectionBlock()
663 visual->colormapEntries = pVisual->ColormapEntries; in PanoramiXCreateConnectionBlock()
664 visual->redMask = pVisual->redMask; in PanoramiXCreateConnectionBlock()
665 visual->greenMask = pVisual->greenMask; in PanoramiXCreateConnectionBlock()
666 visual->blueMask = pVisual->blueMask; in PanoramiXCreateConnectionBlock()
[all …]
/OK3568_Linux_fs/external/xserver/hw/dmx/glxProxy/
H A Dglxvisuals.c100 glxMatchVisualInConfigList(ScreenPtr pScreen, VisualPtr pVisual, in glxMatchVisualInConfigList() argument
116 if (pGlxVisual->vid == pVisual->vid) { in glxMatchVisualInConfigList()
131 glxMatchVisual(ScreenPtr pScreen, VisualPtr pVisual, ScreenPtr pMatchScreen) in glxMatchVisual() argument
143 vid = glxMatchVisualInConfigList(pScreen, pVisual, in glxMatchVisual()
H A Dglxvisuals.h40 VisualID glxMatchVisualInConfigList(ScreenPtr pScreen, VisualPtr pVisual,
43 VisualPtr glxMatchVisual(ScreenPtr pScreen, VisualPtr pVisual,
H A Dglxcmds.c158 VisualPtr pVisual; in CreateContext() local
232 pVisual = pScreen->visuals; in CreateContext()
233 for (i = 0; i < pScreen->numVisuals; i++, pVisual++) { in CreateContext()
234 if (pVisual->vid == visual) { in CreateContext()
273 pVisual = NULL; in CreateContext()
279 glxc->pVisual = pVisual; in CreateContext()
340 if (pVisual) { in CreateContext()
341 switch (pVisual->class) { in CreateContext()
910 if ((vid != glxc->pVisual->vid) || in MakeCurrent()
1026 if ((vid != glxc->pVisual->vid) || in MakeCurrent()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwincmap.c59 unsigned short *pblue, VisualPtr pVisual);
238 unsigned short *pblue, VisualPtr pVisual) in winResolveColor() argument
244 miResolveColor(pred, pgreen, pblue, pVisual); in winResolveColor()
492 VisualPtr pVisual = pScreenPriv->pRootVisual; in winCreateDefColormap() local
524 pVisual, in winCreateDefColormap()
526 (pVisual->class & DynamicClass) ? AllocNone : AllocAll, in winCreateDefColormap()
541 if (!(pVisual->class & DynamicClass)) { in winCreateDefColormap()
H A Dwinscrinit.c265 VisualPtr pVisual = NULL; in winFinishScreenInitFB() local
344 for (pVisual = pScreen->visuals; in winFinishScreenInitFB()
345 pVisual->vid != pScreen->rootVisual; pVisual++); in winFinishScreenInitFB()
346 pScreenPriv->pRootVisual = pVisual; in winFinishScreenInitFB()
/OK3568_Linux_fs/external/xserver/hw/kdrive/src/
H A Dkcmap.c207 VisualPtr pVisual; in KdStoreColors() local
223 pVisual = pCmap->pVisual; in KdStoreColors()
224 if ((pVisual->class | DynamicClass) == DirectColor) { in KdStoreColors()
/OK3568_Linux_fs/external/xserver/hw/vfb/
H A DInitOutput.c401 VisualPtr pVisual; in vfbInstallColormap() local
409 entries = pmap->pVisual->ColormapEntries; in vfbInstallColormap()
411 pVisual = pmap->pVisual; in vfbInstallColormap()
413 swapcopy32(pXWDHeader->visual_class, pVisual->class); in vfbInstallColormap()
414 swapcopy32(pXWDHeader->red_mask, pVisual->redMask); in vfbInstallColormap()
415 swapcopy32(pXWDHeader->green_mask, pVisual->greenMask); in vfbInstallColormap()
416 swapcopy32(pXWDHeader->blue_mask, pVisual->blueMask); in vfbInstallColormap()
417 swapcopy32(pXWDHeader->bits_per_rgb, pVisual->bitsPerRGBValue); in vfbInstallColormap()
418 swapcopy32(pXWDHeader->colormap_entries, pVisual->ColormapEntries); in vfbInstallColormap()
456 if ((pmap->pVisual->class | DynamicClass) == DirectColor) { in vfbStoreColors()
/OK3568_Linux_fs/external/xserver/hw/xwayland/
H A Dxwayland-glamor-xv.c196 VisualPtr pVisual; in xwl_glamor_xv_add_formats() local
207 pVisual = pScreen->visuals; in xwl_glamor_xv_add_formats()
210 if ((pVisual->class == Formats[i].class) && in xwl_glamor_xv_add_formats()
211 (pVisual->nplanes == Formats[i].depth)) { in xwl_glamor_xv_add_formats()
222 pf->visual = pVisual->vid; in xwl_glamor_xv_add_formats()
228 pVisual++; in xwl_glamor_xv_add_formats()
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbcmap_mi.c58 unsigned short *pgreen, unsigned short *pblue, VisualPtr pVisual) in fbResolveColor() argument
60 miResolveColor(pred, pgreen, pblue, pVisual); in fbResolveColor()
/OK3568_Linux_fs/external/xserver/hw/xfree86/ramdac/
H A Dxf86RamDacPriv.h13 LOCO * colors, VisualPtr pVisual);
/OK3568_Linux_fs/external/xserver/include/
H A Dcolormapst.h90 VisualPtr pVisual; member

123