upload tizen1.0 source
[framework/multimedia/gst-plugins-good0.10.git] / gst / effectv / gstradioac.h
1 /* GStreamer
2  * Cradioacyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk>
3  *
4  * EffecTV - Realtime Digital Video Effector
5  * Cradioacyright (C) 2001-2006 FUKUCHI Kentaro
6  *
7  * RadioacTV - motion-enlightment effect.
8  * Copyright (C) 2001-2002 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 radioaction) any later version.
15  *
16  * This library is distributed in the hradioace 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 cradioacy 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_RADIOAC_H__
28 #define __GST_RADIOAC_H__
29
30 #include <gst/gst.h>
31
32 #include <gst/video/gstvideofilter.h>
33
34 G_BEGIN_DECLS
35
36 #define GST_TYPE_RADIOACTV \
37   (gst_radioactv_get_type())
38 #define GST_RADIOACTV(obj) \
39   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RADIOACTV,GstRadioacTV))
40 #define GST_RADIOACTV_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RADIOACTV,GstRadioacTVClass))
42 #define GST_IS_RADIOACTV(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RADIOACTV))
44 #define GST_IS_RADIOACTV_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RADIOACTV))
46
47 typedef struct _GstRadioacTV GstRadioacTV;
48 typedef struct _GstRadioacTVClass GstRadioacTVClass;
49
50 struct _GstRadioacTV
51 {
52   GstVideoFilter element;
53
54   /* < private > */
55   gint width, height;
56
57   gint mode;
58   gint color;
59   guint interval;
60   gboolean trigger;
61
62   gint snaptime;
63
64   guint32 *snapframe;
65   guint8 *blurzoombuf;
66   guint8 *diff;
67   gint16 *background;
68   gint *blurzoomx;
69   gint *blurzoomy;
70
71   gint buf_width_blocks;
72   gint buf_width;
73   gint buf_height;
74   gint buf_area;
75   gint buf_margin_right;
76   gint buf_margin_left;
77 };
78
79 struct _GstRadioacTVClass
80 {
81   GstVideoFilterClass parent_class;
82 };
83
84 GType gst_radioactv_get_type (void);
85
86 G_END_DECLS
87
88 #endif /* __GST_RADIOAC_H__ */