Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/savers/jpeg
Modified Files:
evas_image_save_jpeg.c
Log Message:
cedric's cache changes patch
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/savers/jpeg/evas_image_save_jpeg.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evas_image_save_jpeg.c 28 Oct 2006 03:02:23 -0000 1.4
+++ evas_image_save_jpeg.c 12 Apr 2008 00:32:30 -0000 1.5
@@ -63,10 +63,10 @@
int y = 0;
int i, j;
- if (!im || !im->image || !im->image->data || !file)
+ if (!im || !im->image.data || !file)
return 0;
- buf = alloca(im->image->w * 3 * sizeof(DATA8));
+ buf = alloca(im->cache_entry.w * 3 * sizeof(DATA8));
f = fopen(file, "wb");
if (!f)
{
@@ -84,17 +84,17 @@
}
jpeg_create_compress(&cinfo);
jpeg_stdio_dest(&cinfo, f);
- cinfo.image_width = im->image->w;
- cinfo.image_height = im->image->h;
+ cinfo.image_width = im->cache_entry.w;
+ cinfo.image_height = im->cache_entry.h;
cinfo.input_components = 3;
cinfo.in_color_space = JCS_RGB;
jpeg_set_defaults(&cinfo);
jpeg_set_quality(&cinfo, quality, TRUE);
jpeg_start_compress(&cinfo, TRUE);
- ptr = im->image->data;
+ ptr = im->image.data;
while (cinfo.next_scanline < cinfo.image_height)
{
- for (j = 0, i = 0; i < im->image->w; i++)
+ for (j = 0, i = 0; i < im->cache_entry.w; i++)
{
buf[j++] = ((*ptr) >> 16) & 0xff;
buf[j++] = ((*ptr) >> 8) & 0xff;
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs