summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkanimation.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 22:34:33 +0000
commit5d25c00e4b613b9cdf2c04fa3a68dffa03834a68 (patch)
tree74a5b1eaf3a324b520e64e87404fd0b3018a7829 /ext/gdk_pixbuf/gstgdkanimation.h
parent1e83b097f7b732ae49e294a5a398bdc3e88854a8 (diff)
gst-indent
Original commit message from CVS: gst-indent
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkanimation.h')
-rw-r--r--ext/gdk_pixbuf/gstgdkanimation.h72
1 files changed, 35 insertions, 37 deletions
diff --git a/ext/gdk_pixbuf/gstgdkanimation.h b/ext/gdk_pixbuf/gstgdkanimation.h
index 183d335e..8dc0d4ef 100644
--- a/ext/gdk_pixbuf/gstgdkanimation.h
+++ b/ext/gdk_pixbuf/gstgdkanimation.h
@@ -27,20 +27,16 @@
#include <stdio.h>
G_BEGIN_DECLS
-
/* how many bytes we need to have available before we dare to start a new iteration */
#define GST_GDK_BUFFER_SIZE (102400)
/* how far behind we need to be before we attempt to seek */
#define GST_GDK_MAX_DELAY_TO_SEEK (GST_SECOND / 4)
-
-
#define GST_TYPE_GDK_ANIMATION (gst_gdk_animation_get_type())
#define GST_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_GDK_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_IS_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GDK_ANIMATION))
#define GST_IS_GDK_ANIMATION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GDK_ANIMATION))
-
-typedef struct _GstGdkAnimation GstGdkAnimation;
+typedef struct _GstGdkAnimation GstGdkAnimation;
typedef struct _GstGdkAnimationClass GstGdkAnimationClass;
typedef struct _GstGdkAnimationIter GstGdkAnimationIter;
@@ -48,34 +44,33 @@ typedef struct _GstGdkAnimationIterClass GstGdkAnimationIterClass;
struct _GstGdkAnimation
{
- GdkPixbufAnimation parent;
+ GdkPixbufAnimation parent;
/* name of temporary buffer file */
- gchar * temp_location;
+ gchar *temp_location;
/* file descriptor to temporary file or 0 if we're done writing */
- int temp_fd;
+ int temp_fd;
/* size of image */
- gint width;
- gint height;
- gint bpp;
+ gint width;
+ gint height;
+ gint bpp;
/* static image we use */
- GdkPixbuf * pixbuf;
+ GdkPixbuf *pixbuf;
};
-struct _GstGdkAnimationClass
+struct _GstGdkAnimationClass
{
- GdkPixbufAnimationClass parent_class;
+ GdkPixbufAnimationClass parent_class;
};
-GType gst_gdk_animation_get_type (void);
+GType gst_gdk_animation_get_type (void);
-GstGdkAnimation * gst_gdk_animation_new (GError **error);
+GstGdkAnimation *gst_gdk_animation_new (GError ** error);
-gboolean gst_gdk_animation_add_data (GstGdkAnimation * ani,
- const guint8 * data,
- guint size);
-void gst_gdk_animation_done_adding (GstGdkAnimation * ani);
+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 ())
@@ -86,32 +81,35 @@ void gst_gdk_animation_done_adding (GstGdkAnimation * ani);
#define GST_IS_GDK_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GDK_ANIMATION_ITER))
#define GST_GDK_ANIMATION_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIterClass))
-struct _GstGdkAnimationIter {
- GdkPixbufAnimationIter parent;
-
+struct _GstGdkAnimationIter
+{
+ GdkPixbufAnimationIter parent;
+
/* our animation */
- GstGdkAnimation * ani;
+ GstGdkAnimation *ani;
/* start timeval */
- GTimeVal start;
+ GTimeVal start;
/* timestamp of last buffer */
- GstClockTime last_timestamp;
-
+ GstClockTime last_timestamp;
+
/* pipeline we're using */
- GstElement * pipeline;
- gboolean eos;
- gboolean just_seeked;
-
+ GstElement *pipeline;
+ gboolean eos;
+ gboolean just_seeked;
+
/* current image and the buffers containing the data */
- GdkPixbuf * pixbuf;
- GQueue * buffers;
+ GdkPixbuf *pixbuf;
+ GQueue *buffers;
};
-struct _GstGdkAnimationIterClass {
- GdkPixbufAnimationIterClass parent_class;
+struct _GstGdkAnimationIterClass
+{
+ GdkPixbufAnimationIterClass parent_class;
};
-GType gst_gdk_animation_iter_get_type (void) G_GNUC_CONST;
+GType
+gst_gdk_animation_iter_get_type (void)
+ G_GNUC_CONST;
G_END_DECLS
-
#endif /* __GST_GDK_ANIMATION_H__ */