Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / effectv / gstvertigo.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * EffecTV:
5  * Copyright (C) 2001 FUKUCHI Kentarou
6  *
7  * EffecTV is free software. This library is free software;
8  * you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GST_VERTIGO_H__
25 #define __GST_VERTIGO_H__
26
27 #include <gst/gst.h>
28
29 #include <gst/video/gstvideofilter.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_TYPE_VERTIGOTV \
34   (gst_vertigotv_get_type())
35 #define GST_VERTIGOTV(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VERTIGOTV,GstVertigoTV))
37 #define GST_VERTIGOTV_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VERTIGOTV,GstVertigoTVClass))
39 #define GST_IS_VERTIGOTV(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VERTIGOTV))
41 #define GST_IS_VERTIGOTV_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VERTIGOTV))
43
44 typedef struct _GstVertigoTV GstVertigoTV;
45 typedef struct _GstVertigoTVClass GstVertigoTVClass;
46
47 struct _GstVertigoTV
48 {
49   GstVideoFilter videofilter;
50
51   /* < private > */
52
53   gint width, height;
54   guint32 *buffer;
55   guint32 *current_buffer, *alt_buffer;
56   gint dx, dy;
57   gint sx, sy;
58   gdouble phase;
59   gdouble phase_increment;
60   gdouble zoomrate;
61 };
62
63 struct _GstVertigoTVClass
64 {
65   GstVideoFilterClass parent_class;
66 };
67
68 GType gst_vertigotv_get_type (void);
69
70 G_END_DECLS
71
72 #endif /* __GST_VERTIGO_H__ */