controller: port to new controller location and api
[platform/upstream/gstreamer.git] / gst / effectv / gstop.h
1 /* GStreamer
2  * Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk>
3  *
4  * EffecTV - Realtime Digital Video Effector
5  * Copyright (C) 2001-2006 FUKUCHI Kentaro
6  *
7  * OpTV - Optical art meets real-time video effect.
8  * Copyright (C) 2004-2005 FUKUCHI Kentaro
9  *
10  * EffecTV is free software. This library is free software;
11  * you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the
23  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24  * Boston, MA 02111-1307, USA.
25  */
26
27 #ifndef __GST_OP_H__
28 #define __GST_OP_H__
29
30 #include <gst/gst.h>
31
32 #include <gst/video/video.h>
33 #include <gst/video/gstvideofilter.h>
34
35 G_BEGIN_DECLS
36
37 #define GST_TYPE_OPTV \
38   (gst_optv_get_type())
39 #define GST_OPTV(obj) \
40   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OPTV,GstOpTV))
41 #define GST_OPTV_CLASS(klass) \
42   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OPTV,GstOpTVClass))
43 #define GST_IS_OPTV(obj) \
44   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OPTV))
45 #define GST_IS_OPTV_CLASS(klass) \
46   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OPTV))
47
48 typedef struct _GstOpTV GstOpTV;
49 typedef struct _GstOpTVClass GstOpTVClass;
50
51 struct _GstOpTV
52 {
53   GstVideoFilter element;
54
55   /* < private > */
56   GstVideoInfo info;
57
58   gint mode;
59   gint speed;
60   guint threshold;
61
62   gint8 *opmap[4];
63   guint8 *diff;
64   guint8 phase;
65 };
66
67 struct _GstOpTVClass
68 {
69   GstVideoFilterClass parent_class;
70 };
71
72 GType gst_optv_get_type (void);
73
74 G_END_DECLS
75
76 #endif /* __GST_OP_H__ */