diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-05-21 11:12:23 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-05-21 11:12:23 +0200 |
commit | 50f12103f5a136f45bd274ac6a99006a3db5ca4d (patch) | |
tree | cb44f58b9f1cc9256a83b87d28d6cdaf10b2c4b4 /libs/gst/controller/gstdirectcontrolbinding.h | |
parent | 54399760aad93cb3ec36162ced7649c8cd8286db (diff) |
Imported Upstream version 0.11.91upstream/0.11.91
Diffstat (limited to 'libs/gst/controller/gstdirectcontrolbinding.h')
-rw-r--r-- | libs/gst/controller/gstdirectcontrolbinding.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libs/gst/controller/gstdirectcontrolbinding.h b/libs/gst/controller/gstdirectcontrolbinding.h index 729d117..24ece6d 100644 --- a/libs/gst/controller/gstdirectcontrolbinding.h +++ b/libs/gst/controller/gstdirectcontrolbinding.h @@ -48,14 +48,24 @@ typedef struct _GstDirectControlBinding GstDirectControlBinding; typedef struct _GstDirectControlBindingClass GstDirectControlBindingClass; /** - * GstDirectControlBindingConvert: + * GstDirectControlBindingConvertValue: + * @self: the #GstDirectControlBinding instance + * @src_value: the value returned by the cotnrol source + * @dest_value: the target location + * + * Function to map a control-value to the target plain data type. + */ +typedef void (* GstDirectControlBindingConvertValue) (GstDirectControlBinding *self, gdouble src_value, gpointer dest_value); + +/** + * GstDirectControlBindingConvertGValue: * @self: the #GstDirectControlBinding instance * @src_value: the value returned by the cotnrol source * @dest_value: the target GValue * * Function to map a control-value to the target GValue. */ -typedef void (* GstDirectControlBindingConvert) (GstDirectControlBinding *self, gdouble src_value, GValue *dest_value); +typedef void (* GstDirectControlBindingConvertGValue) (GstDirectControlBinding *self, gdouble src_value, GValue *dest_value); /** * GstDirectControlBinding: @@ -70,8 +80,10 @@ struct _GstDirectControlBinding { GstControlSource *cs; /* GstControlSource for this property */ GValue cur_value; gdouble last_value; + gint byte_size; - GstDirectControlBindingConvert convert; + GstDirectControlBindingConvertValue convert_value; + GstDirectControlBindingConvertGValue convert_g_value; gpointer _gst_reserved[GST_PADDING]; }; |