From 73a6055bdf16990ff6abaed612b8527db439a9f8 Mon Sep 17 00:00:00 2001 From: Edgard Lima Date: Fri, 24 Feb 2006 19:51:29 +0000 Subject: I'm too lazy to comment this Original commit message from CVS: Gdkpixbuf ported from 0.8 to 0.10 by Renato Filho . gst_loader and gdkpixbufanimation still need port. --- ext/gdk_pixbuf/pixbufscale.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'ext/gdk_pixbuf/pixbufscale.h') diff --git a/ext/gdk_pixbuf/pixbufscale.h b/ext/gdk_pixbuf/pixbufscale.h index 0d9b10fe..275a0b72 100644 --- a/ext/gdk_pixbuf/pixbufscale.h +++ b/ext/gdk_pixbuf/pixbufscale.h @@ -25,9 +25,21 @@ #include #include +#include G_BEGIN_DECLS +#define GST_TYPE_PIXBUFSCALE \ + (gst_pixbufscale_get_type()) +#define GST_PIXBUFSCALE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIXBUFSCALE,GstPixbufScale)) +#define GST_PIXBUFSCALE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIXBUFSCALE,GstPixbufScale)) +#define GST_IS_PIXBUFSCALE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIXBUFSCALE)) +#define GST_IS_PIXBUFSCALE_CLASS(obj) \ + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIXBUFSCALE)) + typedef enum { GST_PIXBUFSCALE_NEAREST, GST_PIXBUFSCALE_TILES, @@ -35,27 +47,14 @@ typedef enum { GST_PIXBUFSCALE_HYPER } GstPixbufScaleMethod; -#define GST_TYPE_PIXBUFSCALE \ - (gst_pixbufscale_get_type()) -#define GST_PIXBUFSCALE(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIXBUFSCALE,GstPixbufScale)) -#define GST_PIXBUFSCALE_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIXBUFSCALE,GstPixbufScale)) -#define GST_IS_PIXBUFSCALE(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIXBUFSCALE)) -#define GST_IS_PIXBUFSCALE_CLASS(obj) \ - (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIXBUFSCALE)) typedef struct _GstPixbufScale GstPixbufScale; typedef struct _GstPixbufScaleClass GstPixbufScaleClass; struct _GstPixbufScale { - GstElement element; - - GstPad *sinkpad,*srcpad; + GstBaseTransform element; /* video state */ - gboolean inited; gint to_width; gint to_height; gint from_width; @@ -73,7 +72,7 @@ struct _GstPixbufScale { }; struct _GstPixbufScaleClass { - GstElementClass parent_class; + GstBaseTransformClass parent_class; }; static GType gst_pixbufscale_get_type(void); -- cgit