Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/include Modified Files: evas_common.h evas_private.h Log Message: added the ability to set load scaledown, dpi or load size - the svg loader uses these to know what to render and how (or has defaults if these are not set) =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/include/evas_common.h,v retrieving revision 1.60 retrieving revision 1.61 diff -u -3 -r1.60 -r1.61 --- evas_common.h 14 Aug 2006 13:50:07 -0000 1.60 +++ evas_common.h 18 Aug 2006 14:45:25 -0000 1.61 @@ -86,6 +86,7 @@ typedef struct _Evas_Hash_El Evas_Hash_El; +typedef struct _RGBA_Image_Loadopts RGBA_Image_Loadopts; typedef struct _RGBA_Image RGBA_Image; typedef struct _RGBA_Surface RGBA_Surface; typedef struct _RGBA_Image_Span RGBA_Image_Span; @@ -234,6 +235,13 @@ RGBA_Image *im; }; +struct _RGBA_Image_Loadopts +{ + int scale_down_by; // if > 1 then use this + double dpi; // if > 0.0 use this + int w, h; // if > 0 use this +}; + struct _RGBA_Image { Evas_Object_List _list_data; @@ -251,6 +259,7 @@ int references; // DATA64 timestamp; void *extended_info; + RGBA_Image_Loadopts load_opts; }; struct _RGBA_Gradient_Color @@ -672,12 +681,12 @@ int evas_common_image_get_cache (void); void evas_common_image_store (RGBA_Image *im); void evas_common_image_unstore (RGBA_Image *im); -RGBA_Image *evas_common_image_find (const char *filename, const char *key, DATA64 timestamp); +RGBA_Image *evas_common_image_find (const char *filename, const char *key, DATA64 timestamp, RGBA_Image_Loadopts *lo); int evas_common_image_ram_usage (RGBA_Image *im); void evas_common_image_dirty (RGBA_Image *im); void evas_common_image_cache_free (void); -RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key); +RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, RGBA_Image_Loadopts *lo); void evas_common_load_image_data_from_file(RGBA_Image *im); int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress); =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/include/evas_private.h,v retrieving revision 1.71 retrieving revision 1.72 diff -u -3 -r1.71 -r1.72 --- evas_private.h 7 Jun 2006 23:30:14 -0000 1.71 +++ evas_private.h 18 Aug 2006 14:45:25 -0000 1.72 @@ -82,6 +82,7 @@ typedef struct _Evas_Font_Alias Evas_Font_Alias; typedef struct _Evas_Data_Node Evas_Data_Node; typedef struct _Evas_Func_Node Evas_Func_Node; +typedef RGBA_Image_Loadopts Evas_Image_Load_Opts; typedef struct _Evas_Func Evas_Func; typedef struct _Evas_Image_Load_Func Evas_Image_Load_Func; typedef struct _Evas_Image_Save_Func Evas_Image_Save_Func; @@ -559,7 +560,7 @@ void (*gradient_map) (void *data, void *context, void *gradient, int spread); void (*gradient_draw) (void *data, void *context, void *surface, void *gradient, int x, int y, int w, int h, double angle, int spread); - void *(*image_load) (void *data, const char *file, const char *key, int *error); + void *(*image_load) (void *data, const char *file, const char *key, int *error, Evas_Image_Load_Opts *lo); void *(*image_new_from_data) (void *data, int w, int h, DATA32 *image_data); void *(*image_new_from_copied_data) (void *data, int w, int h, DATA32 *image_data); void (*image_free) (void *data, void *image); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs