HomeSort by: relevance | last modified time | path
    Searched refs:ncolors (Results 1 - 25 of 38) sorted by relevancy

1 2

  /xsrc/external/mit/libX11/dist/src/
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 -= n
    [all...]
AllCells.c 39 unsigned int ncolors) /* CARD16 */
49 req->colors = ncolors;
56 if ((rep.nPixels > ncolors) || (rep.nMasks > nplanes)) {
AllPlanes.c 37 int ncolors,
53 req->colors = ncolors;
68 _XRead32 (dpy, (long *) pixels, (long)(ncolors * 4));
StColors.c 37 int ncolors)
48 req->length += (ncolors * SIZEOF(xColorItem)) >> 2; /* assume size is 4*n */
50 for (i = 0; i < ncolors; i++) {
  /xsrc/external/mit/libXpm/dist/src/
Image.c 46 image->ncolors = 0;
58 xpmFreeColorTable(image->colorTable, image->ncolors);
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; a++, color++)
    [all...]
parse.c 65 unsigned int height, unsigned int ncolors,
82 unsigned int *ncolors,
95 * read values: width, height, ncolors, chars_per_pixel
98 && xpmNextUI(data, ncolors) && xpmNextUI(data, cpp)))
120 * XPM 1 file read values: width, height, ncolors, chars_per_pixel
160 || !xpmNextUI(data, ncolors))
194 unsigned int ncolors,
211 if (ncolors >= UINT_MAX / sizeof(XpmColor))
213 colorTable = (XpmColor *) XpmCalloc(ncolors, sizeof(XpmColor));
218 for (a = 0, color = colorTable; a < ncolors; a++, color++)
730 unsigned int width, height, ncolors, cpp; local
    [all...]
scan.c 61 unsigned int ncolors; member in struct:__anon13
94 unsigned int ncolors,
110 unsigned int ncolors; local
116 ncolors = pmap->ncolors;
118 for (i = pmap->mask_pixel; i < ncolors; i++, p++)
121 if (i == ncolors) {
122 if (ncolors >= pmap->size) {
130 (pmap->pixels)[ncolors] = pixel;
131 pmap->ncolors++
    [all...]
CrDatFrI.c 43 XpmColor *colors, unsigned int ncolors,
133 header_nlines = 1 + image->ncolors; /* this may wrap and/or become 0 */
136 if(header_nlines <= image->ncolors ||
143 header = (char **) XpmCalloc(header_size, sizeof(char *)); /* can we trust image->ncolors */
153 image->ncolors, image->cpp);
180 image->colorTable, image->ncolors, image->cpp);
214 n = image->ncolors;
254 unsigned int ncolors,
262 /* can ncolors be trusted here? */
263 for (a = 0; a < ncolors; a++, colors++, dataptr++)
    [all...]
XpmI.h 165 HFUNC(xpmFreeColorTable, void, (XpmColor *colorTable, int ncolors));
212 #define USE_HASHTABLE (cpp > 2 && ncolors > 4)
229 unsigned int *height, unsigned int *ncolors,
234 HFUNC(xpmParseColors, int, (xpmData *data, unsigned int ncolors,
CrBufFrI.c 44 unsigned int ncolors, unsigned int cpp));
165 image->ncolors, image->cpp);
216 image->colorTable, image->ncolors, image->cpp);
277 unsigned int ncolors,
286 for (a = 0; a < ncolors; a++, colors++) {
  /xsrc/external/mit/libdrm/dist/tests/util/
pattern.h 45 void util_smpte_fill_lut(unsigned int ncolors, struct drm_color_lut *lut);
format.h 58 unsigned int ncolors; member in struct:util_format_info
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/
CrCmap.c 173 unsigned long ncolors; /* number of colors to be defined */ local
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 = colormap->red_max * colormap->red_mult
    [all...]
StdCmap.c 169 unsigned long ncolors; /* number of colors requested */ local
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/
CompareXpmImage.h 38 CompareUintFields(ncolors);
42 for (unsigned int i = 0; i < a->ncolors; i++)
  /xsrc/external/mit/libX11/dist/src/xcms/
UNDEFINED.c 53 unsigned int /* ncolors */
65 unsigned int /* ncolors */
110 unsigned int ncolors /* ncolors */
  /xsrc/external/mit/libXext/dist/src/
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; i++, xcp++, cs++)
    [all...]
  /xsrc/external/mit/ctwm/dist/
image_xwd.c 20 static void compress(XImage *image, XColor *colors, int *ncolors);
61 int w, h, depth, ncolors; local
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; i++)
    [all...]
  /xsrc/external/mit/xwd/dist/
xwd.c 247 int i, ncolors = 256; local
250 *colors = tcol = malloc(sizeof(XColor) * ncolors);
252 for (i = 0; i < ncolors; i++) {
258 return ncolors;
274 int ncolors, i; local
414 ncolors = Get_XColors(&win_info, &colors);
418 ncolors = Get24bitDirectColors(&colors);
477 header.ncolors = ncolors;
486 for (i = 0; i < ncolors; i++)
607 int i, ncolors; local
653 int i, ncolors; local
    [all...]
  /xsrc/external/mit/xorgproto/dist/include/X11/
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/dist/hw/xnest/
Color.c 50 int i, ncolors; local
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; i++)
    [all...]
  /xsrc/external/mit/xorg-server.old/dist/hw/xnest/
Color.c 50 int i, ncolors; local
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; i++)
    [all...]
  /xsrc/external/mit/xwud/dist/
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
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; i++)
    [all...]

Completed in 24 milliseconds

1 2