Lines Matching refs:ct
266 int ct = (-1); in gdImageColorClosestAlpha() local
286 ct = i; in gdImageColorClosestAlpha()
290 return ct; in gdImageColorClosestAlpha()
432 int ct = (-1); in gdImageColorClosestHWB() local
446 ct = i; in gdImageColorClosestHWB()
450 return ct; in gdImageColorClosestHWB()
483 int ct = (-1); in gdImageColorAllocateAlpha() local
489 ct = i; in gdImageColorAllocateAlpha()
493 if (ct == (-1)) { in gdImageColorAllocateAlpha()
494 ct = im->colorsTotal; in gdImageColorAllocateAlpha()
495 if (ct == gdMaxColors) { in gdImageColorAllocateAlpha()
500 im->red[ct] = r; in gdImageColorAllocateAlpha()
501 im->green[ct] = g; in gdImageColorAllocateAlpha()
502 im->blue[ct] = b; in gdImageColorAllocateAlpha()
503 im->alpha[ct] = a; in gdImageColorAllocateAlpha()
504 im->open[ct] = 0; in gdImageColorAllocateAlpha()
506 return ct; in gdImageColorAllocateAlpha()
528 int ct = -1; in gdImageColorResolveAlpha() local
562 ct = c; in gdImageColorResolveAlpha()
571 return ct; /* Return closest available color */ in gdImageColorResolveAlpha()