From f3d2d6f938dd25176d63db65fb2a4524b6c63514 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 11 Nov 2003 22:43:24 +0000 Subject: update GdkPixbuf loader. Fixes: Original commit message from CVS: update GdkPixbuf loader. Fixes: - has a begin_load implementation - makes sure it only works when threads are enabled (this fixes segfaults with gtk 2.3) There are still some kinks though, feel free to hack on it :) --- ext/gdk_pixbuf/gstgdkanimation.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'ext/gdk_pixbuf/gstgdkanimation.h') diff --git a/ext/gdk_pixbuf/gstgdkanimation.h b/ext/gdk_pixbuf/gstgdkanimation.h index de5ce053..1ac48675 100644 --- a/ext/gdk_pixbuf/gstgdkanimation.h +++ b/ext/gdk_pixbuf/gstgdkanimation.h @@ -52,13 +52,13 @@ struct _GstGdkAnimation gchar * temp_location; /* file descriptor to temporary file or 0 if we're done writing */ int temp_fd; - /* functions to notify the loader */ - /* size of image */ gint width; gint height; gint bpp; + /* static image we use */ + GdkPixbuf * pixbuf; }; struct _GstGdkAnimationClass @@ -66,9 +66,14 @@ struct _GstGdkAnimationClass GdkPixbufAnimationClass parent_class; }; -GType gst_gdk_animation_get_type (void); +GType gst_gdk_animation_get_type (void); + +GstGdkAnimation * gst_gdk_animation_new (GError **error); -GdkPixbufAnimation *gst_gdk_animation_new_from_file (FILE *f, GError **error); +gboolean gst_gdk_animation_add_data (GstGdkAnimation * ani, + const guint8 * data, + guint size); +void gst_gdk_animation_done_adding (GstGdkAnimation * ani); #define GST_TYPE_GDK_ANIMATION_ITER (gst_gdk_animation_iter_get_type ()) -- cgit