hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3b1eede582cd58b03e46ed35e96ed9cb358cd060

commit 3b1eede582cd58b03e46ed35e96ed9cb358cd060
Author: Taehyub Kim <[email protected]>
Date:   Thu Nov 4 16:38:48 2021 +0900

    efl_canvas_image : remove the animated image limitation
    
    Summary: remove FRAME_MAX limitation to play the huge animated image which 
has more than 1024 frames
    
    Test Plan: load gif image which has more than 1024 frames
    
    Reviewers: Hermet, kimcinoo
    
    Reviewed By: Hermet
    
    Subscribers: raster, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D12303
---
 src/lib/evas/canvas/efl_canvas_image.c   | 3 +--
 src/lib/evas/canvas/evas_image_private.h | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/lib/evas/canvas/efl_canvas_image.c 
b/src/lib/evas/canvas/efl_canvas_image.c
index d78f1f675b..f4a8cb1f22 100644
--- a/src/lib/evas/canvas/efl_canvas_image.c
+++ b/src/lib/evas/canvas/efl_canvas_image.c
@@ -599,8 +599,7 @@ _evas_image_animated_frame_set(Eo *eo_obj, int frame_index)
    evas_object_async_block(obj);
    frame_count = evas_object_image_animated_frame_count_get(eo_obj);
 
-   /* limit the size of frame to FRAME_MAX */
-   if ((frame_count > FRAME_MAX) || (frame_count < 0) || (frame_index > 
frame_count))
+   if ((frame_count < 0) || (frame_index > frame_count))
      return EINA_FALSE;
 
    if (!ENFN->image_animated_frame_set) return EINA_FALSE;
diff --git a/src/lib/evas/canvas/evas_image_private.h 
b/src/lib/evas/canvas/evas_image_private.h
index 693125fb84..f8888d71ad 100644
--- a/src/lib/evas/canvas/evas_image_private.h
+++ b/src/lib/evas/canvas/evas_image_private.h
@@ -254,6 +254,4 @@ void _evas_image_load(Evas_Object *eo_obj, 
Evas_Object_Protected_Data *obj, Evas
        EINA_COW_IMAGE_STATE_WRITE_END(Obj, cur_write);                  \
     }
 
-#define FRAME_MAX 1024
-
 #endif // EVAS_IMAGE_PRIVATE_H

-- 


Reply via email to