Lines Matching refs:ncolors

24 static void freeCtable(char **ctable, int ncolors)  in freeCtable()  argument
32 for (i = 0; i < ncolors; i++) in freeCtable()
89 isXpixmap(ZFILE * zf, unsigned int *w, unsigned int *h, unsigned int *cpp, unsigned int *ncolors, i… in isXpixmap() argument
110 *format = *w = *h = *ncolors = 0; in isXpixmap()
134 *ncolors = value; in isXpixmap()
212 if (sscanf(buf, "%d %d %d %d", w, h, ncolors, cpp) != 4) { in isXpixmap()
222 if (!*format || !*w || !*h || !*ncolors || !*cpp) { in isXpixmap()
241 unsigned int ncolors; /* number of colors */ in xpixmapLoad() local
270 ncolors = tncolors; in xpixmapLoad()
273 for (depth = 1, value = 2; value < ncolors; value <<= 1, depth++); in xpixmapLoad()
275 image->rgb.used = ncolors; in xpixmapLoad()
284 name, w, h, format, ncolors, image->title); in xpixmapLoad()
315 freeCtable(ctable, ncolors); in xpixmapLoad()
327 freeCtable(ctable, ncolors); in xpixmapLoad()
357 ctable = (char **) lmalloc(sizeof(char *) * ncolors); in xpixmapLoad()
358 bzero(ctable, sizeof(char *) * ncolors); in xpixmapLoad()
360 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
365 *(ctable + a) = (char *) lmalloc(sizeof(char *) * ncolors); in xpixmapLoad()
370 freeCtable(ctable, ncolors); in xpixmapLoad()
381 freeCtable(ctable, ncolors); in xpixmapLoad()
393 freeCtable(ctable, ncolors); in xpixmapLoad()
407 freeCtable(ctable, ncolors); in xpixmapLoad()
419 freeCtable(ctable, ncolors); in xpixmapLoad()
457 freeCtable(ctable, ncolors); in xpixmapLoad()
485 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
497 for (a = 0; a < ncolors; a++) { in xpixmapLoad()
503 freeCtable(ctable, ncolors); in xpixmapLoad()
555 unsigned int ncolors; /* number of colors */ in xpixmapIdent() local
562 if (!isXpixmap(zf, &w, &h, &cpp, &ncolors, &format, &imagetitle)) { in xpixmapIdent()
570 name, w, h, format, ncolors, imagetitle); in xpixmapIdent()