1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class Pipeline : Gst.Bin {
14 public Pipeline (IntPtr raw) : base(raw) {}
16 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17 static extern IntPtr gst_pipeline_new(IntPtr name);
19 public Pipeline (string name) : base (IntPtr.Zero)
21 if (GetType () != typeof (Pipeline)) {
22 var vals = new List<GLib.Value> ();
23 var names = new List<string> ();
25 vals.Add (new GLib.Value (name));
26 CreateNativeObject (names.ToArray (), vals.ToArray ());
29 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
30 Raw = gst_pipeline_new(native_name);
31 GLib.Marshaller.Free (native_name);
34 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
35 static extern bool gst_pipeline_get_auto_flush_bus(IntPtr raw);
37 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
38 static extern void gst_pipeline_set_auto_flush_bus(IntPtr raw, bool auto_flush);
40 [GLib.Property ("auto-flush-bus")]
41 public bool AutoFlushBus {
43 bool raw_ret = gst_pipeline_get_auto_flush_bus(Handle);
48 gst_pipeline_set_auto_flush_bus(Handle, value);
52 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
53 static extern ulong gst_pipeline_get_delay(IntPtr raw);
55 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
56 static extern void gst_pipeline_set_delay(IntPtr raw, ulong delay);
58 [GLib.Property ("delay")]
61 ulong raw_ret = gst_pipeline_get_delay(Handle);
66 gst_pipeline_set_delay(Handle, value);
70 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
71 static extern ulong gst_pipeline_get_latency(IntPtr raw);
73 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
74 static extern void gst_pipeline_set_latency(IntPtr raw, ulong latency);
76 [GLib.Property ("latency")]
77 public ulong Latency {
79 ulong raw_ret = gst_pipeline_get_latency(Handle);
84 gst_pipeline_set_latency(Handle, value);
88 public Gst.Clock FixedClock {
91 IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("fixed_clock"));
92 return GLib.Object.GetObject((*raw_ptr)) as Gst.Clock;
97 public ulong StreamTime {
100 ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("stream_time"));
106 public ulong DelayField {
109 ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("delay"));
116 // Internal representation of the wrapped structure ABI.
117 static GLib.AbiStruct _class_abi = null;
118 static public new GLib.AbiStruct class_abi {
120 if (_class_abi == null)
121 _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
122 new GLib.AbiField("_gst_reserved"
123 , Gst.Bin.class_abi.Fields
124 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
127 , (uint) Marshal.SizeOf(typeof(IntPtr))
137 // End of the ABI representation.
139 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
140 static extern IntPtr gst_pipeline_get_type();
142 public static new GLib.GType GType {
144 IntPtr raw_ret = gst_pipeline_get_type();
145 GLib.GType ret = new GLib.GType(raw_ret);
150 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
151 static extern void gst_pipeline_auto_clock(IntPtr raw);
153 public void AutoClock() {
154 gst_pipeline_auto_clock(Handle);
157 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
158 static extern IntPtr gst_pipeline_get_pipeline_clock(IntPtr raw);
160 public Gst.Clock PipelineClock {
162 IntPtr raw_ret = gst_pipeline_get_pipeline_clock(Handle);
163 Gst.Clock ret = GLib.Object.GetObject(raw_ret, true) as Gst.Clock;
168 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
169 static extern void gst_pipeline_use_clock(IntPtr raw, IntPtr clock);
171 public void UseClock(Gst.Clock clock) {
172 gst_pipeline_use_clock(Handle, clock == null ? IntPtr.Zero : clock.Handle);
175 public void UseClock() {
180 // Internal representation of the wrapped structure ABI.
181 static GLib.AbiStruct _abi_info = null;
182 static public new GLib.AbiStruct abi_info {
184 if (_abi_info == null)
185 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
186 new GLib.AbiField("fixed_clock"
187 , Gst.Bin.abi_info.Fields
188 , (uint) Marshal.SizeOf(typeof(IntPtr)) // fixed_clock
191 , (uint) Marshal.SizeOf(typeof(IntPtr))
194 new GLib.AbiField("stream_time"
196 , (uint) Marshal.SizeOf(typeof(ulong)) // stream_time
199 , (long) Marshal.OffsetOf(typeof(GstPipeline_stream_timeAlign), "stream_time")
202 new GLib.AbiField("delay"
204 , (uint) Marshal.SizeOf(typeof(ulong)) // delay
207 , (long) Marshal.OffsetOf(typeof(GstPipeline_delayAlign), "delay")
210 new GLib.AbiField("priv"
212 , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
215 , (uint) Marshal.SizeOf(typeof(IntPtr))
218 new GLib.AbiField("_gst_reserved"
220 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
223 , (uint) Marshal.SizeOf(typeof(IntPtr))
232 [StructLayout(LayoutKind.Sequential)]
233 public struct GstPipeline_stream_timeAlign
236 private ulong stream_time;
239 [StructLayout(LayoutKind.Sequential)]
240 public struct GstPipeline_delayAlign
247 // End of the ABI representation.