2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3 * Copyright (C) <2004> Jan Schmidt <thaytan@mad.scientist.com>
4 * Copyright (C) <2004> Tim-Philipp Mueller <t.i.m@orange.net>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #ifndef __GST_PIXBUFSCALE_H__
24 #define __GST_PIXBUFSCALE_H__
28 #include <gst/base/gstbasetransform.h>
32 #define GST_TYPE_PIXBUFSCALE \
33 (gst_pixbufscale_get_type())
34 #define GST_PIXBUFSCALE(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PIXBUFSCALE,GstPixbufScale))
36 #define GST_PIXBUFSCALE_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PIXBUFSCALE,GstPixbufScaleClass))
38 #define GST_IS_PIXBUFSCALE(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PIXBUFSCALE))
40 #define GST_IS_PIXBUFSCALE_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PIXBUFSCALE))
44 GST_PIXBUFSCALE_NEAREST,
45 GST_PIXBUFSCALE_TILES,
46 GST_PIXBUFSCALE_BILINEAR,
48 } GstPixbufScaleMethod;
51 typedef struct _GstPixbufScale GstPixbufScale;
52 typedef struct _GstPixbufScaleClass GstPixbufScaleClass;
54 struct _GstPixbufScale {
55 GstBaseTransform element;
64 GstPixbufScaleMethod method;
65 GdkInterpType gdk_method;
74 struct _GstPixbufScaleClass {
75 GstBaseTransformClass parent_class;
78 static GType gst_pixbufscale_get_type(void);
82 #endif /* __GST_PIXBUFSCALE_H__ */