Lines Matching refs:c

306 #define MIN3(a,b,c) ((a)<(b)?(MIN(a,c)):(MIN(b,c)))  argument
310 #define MAX3(a,b,c) ((a)<(b)?(MAX(b,c)):(MAX(a,c))) argument
527 int c; in gdImageColorResolveAlpha() local
537 for (c = 0; c < im->colorsTotal; c++) in gdImageColorResolveAlpha()
539 if (im->open[c]) in gdImageColorResolveAlpha()
541 op = c; /* Save open slot */ in gdImageColorResolveAlpha()
544 if (c == im->transparent) in gdImageColorResolveAlpha()
550 rd = (long) (im->red[c] - r); in gdImageColorResolveAlpha()
551 gd = (long) (im->green[c] - g); in gdImageColorResolveAlpha()
552 bd = (long) (im->blue[c] - b); in gdImageColorResolveAlpha()
553 ad = (long) (im->alpha[c] - a); in gdImageColorResolveAlpha()
559 return c; /* Return exact match color */ in gdImageColorResolveAlpha()
562 ct = c; in gdImageColorResolveAlpha()
1261 #define BLEND_COLOR(a, nc, c, cc) \ argument
1262 nc = (cc) + (((((c) - (cc)) * (a)) + ((((c) - (cc)) * (a)) >> 8) + 0x80) >> 8);
1538 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1546 c = ASC (c); in gdImageChar()
1548 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageChar()
1551 fline = (c - f->offset) * f->h * f->w; in gdImageChar()
1564 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1572 c = ASC (c); in gdImageCharUp()
1574 if ((c < f->offset) || (c >= (f->offset + f->nchars))) { in gdImageCharUp()
1577 fline = (c - f->offset) * f->h * f->w; in gdImageCharUp()
1803 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder() local
1805 if ((c != border) && (c != color)) { in gdImageFillToBorder()
1809 } else if ((c == border) || (c == color)) { in gdImageFillToBorder()
1819 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder() local
1822 if ((c != border) && (c != color)) { in gdImageFillToBorder()
1826 } else if ((c == border) || (c == color)) { in gdImageFillToBorder()
1895 int ix = x, iy = y, c; in gdImageFill() local
1898 c = gdImageGetPixel(im, ix, iy); in gdImageFill()
1899 if (c != oc) { in gdImageFill()
2153 int c; in gdImageCopy() local
2168 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy() local
2169 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2176 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy() local
2177 if (c != src->transparent) { in gdImageCopy()
2178 …el(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c], src->alpha[ in gdImageCopy()
2193 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2196 …olorResolveAlpha(dst, gdTrueColorGetRed(c), gdTrueColorGetGreen(c), gdTrueColorGetBlue(c), gdTrueC… in gdImageCopy()
2216 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2218 if (gdImageGetTransparent (src) == c) { in gdImageCopy()
2227 …rResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColorGetBlue (c), gdTrue… in gdImageCopy()
2228 } else if (colorMap[c] == (-1)) { in gdImageCopy()
2231 nc = c; in gdImageCopy()
2234 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2236 colorMap[c] = nc; in gdImageCopy()
2237 mapTo = colorMap[c]; in gdImageCopy()
2239 mapTo = colorMap[c]; in gdImageCopy()
2252 int c, dc; in gdImageCopyMerge() local
2262 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2264 if (gdImageGetTransparent(src) == c) { in gdImageCopyMerge()
2270 nc = c; in gdImageCopyMerge()
2274 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2275 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2276 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2292 int c, dc; in gdImageCopyMergeGray() local
2303 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2305 if (gdImageGetTransparent(src) == c) { in gdImageCopyMergeGray()
2316 nc = c; in gdImageCopyMergeGray()
2321 ncR = (int)(gdImageRed (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); in gdImageCopyMergeGray()
2322 ncG = (int)(gdImageGreen (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); in gdImageCopyMergeGray()
2323 ncB = (int)(gdImageBlue (src, c) * (pct / 100.0f) + g * ((100 - pct) / 100.0)); in gdImageCopyMergeGray()
2346 int c; in gdImageCopyResized() local
2409 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2411 if (gdImageGetTransparent (src) == c) { in gdImageCopyResized()
2417 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2418 gdTrueColorGetGreen(c), in gdImageCopyResized()
2419 gdTrueColorGetBlue(c), in gdImageCopyResized()
2420 gdTrueColorGetAlpha (c)); in gdImageCopyResized()
2423 if (colorMap[c] == (-1)) { in gdImageCopyResized()
2426 nc = c; in gdImageCopyResized()
2430 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2431 gdImageGreen(src, c), in gdImageCopyResized()
2432 gdImageBlue(src, c), in gdImageCopyResized()
2433 gdImageAlpha(src, c)); in gdImageCopyResized()
2435 colorMap[c] = nc; in gdImageCopyResized()
2437 mapTo = colorMap[c]; in gdImageCopyResized()
2559 void gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c) in gdImagePolygon() argument
2573 if (c == gdAntiAliased) { in gdImagePolygon()
2584 draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2587 draw_line(im, lx, ly, p->x, p->y, c); in gdImagePolygon()
2592 if (c == gdAntiAliased) { in gdImagePolygon()
2608 void gdImageFilledPolygon (gdImagePtr im, gdPointPtr p, int n, int c) in gdImageFilledPolygon() argument
2627 if (c == gdAntiAliased) { in gdImageFilledPolygon()
2630 fill_color = c; in gdImageFilledPolygon()
2710 if (c == gdAntiAliased) { in gdImageFilledPolygon()
2711 gdImagePolygon(im, p, n, c); in gdImageFilledPolygon()
2762 void gdImageSetAntiAliased (gdImagePtr im, int c) in gdImageSetAntiAliased() argument
2765 im->AA_color = c; in gdImageSetAntiAliased()
2769 void gdImageSetAntiAliasedDontBlend (gdImagePtr im, int c, int dont_blend) in gdImageSetAntiAliasedDontBlend() argument
2772 im->AA_color = c; in gdImageSetAntiAliasedDontBlend()