Commit 7d7142ab authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

plug-ins/jpeg/jpeg-load.c (load_image) set tile cache.

2005-08-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image)
	* plug-ins/jpeg/jpeg-save.c (save_image): set tile cache.
parent abebcde6
2005-08-27 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg-load.c (load_image)
* plug-ins/jpeg/jpeg-save.c (save_image): set tile cache.
2005-08-27 Sven Neumann <sven@gimp.org>
* app/actions/documents-commands.c
documents_recreate_preview_cmd_callback): pass TRUE for replace
to gimp_imagefile_create_preview().
2005-08-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c: deal with SVG API change. This is a
......
......@@ -167,7 +167,9 @@ load_image (const gchar *filename,
buf = g_new (guchar,
tile_height * cinfo.output_width * cinfo.output_components);
rowbuf = g_new (guchar*, tile_height);
gimp_tile_cache_ntiles (1 + cinfo.output_width / gimp_tile_width ());
rowbuf = g_new (guchar *, tile_height);
for (i = 0; i < tile_height; i++)
rowbuf[i] = buf + cinfo.output_width * cinfo.output_components * i;
......
......@@ -537,6 +537,8 @@ save_image (const gchar *filename,
temp = g_new (guchar, cinfo.image_width * cinfo.input_components);
data = g_new (guchar, rowstride * gimp_tile_height ());
gimp_tile_cache_ntiles (1 + cinfo.image_width / gimp_tile_width ());
/* fault if cinfo.next_scanline isn't initially a multiple of
* gimp_tile_height */
src = NULL;
......@@ -604,7 +606,7 @@ save_image (const gchar *filename,
src += rowstride;
jpeg_write_scanlines (&cinfo, (JSAMPARRAY) &temp, 1);
if ((cinfo.next_scanline % 5) == 0)
if ((cinfo.next_scanline % 16) == 0)
gimp_progress_update ((gdouble) cinfo.next_scanline /
(gdouble) cinfo.image_height);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment