summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/pixbufscale.h
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2006-02-24 19:51:29 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2006-02-24 19:51:29 +0000
commit73a6055bdf16990ff6abaed612b8527db439a9f8 (patch)
tree3debfbff45726f289fcb709da89881795d1aa790 /ext/gdk_pixbuf/pixbufscale.h
parent96c1cd6e0a6c1328eed7bbf680ecfbad82c92c72 (diff)
I'm too lazy to comment this
Original commit message from CVS: Gdkpixbuf ported from 0.8 to 0.10 by Renato Filho <renato.filho@indt.org.br>. gst_loader and gdkpixbufanimation still need port.
Diffstat (limited to 'ext/gdk_pixbuf/pixbufscale.h')
-rw-r--r--ext/gdk_pixbuf/pixbufscale.h29
1 files changed, 14 insertions, 15 deletions
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 <gtk/gtk.h>
#include <gst/gst.h>
+#include <gst/base/gstbasetransform.h>
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);