[mapserver-commits] r12331 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:17:27 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:17:27 -0700 (Fri, 26 Aug 2011)
New Revision: 12331
Modified:
trunk/mapserver/mapcache/src/imageio_jpeg.c
Log:
remove old xml string
thomas.bonfort | 2011-03-08 14:22:47 +0100 (Tue, 08 Mar 2011)
Modified: trunk/mapserver/mapcache/src/imageio_jpeg.c
===================================================================
--- trunk/mapserver/mapcache/src/imageio_jpeg.c 2011-08-26 11:17:24 UTC (rev 12330)
+++ trunk/mapserver/mapcache/src/imageio_jpeg.c 2011-08-26 11:17:27 UTC (rev 12331)
@@ -140,7 +140,6 @@
geocache_buffer* _geocache_imageio_jpeg_encode(geocache_context *ctx, geocache_image *img, geocache_image_format *format) {
struct jpeg_compress_struct cinfo;
struct jpeg_error_mgr jerr;
- int quality = 85;
geocache_jpeg_destination_mgr *dest;
JSAMPLE *rowdata;
unsigned int row;
@@ -163,7 +162,7 @@
cinfo.input_components = 3;
cinfo.in_color_space = JCS_RGB;
jpeg_set_defaults(&cinfo);
- jpeg_set_quality(&cinfo, quality, TRUE);
+ jpeg_set_quality(&cinfo, ((geocache_image_format_jpeg*)format)->quality, TRUE);
jpeg_start_compress(&cinfo, TRUE);
rowdata = (JSAMPLE*)malloc(img->w*cinfo.input_components*sizeof(JSAMPLE));
More information about the mapserver-commits
mailing list