Lines Matching refs:threshold

138 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold);
767 ZEND_ARG_INFO(0, threshold)
824 ZEND_ARG_INFO(0, threshold)
2594 /* The quality parameter for Wbmp stands for the threshold when called from image2wbmp() */
2630 php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
2679 php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
4073 /* {{{ proto bool image2wbmp(resource im [, string filename [, int threshold]])
4082 /* {{{ proto bool jpeg2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)
4092 /* {{{ proto bool png2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)
4102 * It converts a gd Image to bw using a threshold value */
4103 static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold)
4141 if (median < threshold) {
4160 zend_long height, width, threshold;
4177 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pplll", &f_org, &f_org_len, &f_dest, &f_dest_len, &height, &width, &threshold) == FAILURE) {
4185 int_threshold = threshold;
4187 /* Check threshold value */
4189 php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'", int_threshold);
4768 /* {{{ proto void imagecropauto(resource im [, int mode [, float threshold [, int color]]])
4775 double threshold = 0.5f;
4779 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|ldl", &IM, &mode, &threshold, &color) == FAILURE) {
4800 php_error_docref(NULL, E_WARNING, "Color argument missing with threshold mode");
4803 im_crop = gdImageCropThreshold(im, color, (float) threshold);