예제 #1
0
 public TypeFindHelperGetRangeFunctionWrapper(Gst.Base.TypeFindHelperGetRangeFunction managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new TypeFindHelperGetRangeFunctionNative(NativeCallback);
     }
 }
예제 #2
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);
        }
		public TypeFindHelperGetRangeFunctionWrapper (Gst.Base.TypeFindHelperGetRangeFunction managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new TypeFindHelperGetRangeFunctionNative (NativeCallback);
		}
예제 #4
0
 public static Gst.FlowReturn TypeFindHelperGetRangeFull(Gst.Object obj, Gst.Base.TypeFindHelperGetRangeFunction func, ulong size, out Gst.Caps caps, out Gst.TypeFindProbability prob)
 {
     return(TypeFindHelperGetRangeFull(obj, null, func, size, null, out caps, out prob));
 }