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 Pad : Gst.Object {
14 public Pad (IntPtr raw) : base(raw) {}
16 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17 static extern IntPtr gst_pad_new(IntPtr name, int direction);
19 public Pad (string name, Gst.PadDirection direction) : base (IntPtr.Zero)
21 if (GetType () != typeof (Pad)) {
22 var vals = new List<GLib.Value> ();
23 var names = new List<string> ();
25 vals.Add (new GLib.Value (name));
26 names.Add ("direction");
27 vals.Add (new GLib.Value (direction));
28 CreateNativeObject (names.ToArray (), vals.ToArray ());
31 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
32 Raw = gst_pad_new(native_name, (int) direction);
33 GLib.Marshaller.Free (native_name);
36 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37 static extern IntPtr gst_pad_new_from_static_template(IntPtr templ, IntPtr name);
39 public Pad (Gst.StaticPadTemplate templ, string name) : base (IntPtr.Zero)
41 if (GetType () != typeof (Pad)) {
42 var vals = new List<GLib.Value> ();
43 var names = new List<string> ();
45 vals.Add (new GLib.Value (name));
46 CreateNativeObject (names.ToArray (), vals.ToArray ());
49 IntPtr native_templ = GLib.Marshaller.StructureToPtrAlloc (templ);
50 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
51 Raw = gst_pad_new_from_static_template(native_templ, native_name);
52 Marshal.FreeHGlobal (native_templ);
53 GLib.Marshaller.Free (native_name);
56 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
57 static extern IntPtr gst_pad_new_from_template(IntPtr templ, IntPtr name);
59 public Pad (Gst.PadTemplate templ, string name) : base (IntPtr.Zero)
61 if (GetType () != typeof (Pad)) {
62 var vals = new List<GLib.Value> ();
63 var names = new List<string> ();
66 vals.Add (new GLib.Value (name));
68 CreateNativeObject (names.ToArray (), vals.ToArray ());
71 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
72 Raw = gst_pad_new_from_template(templ == null ? IntPtr.Zero : templ.Handle, native_name);
73 GLib.Marshaller.Free (native_name);
76 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
77 static extern int gst_pad_get_direction(IntPtr raw);
79 [GLib.Property ("direction")]
80 public Gst.PadDirection Direction {
82 int raw_ret = gst_pad_get_direction(Handle);
83 Gst.PadDirection ret = (Gst.PadDirection) raw_ret;
88 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
89 static extern long gst_pad_get_offset(IntPtr raw);
91 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
92 static extern void gst_pad_set_offset(IntPtr raw, long offset);
94 [GLib.Property ("offset")]
97 long raw_ret = gst_pad_get_offset(Handle);
102 gst_pad_set_offset(Handle, value);
106 [GLib.Property ("template")]
107 public Gst.PadTemplate Template {
109 GLib.Value val = GetProperty ("template");
110 Gst.PadTemplate ret = (Gst.PadTemplate) val;
115 GLib.Value val = new GLib.Value(value);
116 SetProperty("template", val);
121 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
122 static extern IntPtr gst_pad_get_element_private(IntPtr raw);
124 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
125 static extern void gst_pad_set_element_private(IntPtr raw, IntPtr priv);
127 public IntPtr ElementPrivate {
129 IntPtr raw_ret = gst_pad_get_element_private(Handle);
130 IntPtr ret = raw_ret;
134 gst_pad_set_element_private(Handle, value);
138 public Gst.PadTemplate Padtemplate {
141 IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("padtemplate"));
142 return GLib.Object.GetObject((*raw_ptr)) as Gst.PadTemplate;
147 public Gst.PadDirection DirectionField {
150 int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("direction"));
151 return (Gst.PadDirection) (*raw_ptr);
156 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
157 static extern IntPtr gst_pad_get_peer(IntPtr raw);
159 public Gst.Pad Peer {
161 IntPtr raw_ret = gst_pad_get_peer(Handle);
162 Gst.Pad ret = GLib.Object.GetObject(raw_ret, true) as Gst.Pad;
167 [GLib.Signal("unlinked")]
168 public event Gst.UnlinkedHandler Unlinked {
170 this.AddSignalHandler ("unlinked", value, typeof (Gst.UnlinkedArgs));
173 this.RemoveSignalHandler ("unlinked", value);
177 [GLib.Signal("linked")]
178 public event Gst.LinkedHandler Linked {
180 this.AddSignalHandler ("linked", value, typeof (Gst.LinkedArgs));
183 this.RemoveSignalHandler ("linked", value);
187 static LinkedNativeDelegate Linked_cb_delegate;
188 static LinkedNativeDelegate LinkedVMCallback {
190 if (Linked_cb_delegate == null)
191 Linked_cb_delegate = new LinkedNativeDelegate (Linked_cb);
192 return Linked_cb_delegate;
196 static void OverrideLinked (GLib.GType gtype)
198 OverrideLinked (gtype, LinkedVMCallback);
201 static void OverrideLinked (GLib.GType gtype, LinkedNativeDelegate callback)
204 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("linked"));
205 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
209 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
210 delegate void LinkedNativeDelegate (IntPtr inst, IntPtr peer);
212 static void Linked_cb (IntPtr inst, IntPtr peer)
215 Pad __obj = GLib.Object.GetObject (inst, false) as Pad;
216 __obj.OnLinked (GLib.Object.GetObject(peer) as Gst.Pad);
217 } catch (Exception e) {
218 GLib.ExceptionManager.RaiseUnhandledException (e, false);
222 [GLib.DefaultSignalHandler(Type=typeof(Gst.Pad), ConnectionMethod="OverrideLinked")]
223 protected virtual void OnLinked (Gst.Pad peer)
225 InternalLinked (peer);
228 private void InternalLinked (Gst.Pad peer)
230 LinkedNativeDelegate unmanaged = null;
232 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("linked"));
233 unmanaged = (LinkedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LinkedNativeDelegate));
235 if (unmanaged == null) return;
237 unmanaged (this.Handle, peer == null ? IntPtr.Zero : peer.Handle);
240 static UnlinkedNativeDelegate Unlinked_cb_delegate;
241 static UnlinkedNativeDelegate UnlinkedVMCallback {
243 if (Unlinked_cb_delegate == null)
244 Unlinked_cb_delegate = new UnlinkedNativeDelegate (Unlinked_cb);
245 return Unlinked_cb_delegate;
249 static void OverrideUnlinked (GLib.GType gtype)
251 OverrideUnlinked (gtype, UnlinkedVMCallback);
254 static void OverrideUnlinked (GLib.GType gtype, UnlinkedNativeDelegate callback)
257 IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("unlinked"));
258 *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
262 [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
263 delegate void UnlinkedNativeDelegate (IntPtr inst, IntPtr peer);
265 static void Unlinked_cb (IntPtr inst, IntPtr peer)
268 Pad __obj = GLib.Object.GetObject (inst, false) as Pad;
269 __obj.OnUnlinked (GLib.Object.GetObject(peer) as Gst.Pad);
270 } catch (Exception e) {
271 GLib.ExceptionManager.RaiseUnhandledException (e, false);
275 [GLib.DefaultSignalHandler(Type=typeof(Gst.Pad), ConnectionMethod="OverrideUnlinked")]
276 protected virtual void OnUnlinked (Gst.Pad peer)
278 InternalUnlinked (peer);
281 private void InternalUnlinked (Gst.Pad peer)
283 UnlinkedNativeDelegate unmanaged = null;
285 IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("unlinked"));
286 unmanaged = (UnlinkedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(UnlinkedNativeDelegate));
288 if (unmanaged == null) return;
290 unmanaged (this.Handle, peer == null ? IntPtr.Zero : peer.Handle);
294 // Internal representation of the wrapped structure ABI.
295 static GLib.AbiStruct _class_abi = null;
296 static public new GLib.AbiStruct class_abi {
298 if (_class_abi == null)
299 _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
300 new GLib.AbiField("linked"
301 , Gst.Object.class_abi.Fields
302 , (uint) Marshal.SizeOf(typeof(IntPtr)) // linked
305 , (uint) Marshal.SizeOf(typeof(IntPtr))
308 new GLib.AbiField("unlinked"
310 , (uint) Marshal.SizeOf(typeof(IntPtr)) // unlinked
313 , (uint) Marshal.SizeOf(typeof(IntPtr))
316 new GLib.AbiField("_gst_reserved"
318 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
321 , (uint) Marshal.SizeOf(typeof(IntPtr))
331 // End of the ABI representation.
333 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
334 static extern IntPtr gst_pad_get_type();
336 public static new GLib.GType GType {
338 IntPtr raw_ret = gst_pad_get_type();
339 GLib.GType ret = new GLib.GType(raw_ret);
344 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
345 static extern IntPtr gst_pad_link_get_name(int _ret);
347 public static string LinkGetName(Gst.PadLinkReturn _ret) {
348 IntPtr raw_ret = gst_pad_link_get_name((int) _ret);
349 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
353 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
354 static extern bool gst_pad_activate_mode(IntPtr raw, int mode, bool active);
356 public bool ActivateMode(Gst.PadMode mode, bool active) {
357 bool raw_ret = gst_pad_activate_mode(Handle, (int) mode, active);
362 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
363 static extern UIntPtr gst_pad_add_probe(IntPtr raw, int mask, GstSharp.PadProbeCallbackNative cb, IntPtr user_data, GLib.DestroyNotify destroy_data);
365 public ulong AddProbe(Gst.PadProbeType mask, Gst.PadProbeCallback cb) {
366 GstSharp.PadProbeCallbackWrapper cb_wrapper = new GstSharp.PadProbeCallbackWrapper (cb);
368 GLib.DestroyNotify destroy_data;
370 user_data = IntPtr.Zero;
373 user_data = (IntPtr) GCHandle.Alloc (cb_wrapper);
374 destroy_data = GLib.DestroyHelper.NotifyHandler;
376 UIntPtr raw_ret = gst_pad_add_probe(Handle, (int) mask, cb_wrapper.NativeDelegate, user_data, destroy_data);
377 ulong ret = (ulong) raw_ret;
381 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
382 static extern bool gst_pad_can_link(IntPtr raw, IntPtr sinkpad);
384 public bool CanLink(Gst.Pad sinkpad) {
385 bool raw_ret = gst_pad_can_link(Handle, sinkpad == null ? IntPtr.Zero : sinkpad.Handle);
390 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
391 static extern int gst_pad_chain(IntPtr raw, IntPtr buffer);
393 public Gst.FlowReturn Chain(Gst.Buffer buffer) {
394 buffer.Owned = false;
395 int raw_ret = gst_pad_chain(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
396 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
400 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
401 static extern int gst_pad_chain_list(IntPtr raw, IntPtr list);
403 public Gst.FlowReturn ChainList(Gst.BufferList list) {
405 int raw_ret = gst_pad_chain_list(Handle, list == null ? IntPtr.Zero : list.Handle);
406 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
410 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
411 static extern bool gst_pad_check_reconfigure(IntPtr raw);
413 public bool CheckReconfigure() {
414 bool raw_ret = gst_pad_check_reconfigure(Handle);
419 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
420 static extern IntPtr gst_pad_create_stream_id(IntPtr raw, IntPtr parent, IntPtr stream_id);
422 public string CreateStreamId(Gst.Element parent, string stream_id) {
423 IntPtr native_stream_id = GLib.Marshaller.StringToPtrGStrdup (stream_id);
424 IntPtr raw_ret = gst_pad_create_stream_id(Handle, parent == null ? IntPtr.Zero : parent.Handle, native_stream_id);
425 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
426 GLib.Marshaller.Free (native_stream_id);
430 public string CreateStreamId(Gst.Element parent) {
431 return CreateStreamId (parent, null);
434 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
435 static extern bool gst_pad_event_default(IntPtr raw, IntPtr parent, IntPtr evnt);
437 public bool EventDefault(Gst.Object parent, Gst.Event evnt) {
439 bool raw_ret = gst_pad_event_default(Handle, parent == null ? IntPtr.Zero : parent.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
444 public bool EventDefault(Gst.Event evnt) {
445 return EventDefault (null, evnt);
448 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
449 static extern bool gst_pad_forward(IntPtr raw, GstSharp.PadForwardFunctionNative forward, IntPtr user_data);
451 public bool Forward(Gst.PadForwardFunction forward) {
452 GstSharp.PadForwardFunctionWrapper forward_wrapper = new GstSharp.PadForwardFunctionWrapper (forward);
453 bool raw_ret = gst_pad_forward(Handle, forward_wrapper.NativeDelegate, IntPtr.Zero);
458 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
459 static extern IntPtr gst_pad_get_allowed_caps(IntPtr raw);
461 public Gst.Caps AllowedCaps {
463 IntPtr raw_ret = gst_pad_get_allowed_caps(Handle);
464 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
469 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
470 static extern IntPtr gst_pad_get_current_caps(IntPtr raw);
472 public Gst.Caps CurrentCaps {
474 IntPtr raw_ret = gst_pad_get_current_caps(Handle);
475 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
480 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
481 static extern int gst_pad_get_last_flow_return(IntPtr raw);
483 public Gst.FlowReturn LastFlowReturn {
485 int raw_ret = gst_pad_get_last_flow_return(Handle);
486 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
491 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
492 static extern IntPtr gst_pad_get_pad_template(IntPtr raw);
494 public Gst.PadTemplate PadTemplate {
496 IntPtr raw_ret = gst_pad_get_pad_template(Handle);
497 Gst.PadTemplate ret = GLib.Object.GetObject(raw_ret, true) as Gst.PadTemplate;
502 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
503 static extern IntPtr gst_pad_get_pad_template_caps(IntPtr raw);
505 public Gst.Caps PadTemplateCaps {
507 IntPtr raw_ret = gst_pad_get_pad_template_caps(Handle);
508 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
513 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
514 static extern IntPtr gst_pad_get_parent_element(IntPtr raw);
516 public Gst.Element ParentElement {
518 IntPtr raw_ret = gst_pad_get_parent_element(Handle);
519 Gst.Element ret = GLib.Object.GetObject(raw_ret, true) as Gst.Element;
524 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
525 static extern int gst_pad_get_range(IntPtr raw, ulong offset, uint size, out IntPtr buffer);
527 public Gst.FlowReturn GetRange(ulong offset, uint size, out Gst.Buffer buffer) {
528 IntPtr native_buffer;
529 int raw_ret = gst_pad_get_range(Handle, offset, size, out native_buffer);
530 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
531 buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_buffer, typeof (Gst.Buffer), true);
535 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
536 static extern IntPtr gst_pad_get_single_internal_link(IntPtr raw);
538 public Gst.Pad SingleInternalLink {
540 IntPtr raw_ret = gst_pad_get_single_internal_link(Handle);
541 Gst.Pad ret = GLib.Object.GetObject(raw_ret, true) as Gst.Pad;
546 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
547 static extern IntPtr gst_pad_get_sticky_event(IntPtr raw, int event_type, uint idx);
549 public Gst.Event GetStickyEvent(Gst.EventType event_type, uint idx) {
550 IntPtr raw_ret = gst_pad_get_sticky_event(Handle, (int) event_type, idx);
551 Gst.Event ret = raw_ret == IntPtr.Zero ? null : (Gst.Event) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Event), true);
555 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
556 static extern IntPtr gst_pad_get_stream(IntPtr raw);
558 public Gst.Stream Stream {
560 IntPtr raw_ret = gst_pad_get_stream(Handle);
561 Gst.Stream ret = GLib.Object.GetObject(raw_ret, true) as Gst.Stream;
566 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
567 static extern IntPtr gst_pad_get_stream_id(IntPtr raw);
569 public string StreamId {
571 IntPtr raw_ret = gst_pad_get_stream_id(Handle);
572 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
577 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
578 static extern int gst_pad_get_task_state(IntPtr raw);
580 public Gst.TaskState TaskState {
582 int raw_ret = gst_pad_get_task_state(Handle);
583 Gst.TaskState ret = (Gst.TaskState) raw_ret;
588 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
589 static extern bool gst_pad_has_current_caps(IntPtr raw);
591 public bool HasCurrentCaps {
593 bool raw_ret = gst_pad_has_current_caps(Handle);
599 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
600 static extern bool gst_pad_is_active(IntPtr raw);
602 public bool IsActive {
604 bool raw_ret = gst_pad_is_active(Handle);
610 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
611 static extern bool gst_pad_is_blocked(IntPtr raw);
613 public bool IsBlocked {
615 bool raw_ret = gst_pad_is_blocked(Handle);
621 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
622 static extern bool gst_pad_is_blocking(IntPtr raw);
624 public bool IsBlocking {
626 bool raw_ret = gst_pad_is_blocking(Handle);
632 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
633 static extern bool gst_pad_is_linked(IntPtr raw);
635 public bool IsLinked {
637 bool raw_ret = gst_pad_is_linked(Handle);
643 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
644 static extern IntPtr gst_pad_iterate_internal_links(IntPtr raw);
646 public Gst.Iterator IterateInternalLinks() {
647 IntPtr raw_ret = gst_pad_iterate_internal_links(Handle);
648 Gst.Iterator ret = raw_ret == IntPtr.Zero ? null : (Gst.Iterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Iterator), true);
652 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
653 static extern IntPtr gst_pad_iterate_internal_links_default(IntPtr raw, IntPtr parent);
655 public Gst.Iterator IterateInternalLinksDefault(Gst.Object parent) {
656 IntPtr raw_ret = gst_pad_iterate_internal_links_default(Handle, parent == null ? IntPtr.Zero : parent.Handle);
657 Gst.Iterator ret = raw_ret == IntPtr.Zero ? null : (Gst.Iterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Iterator), true);
661 public Gst.Iterator IterateInternalLinksDefault() {
662 return IterateInternalLinksDefault (null);
665 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
666 static extern int gst_pad_link(IntPtr raw, IntPtr sinkpad);
668 public Gst.PadLinkReturn Link(Gst.Pad sinkpad) {
669 int raw_ret = gst_pad_link(Handle, sinkpad == null ? IntPtr.Zero : sinkpad.Handle);
670 Gst.PadLinkReturn ret = (Gst.PadLinkReturn) raw_ret;
674 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
675 static extern int gst_pad_link_full(IntPtr raw, IntPtr sinkpad, int flags);
677 public Gst.PadLinkReturn LinkFull(Gst.Pad sinkpad, Gst.PadLinkCheck flags) {
678 int raw_ret = gst_pad_link_full(Handle, sinkpad == null ? IntPtr.Zero : sinkpad.Handle, (int) flags);
679 Gst.PadLinkReturn ret = (Gst.PadLinkReturn) raw_ret;
683 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
684 static extern bool gst_pad_link_maybe_ghosting(IntPtr raw, IntPtr sink);
686 public bool LinkMaybeGhosting(Gst.Pad sink) {
687 bool raw_ret = gst_pad_link_maybe_ghosting(Handle, sink == null ? IntPtr.Zero : sink.Handle);
692 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
693 static extern bool gst_pad_link_maybe_ghosting_full(IntPtr raw, IntPtr sink, int flags);
695 public bool LinkMaybeGhostingFull(Gst.Pad sink, Gst.PadLinkCheck flags) {
696 bool raw_ret = gst_pad_link_maybe_ghosting_full(Handle, sink == null ? IntPtr.Zero : sink.Handle, (int) flags);
701 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
702 static extern void gst_pad_mark_reconfigure(IntPtr raw);
704 public void MarkReconfigure() {
705 gst_pad_mark_reconfigure(Handle);
708 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
709 static extern bool gst_pad_needs_reconfigure(IntPtr raw);
711 public bool NeedsReconfigure() {
712 bool raw_ret = gst_pad_needs_reconfigure(Handle);
717 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
718 static extern bool gst_pad_pause_task(IntPtr raw);
720 public bool PauseTask() {
721 bool raw_ret = gst_pad_pause_task(Handle);
726 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
727 static extern bool gst_pad_peer_query(IntPtr raw, IntPtr query);
729 public bool PeerQuery(Gst.Query query) {
730 bool raw_ret = gst_pad_peer_query(Handle, query == null ? IntPtr.Zero : query.Handle);
735 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
736 static extern bool gst_pad_peer_query_accept_caps(IntPtr raw, IntPtr caps);
738 public bool PeerQueryAcceptCaps(Gst.Caps caps) {
739 bool raw_ret = gst_pad_peer_query_accept_caps(Handle, caps == null ? IntPtr.Zero : caps.Handle);
744 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
745 static extern IntPtr gst_pad_peer_query_caps(IntPtr raw, IntPtr filter);
747 public Gst.Caps PeerQueryCaps(Gst.Caps filter) {
748 IntPtr raw_ret = gst_pad_peer_query_caps(Handle, filter == null ? IntPtr.Zero : filter.Handle);
749 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
753 public Gst.Caps PeerQueryCaps() {
754 return PeerQueryCaps (null);
757 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
758 static extern bool gst_pad_peer_query_convert(IntPtr raw, int src_format, long src_val, int dest_format, out long dest_val);
760 public bool PeerQueryConvert(Gst.Format src_format, long src_val, Gst.Format dest_format, out long dest_val) {
761 bool raw_ret = gst_pad_peer_query_convert(Handle, (int) src_format, src_val, (int) dest_format, out dest_val);
766 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
767 static extern bool gst_pad_peer_query_duration(IntPtr raw, int format, out long duration);
769 public bool PeerQueryDuration(Gst.Format format, out long duration) {
770 bool raw_ret = gst_pad_peer_query_duration(Handle, (int) format, out duration);
775 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
776 static extern bool gst_pad_peer_query_position(IntPtr raw, int format, out long cur);
778 public bool PeerQueryPosition(Gst.Format format, out long cur) {
779 bool raw_ret = gst_pad_peer_query_position(Handle, (int) format, out cur);
784 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
785 static extern bool gst_pad_proxy_query_accept_caps(IntPtr raw, IntPtr query);
787 public bool ProxyQueryAcceptCaps(Gst.Query query) {
788 bool raw_ret = gst_pad_proxy_query_accept_caps(Handle, query == null ? IntPtr.Zero : query.Handle);
793 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
794 static extern bool gst_pad_proxy_query_caps(IntPtr raw, IntPtr query);
796 public bool ProxyQueryCaps(Gst.Query query) {
797 bool raw_ret = gst_pad_proxy_query_caps(Handle, query == null ? IntPtr.Zero : query.Handle);
802 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
803 static extern int gst_pad_pull_range(IntPtr raw, ulong offset, uint size, out IntPtr buffer);
805 public Gst.FlowReturn PullRange(ulong offset, uint size, out Gst.Buffer buffer) {
806 IntPtr native_buffer;
807 int raw_ret = gst_pad_pull_range(Handle, offset, size, out native_buffer);
808 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
809 buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_buffer, typeof (Gst.Buffer), true);
813 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
814 static extern int gst_pad_push(IntPtr raw, IntPtr buffer);
816 public Gst.FlowReturn Push(Gst.Buffer buffer) {
817 buffer.Owned = false;
818 int raw_ret = gst_pad_push(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
819 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
823 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
824 static extern bool gst_pad_push_event(IntPtr raw, IntPtr evnt);
826 public bool PushEvent(Gst.Event evnt) {
828 bool raw_ret = gst_pad_push_event(Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
833 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
834 static extern int gst_pad_push_list(IntPtr raw, IntPtr list);
836 public Gst.FlowReturn PushList(Gst.BufferList list) {
838 int raw_ret = gst_pad_push_list(Handle, list == null ? IntPtr.Zero : list.Handle);
839 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
843 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
844 static extern bool gst_pad_query(IntPtr raw, IntPtr query);
846 public bool Query(Gst.Query query) {
847 bool raw_ret = gst_pad_query(Handle, query == null ? IntPtr.Zero : query.Handle);
852 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
853 static extern bool gst_pad_query_accept_caps(IntPtr raw, IntPtr caps);
855 public bool QueryAcceptCaps(Gst.Caps caps) {
856 bool raw_ret = gst_pad_query_accept_caps(Handle, caps == null ? IntPtr.Zero : caps.Handle);
861 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
862 static extern IntPtr gst_pad_query_caps(IntPtr raw, IntPtr filter);
864 public Gst.Caps QueryCaps(Gst.Caps filter) {
865 IntPtr raw_ret = gst_pad_query_caps(Handle, filter == null ? IntPtr.Zero : filter.Handle);
866 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
870 public Gst.Caps QueryCaps() {
871 return QueryCaps (null);
874 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
875 static extern bool gst_pad_query_convert(IntPtr raw, int src_format, long src_val, int dest_format, out long dest_val);
877 public bool QueryConvert(Gst.Format src_format, long src_val, Gst.Format dest_format, out long dest_val) {
878 bool raw_ret = gst_pad_query_convert(Handle, (int) src_format, src_val, (int) dest_format, out dest_val);
883 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
884 static extern bool gst_pad_query_default(IntPtr raw, IntPtr parent, IntPtr query);
886 public bool QueryDefault(Gst.Object parent, Gst.Query query) {
887 bool raw_ret = gst_pad_query_default(Handle, parent == null ? IntPtr.Zero : parent.Handle, query == null ? IntPtr.Zero : query.Handle);
892 public bool QueryDefault(Gst.Query query) {
893 return QueryDefault (null, query);
896 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
897 static extern bool gst_pad_query_duration(IntPtr raw, int format, out long duration);
899 public bool QueryDuration(Gst.Format format, out long duration) {
900 bool raw_ret = gst_pad_query_duration(Handle, (int) format, out duration);
905 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
906 static extern bool gst_pad_query_position(IntPtr raw, int format, out long cur);
908 public bool QueryPosition(Gst.Format format, out long cur) {
909 bool raw_ret = gst_pad_query_position(Handle, (int) format, out cur);
914 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
915 static extern void gst_pad_remove_probe(IntPtr raw, UIntPtr id);
917 public void RemoveProbe(ulong id) {
918 gst_pad_remove_probe(Handle, new UIntPtr (id));
921 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
922 static extern bool gst_pad_send_event(IntPtr raw, IntPtr evnt);
924 public bool SendEvent(Gst.Event evnt) {
926 bool raw_ret = gst_pad_send_event(Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
931 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
932 static extern void gst_pad_set_activate_function_full(IntPtr raw, GstSharp.PadActivateFunctionNative activate, IntPtr user_data, GLib.DestroyNotify notify);
934 public Gst.PadActivateFunction ActivateFunctionFull {
936 GstSharp.PadActivateFunctionWrapper value_wrapper = new GstSharp.PadActivateFunctionWrapper (value);
938 GLib.DestroyNotify notify;
940 user_data = IntPtr.Zero;
943 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
944 notify = GLib.DestroyHelper.NotifyHandler;
946 gst_pad_set_activate_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
950 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
951 static extern void gst_pad_set_activatemode_function_full(IntPtr raw, GstSharp.PadActivateModeFunctionNative activatemode, IntPtr user_data, GLib.DestroyNotify notify);
953 public Gst.PadActivateModeFunction ActivatemodeFunctionFull {
955 GstSharp.PadActivateModeFunctionWrapper value_wrapper = new GstSharp.PadActivateModeFunctionWrapper (value);
957 GLib.DestroyNotify notify;
959 user_data = IntPtr.Zero;
962 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
963 notify = GLib.DestroyHelper.NotifyHandler;
965 gst_pad_set_activatemode_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
969 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
970 static extern bool gst_pad_set_active(IntPtr raw, bool active);
972 public bool SetActive(bool active) {
973 bool raw_ret = gst_pad_set_active(Handle, active);
978 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
979 static extern void gst_pad_set_chain_function_full(IntPtr raw, GstSharp.PadChainFunctionNative chain, IntPtr user_data, GLib.DestroyNotify notify);
981 public Gst.PadChainFunction ChainFunctionFull {
983 GstSharp.PadChainFunctionWrapper value_wrapper = new GstSharp.PadChainFunctionWrapper (value);
985 GLib.DestroyNotify notify;
987 user_data = IntPtr.Zero;
990 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
991 notify = GLib.DestroyHelper.NotifyHandler;
993 gst_pad_set_chain_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
997 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
998 static extern void gst_pad_set_chain_list_function_full(IntPtr raw, GstSharp.PadChainListFunctionNative chainlist, IntPtr user_data, GLib.DestroyNotify notify);
1000 public Gst.PadChainListFunction ChainListFunctionFull {
1002 GstSharp.PadChainListFunctionWrapper value_wrapper = new GstSharp.PadChainListFunctionWrapper (value);
1004 GLib.DestroyNotify notify;
1005 if (value == null) {
1006 user_data = IntPtr.Zero;
1009 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1010 notify = GLib.DestroyHelper.NotifyHandler;
1012 gst_pad_set_chain_list_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1016 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1017 static extern void gst_pad_set_event_full_function_full(IntPtr raw, GstSharp.PadEventFullFunctionNative evnt, IntPtr user_data, GLib.DestroyNotify notify);
1019 public Gst.PadEventFullFunction EventFullFunctionFull {
1021 GstSharp.PadEventFullFunctionWrapper value_wrapper = new GstSharp.PadEventFullFunctionWrapper (value);
1023 GLib.DestroyNotify notify;
1024 if (value == null) {
1025 user_data = IntPtr.Zero;
1028 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1029 notify = GLib.DestroyHelper.NotifyHandler;
1031 gst_pad_set_event_full_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1035 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1036 static extern void gst_pad_set_event_function_full(IntPtr raw, GstSharp.PadEventFunctionNative evnt, IntPtr user_data, GLib.DestroyNotify notify);
1038 public Gst.PadEventFunction EventFunctionFull {
1040 GstSharp.PadEventFunctionWrapper value_wrapper = new GstSharp.PadEventFunctionWrapper (value);
1042 GLib.DestroyNotify notify;
1043 if (value == null) {
1044 user_data = IntPtr.Zero;
1047 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1048 notify = GLib.DestroyHelper.NotifyHandler;
1050 gst_pad_set_event_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1054 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1055 static extern void gst_pad_set_getrange_function_full(IntPtr raw, GstSharp.PadGetRangeFunctionNative get, IntPtr user_data, GLib.DestroyNotify notify);
1057 public Gst.PadGetRangeFunction GetrangeFunctionFull {
1059 GstSharp.PadGetRangeFunctionWrapper value_wrapper = new GstSharp.PadGetRangeFunctionWrapper (value);
1061 GLib.DestroyNotify notify;
1062 if (value == null) {
1063 user_data = IntPtr.Zero;
1066 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1067 notify = GLib.DestroyHelper.NotifyHandler;
1069 gst_pad_set_getrange_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1073 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1074 static extern void gst_pad_set_iterate_internal_links_function_full(IntPtr raw, GstSharp.PadIterIntLinkFunctionNative iterintlink, IntPtr user_data, GLib.DestroyNotify notify);
1076 public Gst.PadIterIntLinkFunction IterateInternalLinksFunctionFull {
1078 GstSharp.PadIterIntLinkFunctionWrapper value_wrapper = new GstSharp.PadIterIntLinkFunctionWrapper (value);
1080 GLib.DestroyNotify notify;
1081 if (value == null) {
1082 user_data = IntPtr.Zero;
1085 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1086 notify = GLib.DestroyHelper.NotifyHandler;
1088 gst_pad_set_iterate_internal_links_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1092 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1093 static extern void gst_pad_set_link_function_full(IntPtr raw, GstSharp.PadLinkFunctionNative link, IntPtr user_data, GLib.DestroyNotify notify);
1095 public Gst.PadLinkFunction LinkFunctionFull {
1097 GstSharp.PadLinkFunctionWrapper value_wrapper = new GstSharp.PadLinkFunctionWrapper (value);
1099 GLib.DestroyNotify notify;
1100 if (value == null) {
1101 user_data = IntPtr.Zero;
1104 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1105 notify = GLib.DestroyHelper.NotifyHandler;
1107 gst_pad_set_link_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1111 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1112 static extern void gst_pad_set_query_function_full(IntPtr raw, GstSharp.PadQueryFunctionNative query, IntPtr user_data, GLib.DestroyNotify notify);
1114 public Gst.PadQueryFunction QueryFunctionFull {
1116 GstSharp.PadQueryFunctionWrapper value_wrapper = new GstSharp.PadQueryFunctionWrapper (value);
1118 GLib.DestroyNotify notify;
1119 if (value == null) {
1120 user_data = IntPtr.Zero;
1123 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1124 notify = GLib.DestroyHelper.NotifyHandler;
1126 gst_pad_set_query_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1130 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1131 static extern void gst_pad_set_unlink_function_full(IntPtr raw, GstSharp.PadUnlinkFunctionNative unlink, IntPtr user_data, GLib.DestroyNotify notify);
1133 public Gst.PadUnlinkFunction UnlinkFunctionFull {
1135 GstSharp.PadUnlinkFunctionWrapper value_wrapper = new GstSharp.PadUnlinkFunctionWrapper (value);
1137 GLib.DestroyNotify notify;
1138 if (value == null) {
1139 user_data = IntPtr.Zero;
1142 user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
1143 notify = GLib.DestroyHelper.NotifyHandler;
1145 gst_pad_set_unlink_function_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
1149 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1150 static extern bool gst_pad_start_task(IntPtr raw, GstSharp.TaskFunctionNative func, IntPtr user_data, GLib.DestroyNotify notify);
1152 public bool StartTask(Gst.TaskFunction func) {
1153 GstSharp.TaskFunctionWrapper func_wrapper = new GstSharp.TaskFunctionWrapper (func);
1155 GLib.DestroyNotify notify;
1157 user_data = IntPtr.Zero;
1160 user_data = (IntPtr) GCHandle.Alloc (func_wrapper);
1161 notify = GLib.DestroyHelper.NotifyHandler;
1163 bool raw_ret = gst_pad_start_task(Handle, func_wrapper.NativeDelegate, user_data, notify);
1168 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1169 static extern void gst_pad_sticky_events_foreach(IntPtr raw, GstSharp.PadStickyEventsForeachFunctionNative foreach_func, IntPtr user_data);
1171 public void StickyEventsForeach(Gst.PadStickyEventsForeachFunction foreach_func) {
1172 GstSharp.PadStickyEventsForeachFunctionWrapper foreach_func_wrapper = new GstSharp.PadStickyEventsForeachFunctionWrapper (foreach_func);
1173 gst_pad_sticky_events_foreach(Handle, foreach_func_wrapper.NativeDelegate, IntPtr.Zero);
1176 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1177 static extern bool gst_pad_stop_task(IntPtr raw);
1179 public bool StopTask() {
1180 bool raw_ret = gst_pad_stop_task(Handle);
1185 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1186 static extern int gst_pad_store_sticky_event(IntPtr raw, IntPtr evnt);
1188 public Gst.FlowReturn StoreStickyEvent(Gst.Event evnt) {
1189 int raw_ret = gst_pad_store_sticky_event(Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
1190 Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
1194 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1195 static extern bool gst_pad_unlink(IntPtr raw, IntPtr sinkpad);
1197 public bool Unlink(Gst.Pad sinkpad) {
1198 bool raw_ret = gst_pad_unlink(Handle, sinkpad == null ? IntPtr.Zero : sinkpad.Handle);
1203 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1204 static extern void gst_pad_use_fixed_caps(IntPtr raw);
1206 public void UseFixedCaps() {
1207 gst_pad_use_fixed_caps(Handle);
1210 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
1211 static extern IntPtr gst_pad_mode_get_name(int mode);
1213 public static string ModeGetName(Gst.PadMode mode) {
1214 IntPtr raw_ret = gst_pad_mode_get_name((int) mode);
1215 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
1220 // Internal representation of the wrapped structure ABI.
1221 static GLib.AbiStruct _abi_info = null;
1222 static public new GLib.AbiStruct abi_info {
1224 if (_abi_info == null)
1225 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
1226 new GLib.AbiField("element_private"
1227 , Gst.Object.abi_info.Fields
1228 , (uint) Marshal.SizeOf(typeof(IntPtr)) // element_private
1231 , (uint) Marshal.SizeOf(typeof(IntPtr))
1234 new GLib.AbiField("padtemplate"
1236 , (uint) Marshal.SizeOf(typeof(IntPtr)) // padtemplate
1239 , (uint) Marshal.SizeOf(typeof(IntPtr))
1242 new GLib.AbiField("direction"
1244 , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.PadDirection))) // direction
1247 , (long) Marshal.OffsetOf(typeof(GstPad_directionAlign), "direction")
1250 new GLib.AbiField("stream_rec_lock"
1252 , (uint) Marshal.SizeOf(typeof(GLib.RecMutex.ABI)) // stream_rec_lock
1255 , (long) Marshal.OffsetOf(typeof(GstPad_stream_rec_lockAlign), "stream_rec_lock")
1258 new GLib.AbiField("task"
1260 , (uint) Marshal.SizeOf(typeof(IntPtr)) // task
1263 , (uint) Marshal.SizeOf(typeof(IntPtr))
1266 new GLib.AbiField("block_cond"
1268 , (uint) Marshal.SizeOf(typeof(GLib.Cond.ABI)) // block_cond
1271 , (long) Marshal.OffsetOf(typeof(GstPad_block_condAlign), "block_cond")
1274 new GLib.AbiField("probes"
1276 , GLib.HookList.abi_info.Size // probes
1279 , (long) Marshal.OffsetOf(typeof(GstPad_probesAlign), "probes")
1282 new GLib.AbiField("mode"
1284 , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.PadMode))) // mode
1287 , (long) Marshal.OffsetOf(typeof(GstPad_modeAlign), "mode")
1290 new GLib.AbiField("activatefunc"
1292 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatefunc
1295 , (uint) Marshal.SizeOf(typeof(IntPtr))
1298 new GLib.AbiField("activatedata"
1300 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatedata
1303 , (uint) Marshal.SizeOf(typeof(IntPtr))
1306 new GLib.AbiField("activatenotify"
1308 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatenotify
1310 , "activatemodefunc"
1311 , (long) Marshal.OffsetOf(typeof(GstPad_activatenotifyAlign), "activatenotify")
1314 new GLib.AbiField("activatemodefunc"
1316 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatemodefunc
1318 , "activatemodedata"
1319 , (uint) Marshal.SizeOf(typeof(IntPtr))
1322 new GLib.AbiField("activatemodedata"
1324 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatemodedata
1325 , "activatemodefunc"
1326 , "activatemodenotify"
1327 , (uint) Marshal.SizeOf(typeof(IntPtr))
1330 new GLib.AbiField("activatemodenotify"
1332 , (uint) Marshal.SizeOf(typeof(IntPtr)) // activatemodenotify
1333 , "activatemodedata"
1335 , (long) Marshal.OffsetOf(typeof(GstPad_activatemodenotifyAlign), "activatemodenotify")
1338 new GLib.AbiField("peer"
1340 , (uint) Marshal.SizeOf(typeof(IntPtr)) // peer
1341 , "activatemodenotify"
1343 , (uint) Marshal.SizeOf(typeof(IntPtr))
1346 new GLib.AbiField("linkfunc"
1348 , (uint) Marshal.SizeOf(typeof(IntPtr)) // linkfunc
1351 , (uint) Marshal.SizeOf(typeof(IntPtr))
1354 new GLib.AbiField("linkdata"
1356 , (uint) Marshal.SizeOf(typeof(IntPtr)) // linkdata
1359 , (uint) Marshal.SizeOf(typeof(IntPtr))
1362 new GLib.AbiField("linknotify"
1364 , (uint) Marshal.SizeOf(typeof(IntPtr)) // linknotify
1367 , (long) Marshal.OffsetOf(typeof(GstPad_linknotifyAlign), "linknotify")
1370 new GLib.AbiField("unlinkfunc"
1372 , (uint) Marshal.SizeOf(typeof(IntPtr)) // unlinkfunc
1375 , (uint) Marshal.SizeOf(typeof(IntPtr))
1378 new GLib.AbiField("unlinkdata"
1380 , (uint) Marshal.SizeOf(typeof(IntPtr)) // unlinkdata
1383 , (uint) Marshal.SizeOf(typeof(IntPtr))
1386 new GLib.AbiField("unlinknotify"
1388 , (uint) Marshal.SizeOf(typeof(IntPtr)) // unlinknotify
1391 , (long) Marshal.OffsetOf(typeof(GstPad_unlinknotifyAlign), "unlinknotify")
1394 new GLib.AbiField("chainfunc"
1396 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chainfunc
1399 , (uint) Marshal.SizeOf(typeof(IntPtr))
1402 new GLib.AbiField("chaindata"
1404 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chaindata
1407 , (uint) Marshal.SizeOf(typeof(IntPtr))
1410 new GLib.AbiField("chainnotify"
1412 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chainnotify
1415 , (long) Marshal.OffsetOf(typeof(GstPad_chainnotifyAlign), "chainnotify")
1418 new GLib.AbiField("chainlistfunc"
1420 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chainlistfunc
1423 , (uint) Marshal.SizeOf(typeof(IntPtr))
1426 new GLib.AbiField("chainlistdata"
1428 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chainlistdata
1431 , (uint) Marshal.SizeOf(typeof(IntPtr))
1434 new GLib.AbiField("chainlistnotify"
1436 , (uint) Marshal.SizeOf(typeof(IntPtr)) // chainlistnotify
1439 , (long) Marshal.OffsetOf(typeof(GstPad_chainlistnotifyAlign), "chainlistnotify")
1442 new GLib.AbiField("getrangefunc"
1444 , (uint) Marshal.SizeOf(typeof(IntPtr)) // getrangefunc
1447 , (uint) Marshal.SizeOf(typeof(IntPtr))
1450 new GLib.AbiField("getrangedata"
1452 , (uint) Marshal.SizeOf(typeof(IntPtr)) // getrangedata
1455 , (uint) Marshal.SizeOf(typeof(IntPtr))
1458 new GLib.AbiField("getrangenotify"
1460 , (uint) Marshal.SizeOf(typeof(IntPtr)) // getrangenotify
1463 , (long) Marshal.OffsetOf(typeof(GstPad_getrangenotifyAlign), "getrangenotify")
1466 new GLib.AbiField("eventfunc"
1468 , (uint) Marshal.SizeOf(typeof(IntPtr)) // eventfunc
1471 , (uint) Marshal.SizeOf(typeof(IntPtr))
1474 new GLib.AbiField("eventdata"
1476 , (uint) Marshal.SizeOf(typeof(IntPtr)) // eventdata
1479 , (uint) Marshal.SizeOf(typeof(IntPtr))
1482 new GLib.AbiField("eventnotify"
1484 , (uint) Marshal.SizeOf(typeof(IntPtr)) // eventnotify
1487 , (long) Marshal.OffsetOf(typeof(GstPad_eventnotifyAlign), "eventnotify")
1490 new GLib.AbiField("offset"
1492 , (uint) Marshal.SizeOf(typeof(long)) // offset
1495 , (long) Marshal.OffsetOf(typeof(GstPad_offsetAlign), "offset")
1498 new GLib.AbiField("queryfunc"
1500 , (uint) Marshal.SizeOf(typeof(IntPtr)) // queryfunc
1503 , (uint) Marshal.SizeOf(typeof(IntPtr))
1506 new GLib.AbiField("querydata"
1508 , (uint) Marshal.SizeOf(typeof(IntPtr)) // querydata
1511 , (uint) Marshal.SizeOf(typeof(IntPtr))
1514 new GLib.AbiField("querynotify"
1516 , (uint) Marshal.SizeOf(typeof(IntPtr)) // querynotify
1519 , (long) Marshal.OffsetOf(typeof(GstPad_querynotifyAlign), "querynotify")
1522 new GLib.AbiField("iterintlinkfunc"
1524 , (uint) Marshal.SizeOf(typeof(IntPtr)) // iterintlinkfunc
1527 , (uint) Marshal.SizeOf(typeof(IntPtr))
1530 new GLib.AbiField("iterintlinkdata"
1532 , (uint) Marshal.SizeOf(typeof(IntPtr)) // iterintlinkdata
1534 , "iterintlinknotify"
1535 , (uint) Marshal.SizeOf(typeof(IntPtr))
1538 new GLib.AbiField("iterintlinknotify"
1540 , (uint) Marshal.SizeOf(typeof(IntPtr)) // iterintlinknotify
1543 , (long) Marshal.OffsetOf(typeof(GstPad_iterintlinknotifyAlign), "iterintlinknotify")
1546 new GLib.AbiField("num_probes"
1548 , (uint) Marshal.SizeOf(typeof(int)) // num_probes
1549 , "iterintlinknotify"
1551 , (long) Marshal.OffsetOf(typeof(GstPad_num_probesAlign), "num_probes")
1554 new GLib.AbiField("num_blocked"
1556 , (uint) Marshal.SizeOf(typeof(int)) // num_blocked
1559 , (long) Marshal.OffsetOf(typeof(GstPad_num_blockedAlign), "num_blocked")
1562 new GLib.AbiField("priv"
1564 , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
1567 , (uint) Marshal.SizeOf(typeof(IntPtr))
1571 new GLib.AbiField("ABI._gst_reserved"
1573 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // ABI._gst_reserved
1576 , (uint) Marshal.SizeOf(typeof(IntPtr))
1581 // union struct ABI.abi
1582 new GLib.AbiField("ABI.abi.last_flowret"
1584 , (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.FlowReturn))) // ABI.abi.last_flowret
1586 , "ABI.abi.eventfullfunc"
1587 , (long) Marshal.OffsetOf(typeof(GstPad_ABI_abi_last_flowretAlign), "ABI_abi_last_flowret")
1590 new GLib.AbiField("ABI.abi.eventfullfunc"
1592 , (uint) Marshal.SizeOf(typeof(IntPtr)) // ABI.abi.eventfullfunc
1593 , "ABI.abi.last_flowret"
1595 , (uint) Marshal.SizeOf(typeof(IntPtr))
1600 new GLib.AbiField("ABI"
1602 , new List<List<string>>() { // union ABI
1603 new List<string>() {"ABI._gst_reserved"},
1604 new List<string>() {"ABI.abi.last_flowret","ABI.abi.eventfullfunc"}
1616 [StructLayout(LayoutKind.Sequential)]
1617 public struct GstPad_directionAlign
1620 private Gst.PadDirection direction;
1623 [StructLayout(LayoutKind.Sequential)]
1624 public struct GstPad_stream_rec_lockAlign
1627 private GLib.RecMutex.ABI stream_rec_lock;
1630 [StructLayout(LayoutKind.Sequential)]
1631 public struct GstPad_block_condAlign
1634 private GLib.Cond.ABI block_cond;
1637 [StructLayout(LayoutKind.Sequential)]
1638 public struct GstPad_probesAlign
1641 private GLib.HookList probes;
1644 [StructLayout(LayoutKind.Sequential)]
1645 public struct GstPad_modeAlign
1648 private Gst.PadMode mode;
1651 [StructLayout(LayoutKind.Sequential)]
1652 public struct GstPad_activatenotifyAlign
1655 private GLib.DestroyNotify activatenotify;
1658 [StructLayout(LayoutKind.Sequential)]
1659 public struct GstPad_activatemodenotifyAlign
1662 private GLib.DestroyNotify activatemodenotify;
1665 [StructLayout(LayoutKind.Sequential)]
1666 public struct GstPad_linknotifyAlign
1669 private GLib.DestroyNotify linknotify;
1672 [StructLayout(LayoutKind.Sequential)]
1673 public struct GstPad_unlinknotifyAlign
1676 private GLib.DestroyNotify unlinknotify;
1679 [StructLayout(LayoutKind.Sequential)]
1680 public struct GstPad_chainnotifyAlign
1683 private GLib.DestroyNotify chainnotify;
1686 [StructLayout(LayoutKind.Sequential)]
1687 public struct GstPad_chainlistnotifyAlign
1690 private GLib.DestroyNotify chainlistnotify;
1693 [StructLayout(LayoutKind.Sequential)]
1694 public struct GstPad_getrangenotifyAlign
1697 private GLib.DestroyNotify getrangenotify;
1700 [StructLayout(LayoutKind.Sequential)]
1701 public struct GstPad_eventnotifyAlign
1704 private GLib.DestroyNotify eventnotify;
1707 [StructLayout(LayoutKind.Sequential)]
1708 public struct GstPad_offsetAlign
1711 private long offset;
1714 [StructLayout(LayoutKind.Sequential)]
1715 public struct GstPad_querynotifyAlign
1718 private GLib.DestroyNotify querynotify;
1721 [StructLayout(LayoutKind.Sequential)]
1722 public struct GstPad_iterintlinknotifyAlign
1725 private GLib.DestroyNotify iterintlinknotify;
1728 [StructLayout(LayoutKind.Sequential)]
1729 public struct GstPad_num_probesAlign
1732 private int num_probes;
1735 [StructLayout(LayoutKind.Sequential)]
1736 public struct GstPad_num_blockedAlign
1739 private int num_blocked;
1742 [StructLayout(LayoutKind.Sequential)]
1743 public struct GstPad_ABI_abi_last_flowretAlign
1746 private Gst.FlowReturn ABI_abi_last_flowret;
1750 // End of the ABI representation.