Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / effectv / gstdice.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  * Copyright (C) <2009> Sebastian Dröge <sebastian.droege@collabora.co.uk>
4  *
5  * dice.c: a 'dicing' effect
6  *  copyright (c) 2001 Sam Mertens.  This code is subject to the provisions of
7  *  the GNU Library Public License.
8  *
9  * I suppose this looks similar to PuzzleTV, but it's not. The screen is
10  * divided into small squares, each of which is rotated either 0, 90, 180 or
11  * 270 degrees.  The amount of rotation for each square is chosen at random.
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the
25  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26  * Boston, MA 02111-1307, USA.
27  */
28
29 #ifndef __GST_DICE_H__
30 #define __GST_DICE_H__
31
32 #include <gst/gst.h>
33
34 #include <gst/video/gstvideofilter.h>
35
36 G_BEGIN_DECLS
37
38 #define GST_TYPE_DICETV \
39   (gst_dicetv_get_type())
40 #define GST_DICETV(obj) \
41   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DICETV,GstDiceTV))
42 #define GST_DICETV_CLASS(klass) \
43   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DICETV,GstDiceTVClass))
44 #define GST_IS_DICETV(obj) \
45   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DICETV))
46 #define GST_IS_DICETV_CLASS(klass) \
47   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DICETV))
48
49 typedef struct _GstDiceTV GstDiceTV;
50 typedef struct _GstDiceTVClass GstDiceTVClass;
51
52 struct _GstDiceTV
53 {
54   GstVideoFilter videofilter;
55
56   /* < private > */
57
58   gint width, height;
59   guint8 *dicemap;
60
61   gint g_cube_bits;
62   gint g_cube_size;
63   gint g_map_height;
64   gint g_map_width;
65 };
66
67 struct _GstDiceTVClass
68 {
69   GstVideoFilterClass parent_class;
70 };
71
72 GType gst_dicetv_get_type (void);
73
74 G_END_DECLS
75
76 #endif /* __GST_DICE_H__ */