Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_thumb
Modified Files:
Esmart_Thumb.h esmart_thumb.c
Log Message:
use Evas_Coord in the esmart test, and use latest epsilon api
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_thumb/Esmart_Thumb.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Esmart_Thumb.h 17 Oct 2004 11:58:12 -0000 1.3
+++ Esmart_Thumb.h 17 Oct 2004 17:54:22 -0000 1.4
@@ -84,6 +84,20 @@
* Returns 1 if exif data is present in the esmart_thumb, 0 if not
*/
int esmart_thumb_exif_get (Evas_Object * o);
+/**
+ * esmart_thumb_exif_data_as_string_get - Get an exif tag as a string
+ * @o - The smart object we're curious about
+ * @prop - The exif prop you want
+ * Returns NULL if not found, string value for the tag if present
+ */
+const char* esmart_thumb_exif_data_as_string_get(Evas_Object * o, int lvl, int prop);
+/**
+ * esmart_thumb_exif_data_as_int_get - Get an exif tag as an int
+ * @o - The smart object we're curious about
+ * @prop - The exif prop you want
+ * Returns -1 if not found, string value for the tag if present
+ */
+int esmart_thumb_exif_data_as_int_get(Evas_Object * o, int lvl, int prop);
#ifdef __cplusplus
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/esmart/src/lib/esmart_thumb/esmart_thumb.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- esmart_thumb.c 17 Oct 2004 11:58:12 -0000 1.8
+++ esmart_thumb.c 17 Oct 2004 17:54:22 -0000 1.9
@@ -76,7 +76,7 @@
if (epsilon_info_exif_get (e->info))
{
switch (epsilon_info_exif_props_as_int_get
- (e->info, 0x0112))
+ (e->info, EPSILON_ED_IMG, 0x0112))
{
case 3:
imlib_image_orientate (2);
@@ -187,7 +187,8 @@
e->info = epsilon_info_get (e->e);
if (orient && epsilon_info_exif_get (e->info))
{
- switch (epsilon_info_exif_props_as_int_get (e->info, 0x0112))
+ switch (epsilon_info_exif_props_as_int_get (e->info,
+ EPSILON_ED_IMG, 0x0112))
{
case 3:
if ((im = imlib_load_image (e->e->src)))
@@ -328,6 +329,46 @@
}
return (result);
}
+const char*
+esmart_thumb_exif_data_as_string_get(Evas_Object * o, int lvl, int prop)
+{
+ const char *result = NULL;
+ if (o)
+ {
+ Esmart_Thumb *e = NULL;
+ if ((e = (Esmart_Thumb *) evas_object_smart_data_get (o)))
+ {
+ Epsilon_Info *ei = NULL;
+ if(e->e) {
+ if((ei = epsilon_info_get(e->e))) {
+ result = epsilon_info_exif_props_as_string_get(ei,
+ (unsigned short)lvl, prop);
+ }
+ }
+ }
+ }
+ return (result);
+}
+int
+esmart_thumb_exif_data_as_int_get(Evas_Object * o, int lvl, int prop)
+{
+ int result = -1;
+ if (o)
+ {
+ Esmart_Thumb *e = NULL;
+ if ((e = (Esmart_Thumb *) evas_object_smart_data_get (o)))
+ {
+ Epsilon_Info *ei = NULL;
+ if(e->e) {
+ if((ei = epsilon_info_get(e->e))) {
+ result = epsilon_info_exif_props_as_int_get(ei,
+ (unsigned short)lvl, prop);
+ }
+ }
+ }
+ }
+ return (result);
+}
/*==========================================================================
* Smart Object Functions
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs