[gegl] gif-load: return decoded frames duration in an out property



commit cf7eacb750dc469356b13019564bc1b929133905
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Sep 12 18:04:05 2018 +0200

    gif-load: return decoded frames duration in an out property

 operations/workshop/gif-load.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/operations/workshop/gif-load.c b/operations/workshop/gif-load.c
index 31f130c2e..fe982b0d2 100644
--- a/operations/workshop/gif-load.c
+++ b/operations/workshop/gif-load.c
@@ -37,6 +37,8 @@ property_int (frame, _("frame"), 0)
   description (_("frame number to decode"))
 property_int (frames, _("frames"), 0)
   description (_("Number of frames in gif animation"))
+property_int (frame_delay, _("frame-delay"), 100)
+  description (_("Delay in ms for last decoded frame"))
 
 #else
 
@@ -188,7 +190,7 @@ process (GeglOperation       *operation,
   gegl_buffer_set (output, result, 0, p->format,
                    p->gif.frame_image,
                    p->gif.width * 4);
-
+  o->frame_delay = p->gif.frames[o->frame].frame_delay * 10;
   return FALSE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]