ci: use 8 parallel jobs for the integration test suite
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-good / 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., 51 Franklin St, Fifth Floor,
26  * Boston, MA 02110-1301, USA.
27  */
28
29 #ifndef __GST_DICE_H__
30 #define __GST_DICE_H__
31
32 #include <gst/gst.h>
33
34 #include <gst/video/video.h>
35 #include <gst/video/gstvideofilter.h>
36
37 G_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
50 typedef struct _GstDiceTV GstDiceTV;
51 typedef struct _GstDiceTVClass GstDiceTVClass;
52
53 struct _GstDiceTV
54 {
55   GstVideoFilter videofilter;
56
57   /* < private > */
58   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
66 struct _GstDiceTVClass
67 {
68   GstVideoFilterClass parent_class;
69 };
70
71 GType gst_dicetv_get_type (void);
72
73 G_END_DECLS
74
75 #endif /* __GST_DICE_H__ */