| /xsrc/external/mit/libX11/dist/src/ |
| H A D | QuColors.c | 38 int ncolors) 47 SetReqLen(req, ncolors, ncolors); /* each pixel is a CARD32 */ 49 for (i = 0; i < ncolors; i++) 54 xrgb *color = Xmallocarray((size_t) ncolors, sizeof(xrgb)); 56 unsigned long nbytes = (size_t) ncolors * SIZEOF(xrgb); 60 for (i = 0; i < ncolors; i++) { 80 int ncolors) 90 while (ncolors >= n) { 93 ncolors 34 _XQueryColors(register Display * dpy,Colormap cmap,XColor * defs,int ncolors) argument 76 XQueryColors(register Display * const dpy,const Colormap cmap,XColor * defs,int ncolors) argument [all...] |
| H A D | AllCells.c | 39 unsigned int ncolors) /* CARD16 */ 49 req->colors = ncolors; 56 if ((rep.nPixels > ncolors) || (rep.nMasks > nplanes)) { 32 XAllocColorCells(register Display * dpy,Colormap cmap,Bool contig,unsigned long * masks,unsigned int nplanes,unsigned long * pixels,unsigned int ncolors) argument
|
| H A D | AllPlanes.c | 37 int ncolors, 53 req->colors = ncolors; 68 _XRead32 (dpy, (long *) pixels, (long)(ncolors * 4)); 32 XAllocColorPlanes(register Display * dpy,Colormap cmap,Bool contig,unsigned long * pixels,int ncolors,int nreds,int ngreens,int nblues,unsigned long * rmask,unsigned long * gmask,unsigned long * bmask) argument
|
| H A D | StColors.c | 37 int ncolors) 48 req->length += (ncolors * SIZEOF(xColorItem)) >> 2; /* assume size is 4*n */ 50 for (i = 0; i < ncolors; i++) { 33 XStoreColors(register Display * dpy,Colormap cmap,XColor * defs,int ncolors) argument
|
| /xsrc/external/mit/libXpm/dist/src/ |
| H A D | Image.c | 46 image->ncolors = 0; 58 xpmFreeColorTable(image->colorTable, image->ncolors);
|
| H A D | Attrib.c | 43 LFUNC(CreateOldColorTable, int, (XpmColor *ct, unsigned int ncolors, 46 LFUNC(FreeOldColorTable, void, (XpmColor **colorTable, unsigned int ncolors)); 54 unsigned int ncolors, 60 if (ncolors >= UINT_MAX / sizeof(XpmColor *)) 63 colorTable = (XpmColor **) XpmMalloc(ncolors * sizeof(XpmColor *)); 68 for (a = 0, color = colorTable; a < ncolors; a++, color++, ct++) 77 unsigned int ncolors) 84 for (a = 0, color = colorTable; a < ncolors; a++, color++) { 102 int ncolors) 109 for (a = 0, color = colorTable; a < ncolors; 52 CreateOldColorTable(XpmColor * ct,unsigned int ncolors,XpmColor *** oldct) argument 75 FreeOldColorTable(XpmColor ** colorTable,unsigned int ncolors) argument 100 xpmFreeColorTable(XpmColor * colorTable,int ncolors) argument [all...] |
| H A D | parse.c | 70 unsigned int height, unsigned int ncolors, 87 unsigned int *ncolors, 100 * read values: width, height, ncolors, chars_per_pixel 103 && xpmNextUI(data, ncolors) && xpmNextUI(data, cpp))) 125 * XPM 1 file read values: width, height, ncolors, chars_per_pixel 165 || !xpmNextUI(data, ncolors)) 199 unsigned int ncolors, 216 if (ncolors >= UINT_MAX / sizeof(XpmColor)) 218 colorTable = (XpmColor *) XpmCalloc(ncolors, sizeof(XpmColor)); 223 for (a = 0, color = colorTable; a < ncolors; 83 xpmParseValues(xpmData * data,unsigned int * width,unsigned int * height,unsigned int * ncolors,unsigned int * cpp,unsigned int * x_hotspot,unsigned int * y_hotspot,unsigned int * hotspot,unsigned int * extensions) argument 197 xpmParseColors(xpmData * data,unsigned int ncolors,unsigned int cpp,XpmColor ** colorTablePtr,xpmHashTable * hashtable) argument 399 ParsePixels(xpmData * data,unsigned int width,unsigned int height,unsigned int ncolors,unsigned int cpp,XpmColor * colorTable,xpmHashTable * hashtable,unsigned int ** pixels) argument 735 unsigned int width, height, ncolors, cpp; local in function:xpmParseData [all...] |
| H A D | amigax.h | 93 #define XQueryColors(dpy, cm, defs_in_out, ncolors) \ 94 (QueryColors(cm, defs_in_out, ncolors)) 148 int ncolors);
|
| H A D | scan.c | 71 unsigned int ncolors; member in struct:__anon4b998de10108 115 unsigned int ncolors, 131 unsigned int ncolors; local in function:storePixel 137 ncolors = pmap->ncolors; 139 for (i = pmap->mask_pixel; i < ncolors; i++, p++) 142 if (i == ncolors) { 143 if (ncolors >= pmap->size) { 151 (pmap->pixels)[ncolors] = pixel; 152 pmap->ncolors 420 ScanOtherColors(Display * display,XpmColor * colors,unsigned int ncolors,Pixel * pixels,unsigned int mask,unsigned int cpp,XpmAttributes * attributes) argument [all...] |
| H A D | CrDatFrI.c | 47 XpmColor *colors, unsigned int ncolors, 137 header_nlines = 1 + image->ncolors; /* this may wrap and/or become 0 */ 140 if(header_nlines <= image->ncolors || 147 header = (char **) XpmCalloc(header_size, sizeof(char *)); /* can we trust image->ncolors */ 157 image->ncolors, image->cpp); 184 image->colorTable, image->ncolors, image->cpp); 218 n = image->ncolors; 258 unsigned int ncolors, 266 /* can ncolors be trusted here? */ 267 for (a = 0; a < ncolors; 254 CreateColors(char ** dataptr,unsigned int * data_size,XpmColor * colors,unsigned int ncolors,unsigned int cpp) argument [all...] |
| H A D | XpmI.h | 184 HFUNC(xpmFreeColorTable, void, (XpmColor *colorTable, int ncolors)); 233 #define USE_HASHTABLE (cpp > 2 && ncolors > 4) 250 unsigned int *height, unsigned int *ncolors, 255 HFUNC(xpmParseColors, int, (xpmData *data, unsigned int ncolors,
|
| /xsrc/external/mit/libdrm/dist/tests/util/ |
| H A D | pattern.h | 42 void util_smpte_fill_lut(unsigned int ncolors, struct drm_color_lut *lut);
|
| H A D | format.h | 58 unsigned int ncolors; member in struct:util_format_info
|
| H A D | format.c | 43 { DRM_FORMAT_C1, "C1", .ncolors = 2 }, 44 { DRM_FORMAT_C2, "C2", .ncolors = 4 }, 45 { DRM_FORMAT_C4, "C4", .ncolors = 16 }, 46 { DRM_FORMAT_C8, "C8", .ncolors = 256 },
|
| /xsrc/external/mit/libXmu/dist/src/ |
| H A D | CrCmap.c | 173 unsigned long ncolors; /* number of colors to be defined */ local in function:readwrite_map 182 /* Determine ncolors, the number of colors to be defined. 183 * Insure that 1 < ncolors <= the colormap size. 186 ncolors = colormap->red_max; 187 if (colormap->green_max > ncolors) 188 ncolors = colormap->green_max; 189 if (colormap->blue_max > ncolors) 190 ncolors = colormap->blue_max; 191 ncolors++; 196 ncolors 376 contiguous(unsigned long pixels[],int npixels,int ncolors,unsigned long delta,int * first,int * rem) argument [all...] |
| H A D | StdCmap.c | 169 unsigned long ncolors; /* number of colors requested */ local in function:valid_args 192 ncolors = red_max + green_max + blue_max + 1; 193 if (ncolors > (unsigned long) vinfo->colormap_size) 196 ncolors = (red_max + 1) * (green_max + 1) * (blue_max + 1); 197 if (ncolors > (unsigned long) vinfo->colormap_size)
|
| /xsrc/external/mit/libXpm/dist/test/ |
| H A D | CompareXpmImage.h | 38 CompareUintFields(ncolors); 42 for (unsigned int i = 0; i < a->ncolors; i++)
|
| /xsrc/external/mit/libX11/dist/src/xcms/ |
| H A D | UNDEFINED.c | 53 unsigned int /* ncolors */ 65 unsigned int /* ncolors */ 110 unsigned int ncolors /* ncolors */ 105 ReturnZero(XcmsCCC ccc,XcmsColor * white,XcmsColor * colors,unsigned int ncolors) argument
|
| /xsrc/external/mit/libXext/dist/src/ |
| H A D | Xcup.c | 120 int* ncolors) 127 *ncolors = 0; 165 *ncolors = nentries; 166 for (i = 0; i < *ncolors; i++, cd++) { 190 int ncolors) 207 req->length += (ncolors * SIZEOF(xColorItem)) >> 2; 209 for (i = 0, xcp = colors_in_out; i < ncolors; i++, xcp++) { 226 if ((nentries == ncolors) && 230 if (ncolors > 256) 247 for (i = 0, xcp = colors_in_out, cs = rbufp; i < ncolors; 116 XcupGetReservedColormapEntries(Display * dpy,int screen,XColor ** colors_out,int * ncolors) argument 186 XcupStoreColors(Display * dpy,Colormap colormap,XColor * colors_in_out,int ncolors) argument [all...] |
| /xsrc/external/mit/ctwm/dist/ |
| H A D | image_xwd.c | 20 static void compress(XImage *image, XColor *colors, int *ncolors); 61 int w, h, depth, ncolors; local in function:LoadXwdImage 122 ncolors = header.ncolors; 123 len = fread((char *) xwdcolors, sizeof(XWDColor), ncolors, file); 124 if(len != ncolors) { 129 for(i = 0; i < ncolors; i++) { 134 for(i = 0; i < ncolors; i++) { 176 compress(image, colors, &ncolors); 179 for(i = 0; i < ncolors; 239 compress(XImage * image,XColor * colors,int * ncolors) argument [all...] |
| /xsrc/external/mit/xwd/dist/ |
| H A D | xwd.c | 247 int i, ncolors = 256; local in function:Get24bitDirectColors 250 *colors = tcol = malloc(sizeof(XColor) * ncolors); 252 for (i = 0; i < ncolors; i++) { 258 return ncolors; 274 int ncolors, i; local in function:Window_Dump 414 ncolors = Get_XColors(&win_info, &colors); 418 ncolors = Get24bitDirectColors(&colors); 477 header.ncolors = ncolors; 486 for (i = 0; i < ncolors; 607 int i, ncolors; local in function:ReadColors 653 int i, ncolors; local in function:Get_XColors [all...] |
| /xsrc/external/mit/xorgproto/dist/include/X11/ |
| H A D | XWDFile.h | 86 CARD32 ncolors; /* Number of XWDColor structures */ member in struct:_xwd_file_header 97 * the file. XWDFileHeader.ncolors tells how many XWDColor structures
|
| /xsrc/external/mit/xorg-server.old/dist/hw/xnest/ |
| H A D | Color.c | 50 int i, ncolors; local in function:xnestCreateColormap 55 ncolors = pVisual->ColormapEntries; 67 colors = (XColor *)malloc(ncolors * sizeof(XColor)); 68 for (i = 0; i < ncolors; i++) 70 XQueryColors(xnestDisplay, xnestColormap(pCmap), colors, ncolors); 71 for (i = 0; i < ncolors; i++) { 80 colors = (XColor *)malloc(ncolors * sizeof(XColor)); 81 for (i = 0; i < ncolors; i++) 83 XQueryColors(xnestDisplay, xnestColormap(pCmap), colors, ncolors); 84 for (i = 0; i < ncolors; [all...] |
| /xsrc/external/mit/xorg-server/dist/hw/xnest/ |
| H A D | Color.c | 50 int i, ncolors; local in function:xnestCreateColormap 55 ncolors = pVisual->ColormapEntries; 65 colors = xallocarray(ncolors, sizeof(XColor)); 66 for (i = 0; i < ncolors; i++) 68 XQueryColors(xnestDisplay, xnestColormap(pCmap), colors, ncolors); 69 for (i = 0; i < ncolors; i++) { 78 colors = xallocarray(ncolors, sizeof(XColor)); 79 for (i = 0; i < ncolors; i++) 81 XQueryColors(xnestDisplay, xnestColormap(pCmap), colors, ncolors); 82 for (i = 0; i < ncolors; [all...] |
| /xsrc/external/mit/xwud/dist/ |
| H A D | xwud.c | 64 static void Do_StdGray(Display *dpy, XStandardColormap *stdmap, int ncolors, 66 static void Do_StdCol(Display *dpy, XStandardColormap *stdmap, int ncolors, 69 static void Do_Pseudo(Display *dpy, Colormap *colormap, int ncolors, 72 int ncolors, XColor *colors, 126 int ncolors; local in function:main 330 if((ncolors = header.ncolors)) { 331 colors = (XColor *)malloc((unsigned) ncolors * sizeof(XColor)); 334 for (i = 0; i < ncolors; i++) { 344 for (i = 0; i < ncolors; 943 Do_StdGray(Display * dpy,XStandardColormap * stdmap,int ncolors,XColor * colors,XImage * in_image,XImage * out_image) argument 968 Do_StdCol(Display * dpy,XStandardColormap * stdmap,int ncolors,XColor * colors,XImage * in_image,XImage * out_image) argument 1002 Do_Pseudo(Display * dpy,Colormap * colormap,int ncolors,XColor * colors,XImage * in_image,XImage * out_image) argument 1026 Do_Direct(Display * dpy,XWDFileHeader * header,Colormap * colormap,int ncolors,XColor * colors,XImage * in_image,XImage * out_image,XVisualInfo * vinfo) argument [all...] |