public static bool FromString(out Gst.Video.VideoMasteringDisplayInfo minfo, string mastering) { IntPtr native_minfo = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(Gst.Video.VideoMasteringDisplayInfo))); IntPtr native_mastering = GLib.Marshaller.StringToPtrGStrdup(mastering); bool raw_ret = gst_video_mastering_display_info_from_string(native_minfo, native_mastering); bool ret = raw_ret; minfo = Gst.Video.VideoMasteringDisplayInfo.New(native_minfo); Marshal.FreeHGlobal(native_minfo); GLib.Marshaller.Free(native_mastering); return(ret); }
public bool IsEqual(Gst.Video.VideoMasteringDisplayInfo other) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this)); System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false); IntPtr native_other = GLib.Marshaller.StructureToPtrAlloc(other); bool raw_ret = gst_video_mastering_display_info_is_equal(this_as_native, native_other); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); Marshal.FreeHGlobal(native_other); return(ret); }
static void ReadNative(IntPtr native, ref Gst.Video.VideoMasteringDisplayInfo target) { target = New(native); }