public bool SetControlSource(Gst.ControlSource source, string property_name, string binding_type) { IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup(property_name); IntPtr native_binding_type = GLib.Marshaller.StringToPtrGStrdup(binding_type); bool raw_ret = ges_track_element_set_control_source(Handle, source == null ? IntPtr.Zero : source.Handle, native_property_name, native_binding_type); bool ret = raw_ret; GLib.Marshaller.Free(native_property_name); GLib.Marshaller.Free(native_binding_type); return(ret); }
public DirectControlBinding(Gst.Object _object, string property_name, Gst.ControlSource cs) : base(IntPtr.Zero) { if (GetType() != typeof(DirectControlBinding)) { var vals = new List <GLib.Value> (); var names = new List <string> (); if (_object != null) { names.Add("_object"); vals.Add(new GLib.Value(_object)); } CreateNativeObject(names.ToArray(), vals.ToArray()); return; } IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup(property_name); Raw = gst_direct_control_binding_new(_object == null ? IntPtr.Zero : _object.Handle, native_property_name, cs == null ? IntPtr.Zero : cs.Handle); GLib.Marshaller.Free(native_property_name); }
bool InvokeNative(Gst.ControlSource self, ulong timestamp, double value) { bool __result = native_cb(self == null ? IntPtr.Zero : self.Handle, timestamp, value); return(__result); }
bool InvokeNative(Gst.ControlSource self, ulong timestamp, ulong interval, uint n_values, double values) { bool __result = native_cb(self == null ? IntPtr.Zero : self.Handle, timestamp, interval, n_values, values); return(__result); }
public static DirectControlBinding NewAbsolute(Gst.Object _object, string property_name, Gst.ControlSource cs) { IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup(property_name); DirectControlBinding result = new DirectControlBinding(gst_direct_control_binding_new_absolute(_object == null ? IntPtr.Zero : _object.Handle, native_property_name, cs == null ? IntPtr.Zero : cs.Handle)); GLib.Marshaller.Free(native_property_name); return(result); }