3 * Copyright (C) 2011 Stefan Sauer <ensonic@users.sf.net>
5 * gstcontrolbindingargb.h: Attachment for multiple control sources to gargb
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.
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.
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.
24 #ifndef __GST_CONTROL_BINDING_ARGB_H__
25 #define __GST_CONTROL_BINDING_ARGB_H__
27 #include <gst/gstconfig.h>
29 #include <glib-object.h>
31 #include <gst/gstcontrolsource.h>
35 #define GST_TYPE_CONTROL_BINDING_ARGB \
36 (gst_control_binding_argb_get_type())
37 #define GST_CONTROL_BINDING_ARGB(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CONTROL_BINDING_ARGB,GstControlBindingARGB))
39 #define GST_CONTROL_BINDING_ARGB_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CONTROL_BINDING_ARGB,GstControlBindingARGBClass))
41 #define GST_IS_CONTROL_BINDING_ARGB(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CONTROL_BINDING_ARGB))
43 #define GST_IS_CONTROL_BINDING_ARGB_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CONTROL_BINDING_ARGB))
45 #define GST_CONTROL_BINDING_ARGB_GET_CLASS(obj) \
46 (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_CONTOL_SOURCE, GstControlBindingARGBClass))
48 typedef struct _GstControlBindingARGB GstControlBindingARGB;
49 typedef struct _GstControlBindingARGBClass GstControlBindingARGBClass;
52 * GstControlBindingARGB:
53 * @name: name of the property of this binding
55 * The instance structure of #GstControlBindingARGB.
57 struct _GstControlBindingARGB {
58 GstControlBinding parent;
61 GstControlSource *cs_a; /* GstControlSources for this property */
62 GstControlSource *cs_r;
63 GstControlSource *cs_g;
64 GstControlSource *cs_b;
69 gpointer _gst_reserved[GST_PADDING];
73 * GstControlBindingARGBClass:
74 * @parent_class: Parent class
75 * @convert: Class method to convert control-values
77 * The class structure of #GstControlBindingARGB.
80 struct _GstControlBindingARGBClass
82 GstControlBindingClass parent_class;
85 gpointer _gst_reserved[GST_PADDING];
88 GType gst_control_binding_argb_get_type (void);
92 GstControlBinding * gst_control_binding_argb_new (GstObject * object, const gchar * property_name,
93 GstControlSource * cs_a, GstControlSource * cs_r,
94 GstControlSource * cs_g, GstControlSource * cs_b);
98 #endif /* __GST_CONTROL_BINDING_ARGB_H__ */