blob: 4c14c976e642bcafa3885165659e23320b514584 [file] [log] [blame]
Sebastian Dröge414d0542009-06-16 20:13:35 +02001/* 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
Tim-Philipp Müller230cf412012-11-04 00:07:18 +000025 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
26 * Boston, MA 02110-1301, USA.
Sebastian Dröge414d0542009-06-16 20:13:35 +020027 */
28
29#ifndef __GST_DICE_H__
30#define __GST_DICE_H__
31
32#include <gst/gst.h>
33
Wim Taymansa1b4b082011-07-06 18:32:45 +020034#include <gst/video/video.h>
Sebastian Dröge414d0542009-06-16 20:13:35 +020035#include <gst/video/gstvideofilter.h>
36
37G_BEGIN_DECLS
38
39#define GST_TYPE_DICETV \
40 (gst_dicetv_get_type())
41#define GST_DICETV(obj) \
42 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DICETV,GstDiceTV))
43#define GST_DICETV_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DICETV,GstDiceTVClass))
45#define GST_IS_DICETV(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DICETV))
47#define GST_IS_DICETV_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DICETV))
49
50typedef struct _GstDiceTV GstDiceTV;
51typedef struct _GstDiceTVClass GstDiceTVClass;
52
53struct _GstDiceTV
54{
55 GstVideoFilter videofilter;
56
Sebastian Dröge55535c72009-06-16 20:38:42 +020057 /* < private > */
Sebastian Dröge414d0542009-06-16 20:13:35 +020058 guint8 *dicemap;
59
60 gint g_cube_bits;
61 gint g_cube_size;
62 gint g_map_height;
63 gint g_map_width;
64};
65
66struct _GstDiceTVClass
67{
68 GstVideoFilterClass parent_class;
69};
70
71GType gst_dicetv_get_type (void);
72
73G_END_DECLS
74
75#endif /* __GST_DICE_H__ */