summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-09-04 16:14:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:15 +0900
commit97d9fab7042f213498268dfc58636b823380245c (patch)
tree344ac20e4aa4854d23dba9f7afada5b6a2759e65 /src/bin
parentbfe3fe27df9384642d8f3b277ec694c9d42fc0c9 (diff)
evas/cserve2: Fallback to normal cache for animated gifs
Pass around "animated" flag for images that can be animated. Fallback to local cache if the image is animated. Implementing support for animated images in cserve2 does not seem to make a lot of sense considering each frame must be requested independently in real time,... and to be honest there doesn't seem to be any valid use case anyway :)
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/evas/evas_cserve2_cache.c2
-rw-r--r--src/bin/evas/evas_cserve2_shm_debug.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_cache.c b/src/bin/evas/evas_cserve2_cache.c
index 40cd55df4b..83923d48c9 100644
--- a/src/bin/evas/evas_cserve2_cache.c
+++ b/src/bin/evas/evas_cserve2_cache.c
@@ -444,6 +444,7 @@ _image_opened_msg_create(File_Data *fd, int *size)
444 msg->image.loop_count = fd->loop_count; 444 msg->image.loop_count = fd->loop_count;
445 msg->image.loop_hint = fd->loop_hint; 445 msg->image.loop_hint = fd->loop_hint;
446 msg->image.alpha = fd->alpha; 446 msg->image.alpha = fd->alpha;
447 msg->image.animated = fd->animated;
447 448
448 *size = sizeof(*msg); 449 *size = sizeof(*msg);
449 450
@@ -615,6 +616,7 @@ _open_request_response(Entry *entry, Slave_Msg_Image_Opened *resp, int *size)
615 616
616 fd->w = resp->w; 617 fd->w = resp->w;
617 fd->h = resp->h; 618 fd->h = resp->h;
619 fd->animated = resp->animated;
618 fd->frame_count = resp->frame_count; 620 fd->frame_count = resp->frame_count;
619 fd->loop_count = resp->loop_count; 621 fd->loop_count = resp->loop_count;
620 fd->loop_hint = resp->loop_hint; 622 fd->loop_hint = resp->loop_hint;
diff --git a/src/bin/evas/evas_cserve2_shm_debug.c b/src/bin/evas/evas_cserve2_shm_debug.c
index 426fd67a95..49bae201f0 100644
--- a/src/bin/evas/evas_cserve2_shm_debug.c
+++ b/src/bin/evas/evas_cserve2_shm_debug.c
@@ -519,7 +519,8 @@ _images_all_print_full(void)
519 printf(" Loader: %s\n", 519 printf(" Loader: %s\n",
520 _shared_string_get(fd->loader_data)); 520 _shared_string_get(fd->loader_data));
521 printf(" Geometry: %dx%d\n", fd->w, fd->h); 521 printf(" Geometry: %dx%d\n", fd->w, fd->h);
522 printf(" Animation: frames: %d, loop: %d, hint: %d\n", 522 printf(" Animation: anim: %s, frames: %d, loop: %d, hint: %d\n",
523 fd->animated ? "YES" : "NO",
523 fd->frame_count, fd->loop_count, fd->loop_hint); 524 fd->frame_count, fd->loop_count, fd->loop_hint);
524 printf(" Alpha: %s\n", fd->alpha ? "YES" : "NO"); 525 printf(" Alpha: %s\n", fd->alpha ? "YES" : "NO");
525 printf(" Invalid: %s\n", fd->invalid ? "YES" : "NO"); 526 printf(" Invalid: %s\n", fd->invalid ? "YES" : "NO");