Searched refs:red (Results 1 - 16 of 16) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_color.c55 im2->red[color] = *(bp++) / count;
H A Dgd_filter.c187 int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha) argument
210 r = r + red;
H A Dgd_gd.c69 if (!gdGetByte(&im->red[i], in)) {
223 gdPutC((unsigned char) im->red[i], out);
H A Dgd_gif_in.c568 im->red[i] = cmap[CM_RED][i];
H A Dgd_gif_out.c136 tim->red, tim->green, tim->blue, tim);
H A Dgd_topal.c642 /* We want to break any ties in favor of green, then red, blue last.
765 nim->red[icolor] = (int) ((c0total + (total >> 1)) / total);
771 nim->red[icolor] = 255;
834 nim->red[nim->colorsTotal] = gdTrueColorGetRed (oim->transparent);
979 x = nim->red[i];
1152 r = nim->red[icolor];
1397 int *colormap0 = nim->red;
H A Dgddemo.c22 int red; local
54 red = gdImageColorAllocate (im_out, 255, 0, 0);
103 (unsigned char *) "hi", red);
105 (unsigned char *) "hi", red);
H A Dgd_png.c266 palette[i].red = palette[i].green = palette[i].blue = j;
271 palette[i].red = palette[i].green = palette[i].blue = i;
307 transparent = gdTrueColor(trans_color_rgb->red >> 8,
311 transparent = gdTrueColor(trans_color_rgb->red,
340 im->red[i] = palette[i].red;
587 trans_rgb_value.red = gdTrueColorGetRed (im->transparent);
649 palette[mapping[i]].red = im->red[i];
655 palette[i].red
[all...]
H A Dgd.c161 im->red[i] = 0;
282 rd = im->red[i] - r;
318 * Theoretically, hue 0 (pure red) is identical to hue 6 in these transforms. Pure
319 * red always maps to 6 in this implementation. Therefore UNDEFINED can be
447 dist = HWB_Diff(im->red[i], im->green[i], im->blue[i], r, g, b);
472 if ((im->red[i] == r) && (im->green[i] == g) && (im->blue[i] == b) && (im->alpha[i] == a)) {
504 im->red[ct] = r;
554 rd = (long) (im->red[c] - r);
579 im->red[op] = r;
629 xlate[p] = gdImageColorClosestAlpha (from, to->red[
2470 double red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0; local
2877 int dst_alpha, alpha, red, green, blue; local
[all...]
H A Dgd_interpolation.c619 register int alpha, red, green, blue; local
626 red = (gdTrueColorGetRed(src) * src_weight
633 return ((alpha << 24) + (red << 16) + (green << 8) + blue);
695 #define colorIndex2RGBA(c) gdTrueColorAlpha(im->red[(c)], im->green[(c)], im->blue[(c)], im->alpha[(c)])
696 #define colorIndex2RGBcustomA(c, a) gdTrueColorAlpha(im->red[(c)], im->green[(c)], im->blue[(c)], im->alpha[(a)])
776 r = (int)(m1*im->red[(c1)] + m2*im->red[(c2)] + m3*im->red[(c3)] + m4*im->red[(c4)]);
1223 new_img->transparent = gdTrueColorAlpha(im->red[transparen
1279 const char red = (char) gd_fxtoi(gd_mulfx(f_w1, f_r1) + gd_mulfx(f_w2, f_r2) + gd_mulfx(f_w3, f_r3) + gd_mulfx(f_w4, f_r4)); local
1366 const unsigned char red = (unsigned char) gd_fxtoi(gd_mulfx(f_w1, f_r1) + gd_mulfx(f_w2, f_r2) + gd_mulfx(f_w3, f_r3) + gd_mulfx(f_w4, f_r4)); local
1438 unsigned char red, green, blue, alpha = 0; local
1871 const unsigned char red = (unsigned char) CLAMP(gd_fxtoi(f_red), 0, 255); local
1934 unsigned char red, green, blue, alpha; local
[all...]
H A Dgd_jpeg.c252 row[jidx++] = im->red[idx];
256 row[jidx++] = im->red[idx] << 4;
H A Dgdxpm.c26 int red = 0, green = 0, blue = 0; local
51 red = strtol(buf, NULL, 16);
64 red = strtol(buf, NULL, 16);
80 red = strtol(buf, NULL, 16);
81 red /= 64;
102 red = strtol(buf, NULL, 16);
103 red /= 256;
122 colors[i] = gdImageColorResolve(im, red, green, blue);
H A Dgd.h178 int red[gdMaxColors]; member in struct:gdImageStruct
732 (im)->red[(c)])
771 * The red, green, and blue intensities of an image are negated.
785 /* Simply adds or subtracts respectively red, green or blue to a pixel */
786 int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha);
H A Dgd_arc_f_buggy.c706 red = gdImageColorResolve (im, 0xFF, 0xA0, 0xA0);
710 gdImageFilledArc (im, WIDTH / 5, HEIGHT / 4, 200, 200, 45, 90, red, gdPie);
714 gdImageFilledArc (im, WIDTH / 2, HEIGHT / 4, 200, 150, 45, 90, red, gdPie);
H A Dgdft.c612 (pixel * im->red[fg] + npixel * im->red[bg]) / NUMCOLORS,
/PHP_TRUNK/ext/gd/
H A Dgd.c225 ZEND_ARG_INFO(0, red)
233 ZEND_ARG_INFO(0, red)
241 ZEND_ARG_INFO(0, red)
249 ZEND_ARG_INFO(0, red)
416 ZEND_ARG_INFO(0, red)
434 ZEND_ARG_INFO(0, red)
441 ZEND_ARG_INFO(0, red)
453 ZEND_ARG_INFO(0, red)
460 ZEND_ARG_INFO(0, red)
468 ZEND_ARG_INFO(0, red)
1814 zend_long red, green, blue, alpha; local
1836 zend_long red, green, blue, alpha; local
1854 zend_long red, green, blue, alpha; local
1872 zend_long red, green, blue, alpha; local
2792 zend_long red, green, blue; local
2865 zend_long red, green, blue; local
2883 zend_long red, green, blue; local
2933 zend_long red, green, blue; local
2951 zend_long red, green, blue; local
2969 zend_long color, red, green, blue, alpha = 0; local
[all...]

Completed in 32 milliseconds