Searched defs:colors (Results 1 - 7 of 7) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_gif_out.c89 static int colorstobpp(int colors);
144 colorstobpp(int colors) argument
148 if ( colors <= 2 )
150 else if ( colors <= 4 )
152 else if ( colors <= 8 )
154 else if ( colors <= 16 )
156 else if ( colors <= 32 )
158 else if ( colors <= 64 )
160 else if ( colors <= 128 )
162 else if ( colors <
[all...]
H A Dgd_png.c233 php_gd_error("gd-png color_type is palette, colors: %d", num_palette);
469 int colors = im->colorsTotal; local
544 /* count actual number of colors used (colorsTotal == high-water mark) */
545 colors = 0;
548 mapping[i] = colors;
549 ++colors;
552 if (colors == 0) {
553 php_gd_error("gd-png error: no colors in palette");
556 if (colors < im->colorsTotal) {
559 if (colors <
[all...]
H A Dgd_webp.c170 int colors = im->colorsTotal; local
H A Dgdxpm.c27 int *colors; local
45 colors = (int *) safe_emalloc(number, sizeof(int), 0);
122 colors[i] = gdImageColorResolve(im, red, green, blue);
129 gdImageSetPixel(im, j, i, colors[k]);
133 gdFree(colors);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.h209 const phpdbg_color_t *colors[PHPDBG_COLORS]; /* colors */ variable
H A Dphpdbg_set.h31 PHPDBG_SET(colors); variable
H A Dphpdbg_utils.c43 const static phpdbg_color_t colors[] = { variable
246 PHPDBG_G(colors)[PHPDBG_COLOR_ERROR]->code, buffer);
256 PHPDBG_G(colors)[PHPDBG_COLOR_NOTICE]->code, buffer);
326 const phpdbg_color_t *color = colors;
346 PHPDBG_G(colors)[element] = color;
355 } else PHPDBG_G(colors)[element] = colors;
360 return colors;
408 PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code,

Completed in 7 milliseconds