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

parent 92a3408c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment