Lines Matching refs:quality
1771 zend_long quality = 128, type = 1;
1776 /* The quality parameter for gd2 stands for chunk size */
1785 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|p!ll", &imgind, gd_image_ce, &file, &file_len, &quality, &type) == FAILURE) {
1792 /* quality must fit in an int */
1793 if (quality < INT_MIN || quality > INT_MAX) {
1814 if (quality == -1) {
1815 quality = 128;
1817 gdImageGd2(im, fp, quality, type);
1840 if (quality == -1) {
1841 quality = 128;
1843 gdImageGd2(im, tmp, quality, type);
1945 zend_long quality = -1, basefilter = -1;
1950 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &basefilter) == FAILURE) {
1961 if (quality < -1 || quality > 9) {
1968 gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
1970 gdImagePngCtxEx(im, ctx, (int) quality);
1985 zend_long quality = -1;
1990 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == FAILURE) {
2001 if (quality < -1) {
2007 gdImageWebpCtx(im, ctx, (int) quality);
2021 zend_long quality = -1, speed = -1;
2026 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &speed) == FAILURE) {
2037 if (quality < -1 || quality > 100) {
2051 gdImageAvifCtx(im, ctx, (int) quality, (int) speed);
2065 zend_long quality = -1;
2070 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == FAILURE) {
2081 if (quality < -1 || quality > 100) {
2087 gdImageJpegCtx(im, ctx, (int) quality);