Home
last modified time | relevance | path

Searched refs:pIndexed (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/xserver/render/
H A Dmiindex.c174 FindBestColor(miIndexedPtr pIndexed, Pixel * pixels, int num, in FindBestColor() argument
184 CARD32 v = pIndexed->rgba[pixel]; in FindBestColor()
203 FindBestGray(miIndexedPtr pIndexed, Pixel * pixels, int num, int gray) in FindBestGray() argument
213 CARD32 v = pIndexed->rgba[pixel]; in FindBestGray()
232 miIndexedPtr pIndexed; in miInitIndexed() local
252 pIndexed = malloc(sizeof(miIndexedRec)); in miInitIndexed()
253 if (!pIndexed) in miInitIndexed()
259 free(pIndexed); in miInitIndexed()
274 pIndexed->rgba[p] = (0xff000000 | in miInitIndexed()
286 pIndexed->color = FALSE; in miInitIndexed()
[all …]
H A Dmipict.c395 miIndexedPtr pIndexed; in miRenderColorToPixel() local
410 pIndexed = (miIndexedPtr) (format->index.devPrivate); in miRenderColorToPixel()
411 if (pIndexed->color) { in miRenderColorToPixel()
415 *pixel = miIndexToEnt15(pIndexed, (r << 10) | (g << 5) | b); in miRenderColorToPixel()
421 *pixel = miIndexToEntY24(pIndexed, (r << 16) | (g << 8) | b); in miRenderColorToPixel()
475 miIndexedPtr pIndexed; in miRenderPixelToColor() local
489 pIndexed = (miIndexedPtr) (format->index.devPrivate); in miRenderPixelToColor()
490 pixel = pIndexed->rgba[pixel & (MI_MAX_INDEXED - 1)]; in miRenderPixelToColor()