static void FindBestFormat_cb (IntPtr inst, IntPtr downstream_caps, IntPtr best_info, bool at_least_one_alpha) { try { VideoAggregator __obj = GLib.Object.GetObject (inst, false) as VideoAggregator; __obj.OnFindBestFormat (downstream_caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (downstream_caps, typeof (Gst.Caps), false), best_info == IntPtr.Zero ? null : (Gst.Video.VideoInfo) GLib.Opaque.GetOpaque (best_info, typeof (Gst.Video.VideoInfo), false), at_least_one_alpha); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } }
static IntPtr UpdateCaps_cb (IntPtr inst, IntPtr caps) { try { VideoAggregator __obj = GLib.Object.GetObject (inst, false) as VideoAggregator; Gst.Caps __result; __result = __obj.OnUpdateCaps (caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (caps, 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 int CreateOutputBuffer_cb (IntPtr inst, IntPtr outbuffer) { try { VideoAggregator __obj = GLib.Object.GetObject (inst, false) as VideoAggregator; Gst.FlowReturn __result; __result = __obj.OnCreateOutputBuffer (outbuffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (outbuffer, typeof (Gst.Buffer), false)); return (int) __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); // NOTREACHED: above call does not return. throw e; } }