static bool Start_cb(IntPtr inst) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; bool __result; __result = __obj.OnStart(); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool SrcQuery_cb(IntPtr inst, IntPtr query) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; bool __result; __result = __obj.OnSrcQuery(query == IntPtr.Zero ? null : (Gst.Query)GLib.Opaque.GetOpaque(query, typeof(Gst.Query), false)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int Detect_cb(IntPtr inst, IntPtr buffer) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; Gst.FlowReturn __result; __result = __obj.OnDetect(buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(buffer, typeof(Gst.Buffer), false)); return((int)__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetSinkCaps_cb(IntPtr inst, IntPtr filter) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; Gst.Caps __result; __result = __obj.OnGetSinkCaps(filter == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(filter, typeof(Gst.Caps), false)); return(__result == null ? IntPtr.Zero : __result.OwnedCopy); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool Convert_cb(IntPtr inst, int src_format, long src_value, int dest_format, long dest_value) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; bool __result; __result = __obj.OnConvert((Gst.Format)src_format, src_value, (Gst.Format)dest_format, dest_value); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static int PrePushFrame_cb(IntPtr inst, IntPtr frame) { try { BaseParse __obj = GLib.Object.GetObject(inst, false) as BaseParse; Gst.FlowReturn __result; __result = __obj.OnPrePushFrame(Gst.Base.BaseParseFrame.New(frame)); return((int)__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }