Searched refs:quality (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_webp.c144 * Maps normalized QP (quality) to VP8 QP
146 int mapQualityToVP8QP(int quality) { argument
153 scale * (MAX_QUALITY - quality) / (MAX_QUALITY - MIN_QUALITY) + MIN_VP8QP;
154 if (quality < MIN_QUALITY || quality > MAX_QUALITY) {
155 php_gd_error("Wrong quality value %d.", quality);
H A Dgd.h549 using a high-quality two-pass quantization routine
562 it can be negative) and the quality loss is ugly. */
608 /* 100 is highest quality (there is always a little loss with JPEG).
610 void gdImageJpeg(gdImagePtr im, FILE *out, int quality);
611 void gdImageJpegCtx(gdImagePtr im, gdIOCtx *out, int quality);
616 void *gdImageJpegPtr(gdImagePtr im, int *size, int quality);
H A Dgd_jpeg.c136 * Write IM to OUTFILE as a JFIF-formatted JPEG image, using quality
138 * represent higher quality but also larger image size. If QUALITY is
139 * negative, the IJG JPEG library's default quality is used (which
144 void gdImageJpeg (gdImagePtr im, FILE * outFile, int quality) argument
147 gdImageJpegCtx (im, out, quality);
151 void *gdImageJpegPtr (gdImagePtr im, int *size, int quality) argument
155 gdImageJpegCtx (im, out, quality);
164 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) argument
198 if (quality >= 0) {
199 jpeg_set_quality (&cinfo, quality, TRU
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c82 zend_long quality, basefilter; local
91 /* The third (quality) parameter for Wbmp stands for the threshold when called from image2wbmp().
92 * The third (quality) parameter for Wbmp and Xbm stands for the foreground color index when called
96 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp!|ll", &imgind, &file, &file_len, &quality, &basefilter) == FAILURE) {
106 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|z/!ll", &imgind, &to_zval, &quality, &basefilter) == FAILURE) {
114 q = quality; /* or colorindex for foreground of BW images (defaults to black) */
H A Dgd.c388 ZEND_ARG_INFO(0, quality)
2555 zend_long quality = 0, type = 0; local
2563 /* The quality parameter for Wbmp stands for the threshold when called from image2wbmp() */
2564 /* When called from imagewbmp() the quality parameter stands for the foreground color. Default: black. */
2565 /* The quality parameter for gd2 stands for chunk size */
2567 if (zend_parse_parameters(argc TSRMLS_CC, "r|pll", &imgind, &file, &file_len, &quality, &type) == FAILURE) {
2576 q = quality;
2730 /* {{{ proto bool imagewebp(resource im [, string filename[, quality]] )
2741 /* {{{ proto bool imagejpeg(resource im [, string filename [, int quality]])

Completed in 14 milliseconds