Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_image_load.c 


Log Message:


SOME of the changes needed to support evoak... needs new eet...

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_image_load.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas_image_load.c   23 Dec 2003 05:59:03 -0000      1.9
+++ evas_image_load.c   21 Apr 2004 06:38:23 -0000      1.10
@@ -602,6 +602,36 @@
 static int
 load_image_file_data_eet(RGBA_Image *im, const char *file, const char *key)
 {
+   int                  w, h, alpha, compression, quality, lossy;
+   Eet_File            *ef;
+   int                  ok;
+   
+   if ((!file) || (!key)) return -1;
+   ef = eet_open((char *)file, EET_FILE_MODE_READ);
+   if (!ef) return -1;
+   ok = eet_data_image_header_read(ef, (char *)key, 
+                                  &w, &h, &alpha, &compression, &quality, &lossy);
+   if (!ok)
+     {
+       eet_close(ef);
+       return -1;
+     }
+   if ((w > 8192) || (h > 8192))
+     {
+       eet_close(ef);
+       return -1;
+     }
+   if (alpha) im->flags |= RGBA_IMAGE_HAS_ALPHA;
+   if (!im->image)
+     im->image = evas_common_image_surface_new();
+   if (!im->image)
+     {
+       eet_close(ef);
+       return -1;
+     }
+   im->image->w = w;
+   im->image->h = h;
+   eet_close(ef);
    return 1;
 }
 #endif




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to