public Gst.FlowReturn PushFrame(Gst.Base.BaseParseFrame frame)
        {
            IntPtr native_frame = GLib.Marshaller.StructureToPtrAlloc(frame);
            int    raw_ret      = gst_base_parse_push_frame(Handle, native_frame);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            Marshal.FreeHGlobal(native_frame);
            return(ret);
        }
        private Gst.FlowReturn InternalPrePushFrame(Gst.Base.BaseParseFrame frame)
        {
            PrePushFrameNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("pre_push_frame"));
                unmanaged = (PrePushFrameNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PrePushFrameNativeDelegate));
            }
            if (unmanaged == null)
            {
                return((Gst.FlowReturn) 0);
            }

            IntPtr native_frame = GLib.Marshaller.StructureToPtrAlloc(frame);
            int    __result     = unmanaged(this.Handle, native_frame);

            Marshal.FreeHGlobal(native_frame);
            return((Gst.FlowReturn)__result);
        }
 protected virtual Gst.FlowReturn OnPrePushFrame(Gst.Base.BaseParseFrame frame)
 {
     return(InternalPrePushFrame(frame));
 }
 protected virtual Gst.FlowReturn OnHandleFrame(Gst.Base.BaseParseFrame frame, int skipsize)
 {
     return(InternalHandleFrame(frame, skipsize));
 }
Пример #5
0
 static void ReadNative(IntPtr native, ref Gst.Base.BaseParseFrame target)
 {
     target = New(native);
 }