예제 #1
0
        public Gst.Video.VideoTimeCode AddInterval(Gst.Video.VideoTimeCodeInterval tc_inter)
        {
            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_tc_inter = GLib.Marshaller.StructureToPtrAlloc(tc_inter);
            IntPtr raw_ret         = gst_video_time_code_add_interval(this_as_native, native_tc_inter);

            Gst.Video.VideoTimeCode ret = Gst.Video.VideoTimeCode.New(raw_ret);
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            Marshal.FreeHGlobal(native_tc_inter);
            return(ret);
        }
예제 #2
0
 static void ReadNative(IntPtr native, ref Gst.Video.VideoTimeCodeInterval target)
 {
     target = New(native);
 }