Ejemplo n.º 1
0
        public bool DoSeek(double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, ulong start, Gst.SeekType stop_type, ulong stop, out bool update)
        {
            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);
            bool raw_ret = gst_segment_do_seek(this_as_native, rate, (int)format, (int)flags, (int)start_type, start, (int)stop_type, stop, out update);
            bool ret     = raw_ret;

            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }
Ejemplo n.º 2
0
        public void ParseSeek(out double rate, out Gst.Format format, out Gst.SeekFlags flags, out Gst.SeekType start_type, out long start, out Gst.SeekType stop_type, out long stop)
        {
            int native_format;
            int native_flags;
            int native_start_type;
            int native_stop_type;

            gst_event_parse_seek(Handle, out rate, out native_format, out native_flags, out native_start_type, out start, out native_stop_type, out stop);
            format     = (Gst.Format)native_format;
            flags      = (Gst.SeekFlags)native_flags;
            start_type = (Gst.SeekType)native_start_type;
            stop_type  = (Gst.SeekType)native_stop_type;
        }
Ejemplo n.º 3
0
        public static Event NewSeek(double rate, Gst.Format format, Gst.SeekFlags flags, Gst.SeekType start_type, long start, Gst.SeekType stop_type, long stop)
        {
            Event result = new Event(gst_event_new_seek(rate, (int)format, (int)flags, (int)start_type, start, (int)stop_type, stop));

            return(result);
        }