Lines Matching refs:threshold

135 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold);
783 ZEND_ARG_INFO(0, threshold)
842 ZEND_ARG_INFO(0, threshold)
2559 /* The quality parameter for Wbmp stands for the threshold when called from image2wbmp() */
2593 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
2645 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
4349 /* {{{ proto bool image2wbmp(resource im [, string filename [, int threshold]])
4358 /* {{{ proto bool jpeg2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)
4368 /* {{{ proto bool png2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)
4378 * It converts a gd Image to bw using a threshold value */
4379 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold)
4415 if (median < threshold) {
4434 long height, width, threshold;
4449 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pplll", &f_org, &f_org_len, &f_dest, &f_dest_len, &height, &width, &threshold) == FAILURE) {
4457 int_threshold = threshold;
4459 /* Check threshold value */
4461 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid threshold value '%d'", int_threshold);
5051 /* {{{ proto void imagecropauto(resource im [, int mode [, threshold [, color]]])
5058 double threshold = 0.5f;
5062 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ldl", &IM, &mode, &threshold, &color) == FAILURE) {
5081 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Color argument missing with threshold mode");
5084 im_crop = gdImageCropThreshold(im, color, (float) threshold);