Example #1
0
        public Gst.Video.VideoOverlayComposition MakeWritable()
        {
            IntPtr raw_ret = gst_video_overlay_composition_make_writable(Handle);

            Gst.Video.VideoOverlayComposition ret = raw_ret == IntPtr.Zero ? null : (Gst.Video.VideoOverlayComposition)GLib.Opaque.GetOpaque(raw_ret, typeof(Gst.Video.VideoOverlayComposition), true);
            return(ret);
        }
        public Gst.Video.VideoOverlayComposition MakeWritable()
        {
            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 raw_ret = gst_video_overlay_composition_make_writable(this_as_native);

            Gst.Video.VideoOverlayComposition ret = Gst.Video.VideoOverlayComposition.New(raw_ret);
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }
 static void ReadNative(IntPtr native, ref Gst.Video.VideoOverlayComposition target)
 {
     target = New(native);
 }