Searched refs:threshold (Results 1 - 4 of 4) sorted by relevance
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd_alloc.c | 82 long * threshold = &MYSQLND_G(debug_emalloc_fail_threshold); local 95 if (*threshold) { 99 --*threshold; 100 } else if (*threshold == 0) { 122 long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emalloc_fail_threshold); local 135 if (*threshold) { 139 --*threshold; 140 } else if (*threshold == 0) { 165 long * threshold = &MYSQLND_G(debug_ecalloc_fail_threshold); local 179 if (*threshold) { 206 long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold); local 249 long * threshold = &MYSQLND_G(debug_erealloc_fail_threshold); local 290 long * threshold = persistent? &MYSQLND_G(debug_realloc_fail_threshold):&MYSQLND_G(debug_erealloc_fail_threshold); local 396 long * threshold = &MYSQLND_G(debug_malloc_fail_threshold); local 435 long * threshold = &MYSQLND_G(debug_calloc_fail_threshold); local 474 long * threshold = &MYSQLND_G(debug_realloc_fail_threshold); local [all...] |
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | gd_crop.c | 8 * The threshold method works relatively well but it can be improved. 28 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold); 199 * Crop an image using a given color. The threshold argument defines 208 * threshold - tolerance (0..100) 216 gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) argument 231 if (threshold > 1.0) { 242 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; 258 match = (gdColorMatch(im, color, gdImageGetPixel(im, x, y), threshold)) > 0; 271 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; 279 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 333 gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) argument [all...] |
| H A D | gd.h | 837 gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold);
|
| /PHP_TRUNK/ext/gd/ |
| H A D | gd.c | 143 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold); 791 ZEND_ARG_INFO(0, threshold) 850 ZEND_ARG_INFO(0, threshold) 2579 /* The quality parameter for Wbmp stands for the threshold when called from image2wbmp() */ 2613 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q); 2665 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q); 4356 /* {{{ proto bool image2wbmp(resource im [, string filename [, int threshold]]) 4365 /* {{{ proto bool jpeg2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold) 4375 /* {{{ proto bool png2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold) 4385 * It converts a gd Image to bw using a threshold valu 4386 _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold) argument 4441 long height, width, threshold; local 5027 double threshold = 0.5f; local [all...] |
Completed in 19 milliseconds