controller: rename control-bindings
[platform/upstream/gstreamer.git] / libs / gst / controller / gstargbcontrolbinding.h
1 /* GStreamer
2  *
3  * Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
4  *
5  * gstargbcontrolbinding.h: Attachment for multiple control sources to gargb
6  *                            properties
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GST_ARGB_CONTROL_BINDING_H__
25 #define __GST_ARGB_CONTROL_BINDING_H__
26
27 #include <gst/gstconfig.h>
28
29 #include <glib-object.h>
30
31 #include <gst/gstcontrolsource.h>
32
33 G_BEGIN_DECLS
34
35 #define GST_TYPE_ARGB_CONTROL_BINDING \
36   (gst_argb_control_binding_get_type())
37 #define GST_ARGB_CONTROL_BINDING(obj) \
38   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ARGB_CONTROL_BINDING,GstARGBControlBinding))
39 #define GST_ARGB_CONTROL_BINDING_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ARGB_CONTROL_BINDING,GstARGBControlBindingClass))
41 #define GST_IS_ARGB_CONTROL_BINDING(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ARGB_CONTROL_BINDING))
43 #define GST_IS_ARGB_CONTROL_BINDING_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ARGB_CONTROL_BINDING))
45 #define GST_ARGB_CONTROL_BINDING_GET_CLASS(obj) \
46   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_CONTOL_SOURCE, GstARGBControlBindingClass))
47
48 typedef struct _GstARGBControlBinding GstARGBControlBinding;
49 typedef struct _GstARGBControlBindingClass GstARGBControlBindingClass;
50
51 /**
52  * GstARGBControlBinding:
53  * @name: name of the property of this binding
54  *
55  * The instance structure of #GstARGBControlBinding.
56  */
57 struct _GstARGBControlBinding {
58   GstControlBinding parent;
59   
60   /*< private >*/
61   GstControlSource *cs_a;       /* GstControlSources for this property */
62   GstControlSource *cs_r;
63   GstControlSource *cs_g;
64   GstControlSource *cs_b;
65
66   GValue cur_value;
67   guint32 last_value;
68
69   gpointer _gst_reserved[GST_PADDING];
70 };
71
72 /**
73  * GstARGBControlBindingClass:
74  * @parent_class: Parent class
75  * @convert: Class method to convert control-values
76  *
77  * The class structure of #GstARGBControlBinding.
78  */
79
80 struct _GstARGBControlBindingClass
81 {
82   GstControlBindingClass parent_class;
83
84   /*< private >*/
85   gpointer _gst_reserved[GST_PADDING];
86 };
87
88 GType gst_argb_control_binding_get_type (void);
89
90 /* Functions */
91
92 GstControlBinding * gst_argb_control_binding_new   (GstObject * object, const gchar * property_name,
93                                                             GstControlSource * cs_a, GstControlSource * cs_r,
94                                                             GstControlSource * cs_g, GstControlSource * cs_b);
95
96 G_END_DECLS
97
98 #endif /* __GST_ARGB_CONTROL_BINDING_H__ */