예제 #1
0
        public Gst.Video.VideoCodecState Ref()
        {
            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_codec_state_ref(this_as_native);

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