Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 20 of 20) sorted by relevance

/php-src/ext/gd/tests/
H A Dbug73291.phpt2 Bug #73291 (imagecropauto() $threshold differs from external libgd)
17 foreach ([0.1, 0.5, 1.0, 10.0] as $threshold) {
18 $dst = imagecropauto($src, IMG_CROP_THRESHOLD, $threshold, $white);
H A Dbug72494.phpt17 …gecropauto(): Argument #4 ($color) must be greater than or equal to 0 when using the threshold mode
H A Dbug77198_threshold.phpt2 Bug #77198 (threshold cropping has insufficient precision)
/php-src/ext/gd/libgd/
H A Dgd_crop.c29 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold);
181 gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) in gdImageCropThreshold() argument
196 if (threshold > 100.0) { in gdImageCropThreshold()
211 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
225 match = (gdColorMatch(im, color, gdImageGetPixel(im, x, y), threshold)) > 0; in gdImageCropThreshold()
233 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
241 match = (gdColorMatch(im, color, gdImageGetPixel(im, x,y), threshold)) > 0; in gdImageCropThreshold()
295 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) in gdColorMatch() argument
303 return (100.0 * dist / 195075) < threshold; in gdColorMatch()
H A Dgd.h880 gdImagePtr gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold);
/php-src/Zend/tests/gc/
H A Dgc_037.phpt27 ["threshold"]=>
53 ["threshold"]=>
H A Dgc_045.phpt60 ["threshold"]=>
/php-src/Zend/tests/
H A Dgh13670_002.phpt40 // threshold
50 $defaultThreshold = gc_status()['threshold'];
H A Dgh13670_003.phpt40 // threshold
50 $defaultThreshold = gc_status()['threshold'];
H A Dgh13670_001.phpt29 $defaultThreshold = gc_status()['threshold'];
/php-src/ext/bcmath/libbcmath/src/
H A Dstr2num.c48 const __m128i threshold = _mm_set1_epi8(SCHAR_MIN + ('9' + 1 - '0')); in bc_count_digits() local
56 bytes = _mm_cmplt_epi8(bytes, threshold); in bc_count_digits()
/php-src/Zend/
H A Dzend_gc.h37 uint32_t threshold; member
H A Dzend_builtin_functions.c179 add_assoc_long_ex(return_value, "threshold", sizeof("threshold")-1, (long)status.threshold); in ZEND_FUNCTION()
H A Dzend_gc.c2121 status->threshold = GC_G(gc_threshold); in zend_gc_get_status()
/php-src/ext/gd/
H A Dgd.stub.php767 function imagecropauto(GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $c… argument
H A Dgd.c3871 double threshold = 0.5f; in PHP_FUNCTION() local
3879 Z_PARAM_DOUBLE(threshold) in PHP_FUNCTION()
3899 im_crop = gdImageCropThreshold(im, color, (float) threshold); in PHP_FUNCTION()
H A Dgd_arginfo.h530 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.5")
/php-src/ext/mbstring/libmbfl/
H A DLICENSE257 threshold for this to be true is not precisely defined by law.
/php-src/ext/bcmath/libbcmath/
H A DLICENSE260 threshold for this to be true is not precisely defined by law.
/php-src/ext/mbstring/
H A Dmbstring.c1784 const __m128i threshold = _mm_set1_epi8(-64); in mb_fast_strlen_utf8() local
1791 __m128i lt = _mm_cmplt_epi8(operand, threshold); /* Find all which are continuation bytes */ in mb_fast_strlen_utf8()

Completed in 79 milliseconds