GNOME Bugzilla – Bug 572297
Exposure of animation details of a GdkPixbufAnimation
Last modified: 2018-05-22 13:09:44 UTC
To handle an animation based on a GdkPixbufAnimation correctly we need to know the duration and the amount of frames. These information are already saved inside the private data structures of the backends that provide animation support. The following patch simply exposes these information. The patch is tested for the gif backend but not for the ani and gdip backends.
Created attachment 129003 [details] [review] The mentioned patch
This feature request has a connection to Bug 358109. At least the the get_animation_time should be considered useful. With "get_frame_count" it would also be possible to compute the right FPS. Maybe this patch can move to 358109.
You are missing documentation of the new functions.
(In reply to comment #3) > You are missing documentation of the new functions. > Thanks for the hint, I'll have a look on this over Easter.
Review of attachment 129003 [details] [review]: The patch needs to be git-formatted. Tests that check the results of those functions would also be useful in a separate patch.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdk-pixbuf/issues/19.