summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_smart.c
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2017-01-12 14:09:49 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-01-12 14:37:19 -0800
commit1f9e915b5a001b4f4845defda559434b35588e96 (patch)
treed54da0c896305fab2b89fcf648af6b44ad01a0c0 /src/lib/emotion/emotion_smart.c
parent50c9d1aeaa9172e4b6492eabd0da49aafd3523bb (diff)
emotion: add support for obtaining embedded artwork from media files with gstreamer1 backend.
Reviewers: raster, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4550 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/emotion/emotion_smart.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 8ba69400b7..93cf1975ff 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1262,6 +1262,26 @@ emotion_object_meta_info_get(const Evas_Object *obj, Emotion_Meta_Info meta)
1262 return emotion_engine_instance_meta_get(sd->engine_instance, id); 1262 return emotion_engine_instance_meta_get(sd->engine_instance, id);
1263} 1263}
1264 1264
1265
1266EAPI Evas_Object *
1267emotion_file_meta_artwork_get(const Evas_Object *obj, const char *path, Emotion_Artwork_Info type)
1268{
1269 Efl_Canvas_Video_Data *sd;
1270 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, NULL);
1271 if (!sd->engine_instance) return NULL;
1272
1273 Evas *ev = evas_object_evas_get(obj);
1274 Evas_Object *artwork = evas_object_image_add(ev);
1275
1276 Evas_Object *result = emotion_engine_instance_meta_artwork_get(sd->engine_instance, artwork, path, type);
1277 if (!result) return NULL;
1278
1279 Evas_Load_Error _error = evas_object_image_load_error_get(result);
1280 if (_error != EVAS_LOAD_ERROR_NONE) return NULL;
1281
1282 return result;
1283}
1284
1265EAPI void 1285EAPI void
1266emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization) 1286emotion_object_vis_set(Evas_Object *obj, Emotion_Vis visualization)
1267{ 1287{