Exemplo n.º 1
0
        public static Gst.Message MessageNewEvent(Gst.Object src, Gst.Event evnt)
        {
            IntPtr raw_ret = gst_navigation_message_new_event(src == null ? IntPtr.Zero : src.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);

            Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Message), true);
            return(ret);
        }
Exemplo n.º 2
0
        public static Gst.Message MessageNewMouseOver(Gst.Object src, bool active)
        {
            IntPtr raw_ret = gst_navigation_message_new_mouse_over(src == null ? IntPtr.Zero : src.Handle, active);

            Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Message), true);
            return(ret);
        }
Exemplo n.º 3
0
        public static Gst.Message MessageNewAnglesChanged(Gst.Object src, uint cur_angle, uint n_angles)
        {
            IntPtr raw_ret = gst_navigation_message_new_angles_changed(src == null ? IntPtr.Zero : src.Handle, cur_angle, n_angles);

            Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Message), true);
            return(ret);
        }
Exemplo n.º 4
0
        public static Gst.Message MessageNewCommandsChanged(Gst.Object src)
        {
            IntPtr raw_ret = gst_navigation_message_new_commands_changed(src == null ? IntPtr.Zero : src.Handle);

            Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Message), true);
            return(ret);
        }
Exemplo n.º 5
0
        public static Gst.Iterator IterateInternalLinksDefault(Gst.Pad pad, Gst.Object parent)
        {
            IntPtr raw_ret = gst_proxy_pad_iterate_internal_links_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle);

            Gst.Iterator ret = raw_ret == IntPtr.Zero ? null : (Gst.Iterator)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Iterator), true);
            return(ret);
        }
Exemplo n.º 6
0
        public Gst.Object Ref()
        {
            IntPtr raw_ret = gst_object_ref(Handle);

            Gst.Object ret = GLib.Object.GetObject(raw_ret, true) as Gst.Object;
            return(ret);
        }
Exemplo n.º 7
0
        public bool SetParent(Gst.Object parent)
        {
            bool raw_ret = gst_object_set_parent(Handle, parent == null ? IntPtr.Zero : parent.Handle);
            bool ret     = raw_ret;

            return(ret);
        }
Exemplo n.º 8
0
        public bool HasAsAncestor(Gst.Object ancestor)
        {
            bool raw_ret = gst_object_has_as_ancestor(Handle, ancestor == null ? IntPtr.Zero : ancestor.Handle);
            bool ret     = raw_ret;

            return(ret);
        }
Exemplo n.º 9
0
        public static bool Replace(Gst.Object oldobj, Gst.Object newobj)
        {
            bool raw_ret = gst_object_replace(oldobj == null ? IntPtr.Zero : oldobj.OwnedHandle, newobj == null ? IntPtr.Zero : newobj.Handle);
            bool ret     = raw_ret;

            return(ret);
        }
Exemplo n.º 10
0
        bool InvokeNative(Gst.Pad pad, Gst.Object parent, Gst.Event evnt)
        {
            evnt.Owned = false;
            bool __result = native_cb(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);

            return(__result);
        }
Exemplo n.º 11
0
        public bool SyncValues(Gst.Object _object, ulong timestamp, ulong last_sync)
        {
            bool raw_ret = gst_control_binding_sync_values(Handle, _object == null ? IntPtr.Zero : _object.Handle, timestamp, last_sync);
            bool ret     = raw_ret;

            return(ret);
        }
Exemplo n.º 12
0
        public static bool InternalActivateModeDefault(Gst.Pad pad, Gst.Object parent, Gst.PadMode mode, bool active)
        {
            bool raw_ret = gst_ghost_pad_internal_activate_mode_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, (int)mode, active);
            bool ret     = raw_ret;

            return(ret);
        }
        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);
        }
Exemplo n.º 14
0
        Gst.FlowReturn InvokeNative(Gst.Object obj, Gst.Object parent, ulong offset, uint length, out Gst.Buffer buffer)
        {
            IntPtr native_buffer;

            Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, length, out native_buffer);
            buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_buffer, typeof(Gst.Buffer), true);
            return(__result);
        }
Exemplo n.º 15
0
        public static Gst.FlowReturn ChainListDefault(Gst.Pad pad, Gst.Object parent, Gst.BufferList list)
        {
            list.Owned = false;
            int raw_ret = gst_proxy_pad_chain_list_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, list == null ? IntPtr.Zero : list.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Exemplo n.º 16
0
        public static Gst.FlowReturn ChainDefault(Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer)
        {
            buffer.Owned = false;
            int raw_ret = gst_proxy_pad_chain_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, buffer == null ? IntPtr.Zero : buffer.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Exemplo n.º 17
0
        public static Gst.Caps TypeFindHelperForExtension(Gst.Object obj, string extension)
        {
            IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup(extension);
            IntPtr raw_ret          = gst_type_find_helper_for_extension(obj == null ? IntPtr.Zero : obj.Handle, native_extension);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            GLib.Marshaller.Free(native_extension);
            return(ret);
        }
Exemplo n.º 18
0
        public static Gst.Caps TypeFindHelperForData(Gst.Object obj, byte data, ulong size, out Gst.TypeFindProbability prob)
        {
            int    native_prob;
            IntPtr raw_ret = gst_type_find_helper_for_data(obj == null ? IntPtr.Zero : obj.Handle, data, new UIntPtr(size), out native_prob);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Exemplo n.º 19
0
        public static Gst.Caps TypeFindHelperForBuffer(Gst.Object obj, Gst.Buffer buf, out Gst.TypeFindProbability prob)
        {
            int    native_prob;
            IntPtr raw_ret = gst_type_find_helper_for_buffer(obj == null ? IntPtr.Zero : obj.Handle, buf == null ? IntPtr.Zero : buf.Handle, out native_prob);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Exemplo n.º 20
0
        public static Gst.FlowReturn GetrangeDefault(Gst.Pad pad, Gst.Object parent, ulong offset, uint size, out Gst.Buffer buffer)
        {
            IntPtr native_buffer;
            int    raw_ret = gst_proxy_pad_getrange_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, size, out native_buffer);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_buffer, typeof(Gst.Buffer), true);
            return(ret);
        }
Exemplo n.º 21
0
        public static Gst.Caps TypeFindHelperForBufferWithExtension(Gst.Object obj, Gst.Buffer buf, string extension, out Gst.TypeFindProbability prob)
        {
            IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup(extension);
            int    native_prob;
            IntPtr raw_ret = gst_type_find_helper_for_buffer_with_extension(obj == null ? IntPtr.Zero : obj.Handle, buf == null ? IntPtr.Zero : buf.Handle, native_extension, out native_prob);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            GLib.Marshaller.Free(native_extension);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Exemplo n.º 22
0
        public static Gst.Caps TypeFindHelperForDataWithExtension(Gst.Object obj, byte[] data, ulong size, string extension, out Gst.TypeFindProbability prob)
        {
            IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup(extension);
            int    native_prob;
            IntPtr raw_ret = gst_type_find_helper_for_data_with_extension(obj == null ? IntPtr.Zero : obj.Handle, data, new UIntPtr(size), native_extension, out native_prob);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            GLib.Marshaller.Free(native_extension);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Exemplo n.º 23
0
        public static Gst.Caps TypeFindHelperGetRange(Gst.Object obj, Gst.Object parent, Gst.Base.TypeFindHelperGetRangeFunction func, ulong size, string extension, out Gst.TypeFindProbability prob)
        {
            Gst.BaseSharp.TypeFindHelperGetRangeFunctionWrapper func_wrapper = new Gst.BaseSharp.TypeFindHelperGetRangeFunctionWrapper(func);
            IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup(extension);
            int    native_prob;
            IntPtr raw_ret = gst_type_find_helper_get_range(obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, func_wrapper.NativeDelegate, size, native_extension, out native_prob);

            Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Caps), true);
            GLib.Marshaller.Free(native_extension);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Exemplo n.º 24
0
        private void InternalDeepNotify(Gst.Object prop_object, IntPtr prop)
        {
            DeepNotifyNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("deep_notify"));
                unmanaged = (DeepNotifyNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(DeepNotifyNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, prop_object == null ? IntPtr.Zero : prop_object.Handle, prop);
        }
Exemplo n.º 25
0
        private bool InternalSyncValues(Gst.Object _object, ulong timestamp, ulong last_sync)
        {
            SyncValuesNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("sync_values"));
                unmanaged = (SyncValuesNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SyncValuesNativeDelegate));
            }
            if (unmanaged == null)
            {
                return(false);
            }

            bool __result = unmanaged(this.Handle, _object == null ? IntPtr.Zero : _object.Handle, timestamp, last_sync);

            return(__result);
        }
Exemplo n.º 26
0
        public static void DefaultDeepNotify(GLib.Object _object, Gst.Object orig, IntPtr pspec, string[] excluded_props)
        {
            int cnt_excluded_props = excluded_props == null ? 0 : excluded_props.Length;

            IntPtr[] native_excluded_props = new IntPtr [cnt_excluded_props + 1];
            for (int i = 0; i < cnt_excluded_props; i++)
            {
                native_excluded_props [i] = GLib.Marshaller.StringToPtrGStrdup(excluded_props[i]);
            }
            native_excluded_props [cnt_excluded_props] = IntPtr.Zero;
            gst_object_default_deep_notify(_object == null ? IntPtr.Zero : _object.Handle, orig == null ? IntPtr.Zero : orig.Handle, pspec, native_excluded_props);
            for (int i = 0; i < native_excluded_props.Length - 1; i++)
            {
                excluded_props [i] = GLib.Marshaller.Utf8PtrToString(native_excluded_props[i]);
                GLib.Marshaller.Free(native_excluded_props[i]);
            }
        }
        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);
        }
Exemplo n.º 28
0
 public static Gst.Caps TypeFindHelperGetRange(Gst.Object obj, Gst.Base.TypeFindHelperGetRangeFunction func, ulong size, string extension, out Gst.TypeFindProbability prob)
 {
     return(TypeFindHelperGetRange(obj, null, func, size, extension, out prob));
 }
Exemplo n.º 29
0
 Gst.FlowReturn InvokeNative(Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer)
 {
     buffer.Owned = false;
     Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
     return(__result);
 }
 Gst.Iterator InvokeNative(Gst.Pad pad, Gst.Object parent)
 {
     Gst.Iterator __result = native_cb(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle) == IntPtr.Zero ? null : (Gst.Iterator)GLib.Opaque.GetOpaque(native_cb(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle), typeof(Gst.Iterator), true);
     return(__result);
 }