Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / effectv / gstaging.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) <2003> David Schleef <ds@schleef.org>
4  * Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk>
5  *
6  * EffecTV - Realtime Digital Video Effector
7  * Copyright (C) 2001-2002 FUKUCHI Kentarou
8  *
9  * AgingTV - film-aging effect.
10  *
11  * This library is free software; 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_AGING_H__
28 #define __GST_AGING_H__
29
30 #include <gst/gst.h>
31
32 #include <gst/video/gstvideofilter.h>
33
34 G_BEGIN_DECLS
35
36 #define GST_TYPE_AGINGTV \
37   (gst_agingtv_get_type())
38 #define GST_AGINGTV(obj) \
39   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AGINGTV,GstAgingTV))
40 #define GST_AGINGTV_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AGINGTV,GstAgingTVClass))
42 #define GST_IS_AGINGTV(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AGINGTV))
44 #define GST_IS_AGINGTV_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AGINGTV))
46
47 typedef struct _scratch
48 {
49   gint life;
50   gint x;
51   gint dx;
52   gint init;
53 } scratch;
54 #define SCRATCH_MAX 20
55
56 typedef struct _GstAgingTV GstAgingTV;
57 typedef struct _GstAgingTVClass GstAgingTVClass;
58
59 struct _GstAgingTV
60 {
61   GstVideoFilter videofilter;
62
63   /* < private > */
64
65   gint width, height;
66
67   gboolean color_aging;
68   gboolean pits;
69   gboolean dusts;
70
71   gint coloraging_state;
72
73   scratch scratches[SCRATCH_MAX];
74   gint scratch_lines;
75
76   gint dust_interval;
77   gint pits_interval;
78
79 };
80
81 struct _GstAgingTVClass
82 {
83   GstVideoFilterClass parent_class;
84 };
85
86 GType gst_agingtv_get_type (void);
87
88 G_END_DECLS
89
90 #endif /* __GST_AGING_H__ */
91