/PHP-8.3/ext/gd/tests/ |
H A D | bug36697-mb.phpt | 19 $colors = imagecolorsforindex($im, $c); 20 echo $colors['red'] . ' ' . $colors['green'] . ' ' . $colors['blue'];
|
H A D | bug36697.phpt | 19 $colors = imagecolorsforindex($im, $c); 20 echo $colors['red'] . ' ' . $colors['green'] . ' ' . $colors['blue'];
|
H A D | copyresized.phpt | 12 $colors = imagecolorsforindex($im, $c); 13 return ($colors['red'] << 16) + ($colors['green'] << 8) + ($colors['blue']);
|
H A D | imagecolorstotal_basic.phpt | 19 echo 'Total colors in image: ' . imagecolorstotal($im); 26 Total colors in image: 128
|
H A D | copypalette.phpt | 23 echo "copy palette 255 colors: "; 41 copy palette 255 colors: ok
|
H A D | bug19366.phpt | 12 echo "Alive: Define colors\n"; 45 Alive: Define colors
|
H A D | bug45799.phpt | 12 Warning: imagepng(): gd-png error: no colors in palette%win %s on line %d
|
H A D | bug79615.phpt | 7 $im = imagecreate(3, 3); // 3x3, 9 colors, 4 bits per pixel
|
H A D | crafted_gd2.phpt | 2 Test max colors for a gd image.
|
H A D | bug70102.phpt | 2 Bug #70102 (imagecreatefromwebm() shifts colors)
|
H A D | bug53580.phpt | 2 Bug #53580 (During resize gdImageCopyResampled cause colors change)
|
H A D | bug75124.phpt | 2 Bug #75124 (gdImageGrayScale() may produce colors)
|
H A D | imagecopyresampled_variation1.phpt | 2 Test for correct colors of imagecopyresampled() wrt. alpha
|
/PHP-8.3/ext/gd/libgd/ |
H A D | gdxpm.c | 27 int *colors; in gdImageCreateFromXpm() local 45 colors = (int *) safe_emalloc(number, sizeof(int), 0); in gdImageCreateFromXpm() 122 colors[i] = gdImageColorResolve(im, red, green, blue); in gdImageCreateFromXpm() 129 gdImageSetPixel(im, j, i, colors[k]); in gdImageCreateFromXpm() 133 gdFree(colors); in gdImageCreateFromXpm()
|
H A D | gd_gif_out.c | 89 static int colorstobpp(int colors); 158 colorstobpp(int colors) in colorstobpp() argument 162 if ( colors <= 2 ) in colorstobpp() 164 else if ( colors <= 4 ) in colorstobpp() 166 else if ( colors <= 8 ) in colorstobpp() 168 else if ( colors <= 16 ) in colorstobpp() 170 else if ( colors <= 32 ) in colorstobpp() 172 else if ( colors <= 64 ) in colorstobpp() 174 else if ( colors <= 128 ) in colorstobpp() 176 else if ( colors <= 256 ) in colorstobpp()
|
H A D | gd_png.c | 494 int colors = im->colorsTotal; in gdImagePngCtxEx() local 576 colors = 0; in gdImagePngCtxEx() 579 mapping[i] = colors; in gdImagePngCtxEx() 580 ++colors; in gdImagePngCtxEx() 583 if (colors == 0) { in gdImagePngCtxEx() 587 if (colors < im->colorsTotal) { in gdImagePngCtxEx() 590 if (colors <= 2) { in gdImagePngCtxEx() 592 } else if (colors <= 4) { in gdImagePngCtxEx() 594 } else if (colors <= 16) { in gdImagePngCtxEx() 655 k = colors - 1; in gdImagePngCtxEx() [all …]
|
H A D | gd_filter.c | 40 int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors) in gdImageScatterColor() argument 46 s.colors = colors; in gdImageScatterColor() 83 if (pxl == scatter->colors[n]) { in gdImageScatterEx()
|
H A D | gd.h | 751 int *colors; member 756 int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors);
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg_set.h | 29 PHPDBG_SET(colors);
|
H A D | phpdbg_utils.c | 41 static const phpdbg_color_t colors[] = { 229 const phpdbg_color_t *color = colors; in phpdbg_get_color() 247 PHPDBG_G(colors)[element] = color; in phpdbg_set_color() local 256 } else PHPDBG_G(colors)[element] = colors; in phpdbg_set_color_ex() local 261 return colors; in phpdbg_get_colors() 325 PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code, in phpdbg_get_prompt()
|
H A D | phpdbg_set.c | 36 …PHPDBG_SET_COMMAND_D(colors, "usage: set colors [<on|off>]", 'C', set_colors, … 178 PHPDBG_SET(colors) /* {{{ */ in PHPDBG_SET() argument
|
H A D | phpdbg_out.c | 54 …msgoutlen = phpdbg_asprintf(&msgout, "\033[%sm[%.*s]\033[0m\n", PHPDBG_G(colors)[PHPDBG_COLOR_ERRO… in phpdbg_process_print() 66 …msgoutlen = phpdbg_asprintf(&msgout, "\033[%sm[%.*s]\033[0m\n", PHPDBG_G(colors)[PHPDBG_COLOR_NOTI… in phpdbg_process_print()
|
H A D | phpdbg.h | 295 const phpdbg_color_t *colors[PHPDBG_COLORS]; /* colors */ variable
|
H A D | phpdbg.c | 112 pg->colors[0] = NULL; in php_phpdbg_globals_ctor() 113 pg->colors[1] = NULL; in php_phpdbg_globals_ctor() 114 pg->colors[2] = NULL; in php_phpdbg_globals_ctor() 1700 memcpy(ZEND_VOIDP(settings->colors), PHPDBG_G(colors), sizeof(settings->colors)); in main()
|
/PHP-8.3/ext/gd/ |
H A D | gd.c | 3341 int *colors; in php_image_filter_scatter() local 3347 colors = emalloc(num_colors * sizeof(int)); in php_image_filter_scatter() 3350 *(colors + i++) = (int) zval_get_long(color); in php_image_filter_scatter() 3353 RETVAL_BOOL(gdImageScatterColor(im, (int)scatter_sub, (int)scatter_plus, colors, num_colors)); in php_image_filter_scatter() 3355 efree(colors); in php_image_filter_scatter()
|