public bool Convert(Gst.Format src_fmt, long src_val, Gst.Format dest_fmt, out long dest_val) { bool raw_ret = gst_audio_info_convert(Handle, (int)src_fmt, src_val, (int)dest_fmt, out dest_val); bool ret = raw_ret; return(ret); }
public bool Convert(Gst.Format src_format, long src_value, Gst.Format dest_format, out long dest_value) { bool raw_ret = gst_video_info_convert(Handle, (int)src_format, src_value, (int)dest_format, out dest_value); bool ret = raw_ret; return(ret); }
public void ParseDuration(out Gst.Format format, out long duration) { int native_format; gst_query_parse_duration(Handle, out native_format, out duration); format = (Gst.Format)native_format; }
public void ParseSegment(out double rate, out Gst.Format format, out long start_value, out long stop_value) { int native_format; gst_query_parse_segment(Handle, out rate, out native_format, out start_value, out stop_value); format = (Gst.Format)native_format; }
public static string FormatGetName(Gst.Format format) { IntPtr raw_ret = gst_format_get_name((int)format); string ret = GLib.Marshaller.Utf8PtrToString(raw_ret); return(ret); }
public void ParseSeeking(out Gst.Format format, out bool seekable, out long segment_start, out long segment_end) { int native_format; gst_query_parse_seeking(Handle, out native_format, out seekable, out segment_start, out segment_end); format = (Gst.Format)native_format; }
public void ParseStep(out Gst.Format format, out ulong amount, out double rate, out bool flush, out bool intermediate) { int native_format; gst_event_parse_step(Handle, out native_format, out amount, out rate, out flush, out intermediate); format = (Gst.Format)native_format; }
public static Gst.FormatDefinition FormatGetDetails(Gst.Format format) { IntPtr raw_ret = gst_format_get_details((int)format); Gst.FormatDefinition ret = Gst.FormatDefinition.New(raw_ret); return(ret); }
public void ParseSegmentDone(out Gst.Format format, out long position) { int native_format; gst_event_parse_segment_done(Handle, out native_format, out position); format = (Gst.Format)native_format; }
public bool ConvertDefault(Gst.Format src_format, long src_value, Gst.Format dest_format, out long dest_value) { bool raw_ret = gst_base_parse_convert_default(Handle, (int)src_format, src_value, (int)dest_format, out dest_value); bool ret = raw_ret; return(ret); }
public void ParsePosition(out Gst.Format format, out long cur) { int native_format; gst_query_parse_position(Handle, out native_format, out cur); format = (Gst.Format)native_format; }
public void ParseBufferingRange(out Gst.Format format, out long start, out long stop, out long estimated_total) { int native_format; gst_query_parse_buffering_range(Handle, out native_format, out start, out stop, out estimated_total); format = (Gst.Format)native_format; }
public void ParseBufferSize(out Gst.Format format, out long minsize, out long maxsize, out bool async) { int native_format; gst_event_parse_buffer_size(Handle, out native_format, out minsize, out maxsize, out async); format = (Gst.Format)native_format; }
public static uint FormatToQuark(Gst.Format format) { uint raw_ret = gst_format_to_quark((int)format); uint ret = raw_ret; return(ret); }
public static Gst.Format FormatGetByNick(string nick) { IntPtr native_nick = GLib.Marshaller.StringToPtrGStrdup(nick); int raw_ret = gst_format_get_by_nick(native_nick); Gst.Format ret = (Gst.Format)raw_ret; GLib.Marshaller.Free(native_nick); return(ret); }
public void ParseConvert(out Gst.Format src_format, out long src_value, out Gst.Format dest_format, out long dest_value) { int native_src_format; int native_dest_format; gst_query_parse_convert(Handle, out native_src_format, out src_value, out native_dest_format, out dest_value); src_format = (Gst.Format)native_src_format; dest_format = (Gst.Format)native_dest_format; }
public void Init(Gst.Format format) { 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); gst_segment_init(this_as_native, (int)format); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); }
public static Gst.Format FormatRegister(string nick, string description) { IntPtr native_nick = GLib.Marshaller.StringToPtrGStrdup(nick); IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup(description); int raw_ret = gst_format_register(native_nick, native_description); Gst.Format ret = (Gst.Format)raw_ret; GLib.Marshaller.Free(native_nick); GLib.Marshaller.Free(native_description); return(ret); }
public ulong PositionFromStreamTime(Gst.Format format, ulong stream_time) { 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); ulong raw_ret = gst_segment_position_from_stream_time(this_as_native, (int)format, stream_time); ulong ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public ulong ToRunningTime(Gst.Format format, ulong position) { 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); ulong raw_ret = gst_segment_to_running_time(this_as_native, (int)format, position); ulong ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public int ToStreamTimeFull(Gst.Format format, ulong position, out ulong stream_time) { 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); int raw_ret = gst_segment_to_stream_time_full(this_as_native, (int)format, position, out stream_time); int ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public bool Clip(Gst.Format format, ulong start, ulong stop, out ulong clip_start, out ulong clip_stop) { 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_clip(this_as_native, (int)format, start, stop, out clip_start, out clip_stop); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
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); }
public int PositionFromRunningTimeFull(Gst.Format format, ulong running_time, out ulong position) { 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); int raw_ret = gst_segment_position_from_running_time_full(this_as_native, (int)format, running_time, out position); int ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public bool OffsetRunningTime(Gst.Format format, long offset) { 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_offset_running_time(this_as_native, (int)format, offset); bool ret = raw_ret; ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
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; }
private bool InternalConvert(Gst.Format src_format, long src_value, Gst.Format dest_format, long dest_value) { ConvertNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("convert")); unmanaged = (ConvertNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ConvertNativeDelegate)); } if (unmanaged == null) { return(false); } bool __result = unmanaged(this.Handle, (int)src_format, src_value, (int)dest_format, dest_value); return(__result); }
public Query(Gst.Format src_format, long value, Gst.Format dest_format) { Raw = gst_query_new_convert((int)src_format, value, (int)dest_format); }
public static Query NewPosition(Gst.Format format) { Query result = new Query(gst_query_new_position((int)format)); return(result); }
public static Query NewSegment(Gst.Format format) { Query result = new Query(gst_query_new_segment((int)format)); return(result); }
public void ParseFormats (out Gst.Format[] formats) { if (Type != QueryType.Formats) throw new ApplicationException (); uint length; gst_query_parse_formats_length (Handle, out length); formats = new Gst.Format[length]; for (uint i = 0; i < length; i++) gst_query_parse_formats_nth (Handle, i, out formats[i]); }