Lines Matching full:pixel
44 miBuildRenderColormap(ColormapPtr pColormap, Pixel * pixels, int *nump) in miBuildRenderColormap()
48 Pixel pixel; in miBuildRenderColormap() local
146 pixel = 0; in miBuildRenderColormap()
151 &blue, &pixel, 0) != Success) in miBuildRenderColormap()
153 used[pixel] = TRUE; in miBuildRenderColormap()
156 pixel = 0; in miBuildRenderColormap()
158 if (AllocColor(pColormap, &red, &green, &blue, &pixel, 0) != Success) in miBuildRenderColormap()
160 used[pixel] = TRUE; in miBuildRenderColormap()
173 static Pixel
174 FindBestColor(miIndexedPtr pIndexed, Pixel * pixels, int num, in FindBestColor()
177 Pixel best = pixels[0]; in FindBestColor()
183 Pixel pixel = *pixels++; in FindBestColor() local
184 CARD32 v = pIndexed->rgba[pixel]; in FindBestColor()
195 best = pixel; in FindBestColor()
202 static Pixel
203 FindBestGray(miIndexedPtr pIndexed, Pixel * pixels, int num, int gray) in FindBestGray()
205 Pixel best = pixels[0]; in FindBestGray()
212 Pixel pixel = *pixels++; in FindBestGray() local
213 CARD32 v = pIndexed->rgba[pixel]; in FindBestGray()
221 best = pixel; in FindBestGray()
233 Pixel pixels[MI_MAX_INDEXED]; in miInitIndexed()
237 Pixel p, r, g, b; in miInitIndexed()
264 * Build mapping from pixel value to ARGB in miInitIndexed()
269 pFormat->index.pValues[i].pixel = p; in miInitIndexed()
281 * Build mapping from RGB to pixel value. This could probably be in miInitIndexed()
323 pIndexed->rgba[pdef->pixel] = (0xff000000 | in miUpdateIndexed()