Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / effectv / gstripple.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  * RippleTV - Water ripple 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 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_RIPPLE_H__
28 #define __GST_RIPPLE_H__
29
30 #include <gst/gst.h>
31
32 #include <gst/video/gstvideofilter.h>
33
34 G_BEGIN_DECLS
35
36 #define GST_TYPE_RIPPLETV \
37   (gst_rippletv_get_type())
38 #define GST_RIPPLETV(obj) \
39   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RIPPLETV,GstRippleTV))
40 #define GST_RIPPLETV_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RIPPLETV,GstRippleTVClass))
42 #define GST_IS_RIPPLETV(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RIPPLETV))
44 #define GST_IS_RIPPLETV_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RIPPLETV))
46
47 typedef struct _GstRippleTV GstRippleTV;
48 typedef struct _GstRippleTVClass GstRippleTVClass;
49
50 struct _GstRippleTV
51 {
52   GstVideoFilter element;
53
54   /* < private > */
55   gint width, height;
56
57   gint mode;
58
59   gint16 *background;
60   guint8 *diff;
61
62   gint *map, *map1, *map2, *map3;
63   gint map_h, map_w;
64
65   gint8 *vtable;
66
67   gboolean bg_is_set;
68
69   gint period;
70   gint rain_stat;
71   guint drop_prob;
72   gint drop_prob_increment;
73   gint drops_per_frame_max;
74   gint drops_per_frame;
75   gint drop_power;
76 };
77
78 struct _GstRippleTVClass
79 {
80   GstVideoFilterClass parent_class;
81 };
82
83 GType gst_rippletv_get_type (void);
84
85 G_END_DECLS
86
87 #endif /* __GST_RIPPLE_H__ */