public Gst.PbUtils.DiscovererInfo Copy()
        {
            IntPtr raw_ret = gst_discoverer_info_copy(Handle);

            Gst.PbUtils.DiscovererInfo ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.DiscovererInfo;
            return(ret);
        }
        public static Gst.PbUtils.DiscovererInfo FromVariant(GLib.Variant variant)
        {
            IntPtr raw_ret = gst_discoverer_info_from_variant(variant == null ? IntPtr.Zero : variant.Handle);

            Gst.PbUtils.DiscovererInfo ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.DiscovererInfo;
            return(ret);
        }
        public static Gst.PbUtils.EncodingProfile FromDiscoverer(Gst.PbUtils.DiscovererInfo info)
        {
            IntPtr raw_ret = gst_encoding_profile_from_discoverer(info == null ? IntPtr.Zero : info.Handle);

            Gst.PbUtils.EncodingProfile ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.EncodingProfile;
            return(ret);
        }
示例#4
0
        public unsafe Gst.PbUtils.DiscovererInfo DiscoverUri(string uri)
        {
            IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri);
            IntPtr error      = IntPtr.Zero;
            IntPtr raw_ret    = gst_discoverer_discover_uri(Handle, native_uri, out error);

            Gst.PbUtils.DiscovererInfo ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.DiscovererInfo;
            GLib.Marshaller.Free(native_uri);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
示例#5
0
        private void InternalDiscovered(Gst.PbUtils.DiscovererInfo info, IntPtr error)
        {
            DiscoveredNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, info == null ? IntPtr.Zero : info.Handle, error);
        }
示例#6
0
 protected virtual void OnDiscovered(Gst.PbUtils.DiscovererInfo info, IntPtr error)
 {
     InternalDiscovered(info, error);
 }