Lines Matching refs:quality
1746 zend_long quality = 128, type = 1;
1751 /* The quality parameter for gd2 stands for chunk size */
1760 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|p!ll", &imgind, gd_image_ce, &file, &file_len, &quality, &type) == FAILURE) {
1767 /* quality must fit in an int */
1768 if (quality < INT_MIN || quality > INT_MAX) {
1789 if (quality == -1) {
1790 quality = 128;
1792 gdImageGd2(im, fp, quality, type);
1815 if (quality == -1) {
1816 quality = 128;
1818 gdImageGd2(im, tmp, quality, type);
1920 zend_long quality = -1, basefilter = -1;
1925 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &basefilter) == FAILURE) {
1936 if (quality < -1 || quality > 9) {
1943 gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
1945 gdImagePngCtxEx(im, ctx, (int) quality);
1960 zend_long quality = -1;
1965 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == FAILURE) {
1976 if (quality < -1) {
1982 gdImageWebpCtx(im, ctx, (int) quality);
1996 zend_long quality = -1, speed = -1;
2001 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &speed) == FAILURE) {
2012 if (quality < -1 || quality > 100) {
2026 gdImageAvifCtx(im, ctx, (int) quality, (int) speed);
2040 zend_long quality = -1;
2045 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == FAILURE) {
2056 if (quality < -1 || quality > 100) {
2062 gdImageJpegCtx(im, ctx, (int) quality);