public Gst.FlowReturn Push(byte[] data, uint payload_len, ulong timestamp)
        {
            int raw_ret = gst_rtp_base_audio_payload_push(Handle, data, payload_len, timestamp);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 2
0
        public Gst.FlowReturn Push(Gst.Buffer out_buf)
        {
            int raw_ret = gst_rtp_base_depayload_push(Handle, out_buf == null ? IntPtr.Zero : out_buf.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 3
0
        public static uint FlowToQuark(Gst.FlowReturn _ret)
        {
            uint raw_ret = gst_flow_to_quark((int)_ret);
            uint ret     = raw_ret;

            return(ret);
        }
Esempio n. 4
0
        public Gst.FlowReturn PushList(Gst.BufferList list)
        {
            int raw_ret = gst_rtp_base_payload_push_list(Handle, list == null ? IntPtr.Zero : list.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
        public Gst.FlowReturn Flush(uint payload_len, ulong timestamp)
        {
            int raw_ret = gst_rtp_base_audio_payload_flush(Handle, payload_len, timestamp);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 6
0
        public static string FlowGetName(Gst.FlowReturn _ret)
        {
            IntPtr raw_ret = gst_flow_get_name((int)_ret);
            string ret     = GLib.Marshaller.Utf8PtrToString(raw_ret);

            return(ret);
        }
Esempio n. 7
0
        public Gst.FlowReturn Push(Gst.Buffer buffer)
        {
            int raw_ret = gst_rtp_base_payload_push(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
        public Gst.FlowReturn EndOfStream()
        {
            int raw_ret = gst_app_src_end_of_stream(Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
        public Gst.FlowReturn PushSample(Gst.Sample sample)
        {
            int raw_ret = gst_app_src_push_sample(Handle, sample == null ? IntPtr.Zero : sample.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 10
0
        public static Gst.FlowReturn ChainDefault(Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer)
        {
            buffer.Owned = false;
            int raw_ret = gst_proxy_pad_chain_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, buffer == null ? IntPtr.Zero : buffer.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
        public Gst.FlowReturn PushBufferList(Gst.BufferList buffer_list)
        {
            buffer_list.Owned = false;
            int raw_ret = gst_app_src_push_buffer_list(Handle, buffer_list == null ? IntPtr.Zero : buffer_list.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
        public Gst.FlowReturn PushBuffer(Gst.Buffer buffer)
        {
            buffer.Owned = false;
            int raw_ret = gst_app_src_push_buffer(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 13
0
        public static Gst.FlowReturn ChainListDefault(Gst.Pad pad, Gst.Object parent, Gst.BufferList list)
        {
            list.Owned = false;
            int raw_ret = gst_proxy_pad_chain_list_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, list == null ? IntPtr.Zero : list.Handle);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            return(ret);
        }
Esempio n. 14
0
        Gst.FlowReturn InvokeNative(Gst.Object obj, Gst.Object parent, ulong offset, uint length, out Gst.Buffer buffer)
        {
            IntPtr native_buffer;

            Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, length, out native_buffer);
            buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_buffer, typeof(Gst.Buffer), true);
            return(__result);
        }
Esempio n. 15
0
        public Gst.FlowReturn ClipRunningTime(Gst.Base.CollectData cdata, Gst.Buffer buf, Gst.Buffer outbuf, IntPtr user_data)
        {
            IntPtr native_cdata = GLib.Marshaller.StructureToPtrAlloc(cdata);
            int    raw_ret      = gst_collect_pads_clip_running_time(Handle, native_cdata, buf == null ? IntPtr.Zero : buf.Handle, outbuf == null ? IntPtr.Zero : outbuf.Handle, user_data);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            Marshal.FreeHGlobal(native_cdata);
            return(ret);
        }
Esempio n. 16
0
        Gst.FlowReturn InvokeNative(Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer buffer)
        {
            IntPtr native_data = GLib.Marshaller.StructureToPtrAlloc(data);

            buffer.Owned = false;
            Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(pads == null ? IntPtr.Zero : pads.Handle, native_data, buffer == null ? IntPtr.Zero : buffer.Handle, __data);
            Marshal.FreeHGlobal(native_data);
            return(__result);
        }
        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);
        }
Esempio n. 18
0
        public static Gst.FlowReturn GetrangeDefault(Gst.Pad pad, Gst.Object parent, ulong offset, uint size, out Gst.Buffer buffer)
        {
            IntPtr native_buffer;
            int    raw_ret = gst_proxy_pad_getrange_default(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, size, out native_buffer);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_buffer, typeof(Gst.Buffer), true);
            return(ret);
        }
Esempio n. 19
0
        public Gst.FlowReturn ClipRunningTime(Gst.Base.CollectData cdata, Gst.Buffer buf, out Gst.Buffer outbuf, IntPtr user_data)
        {
            IntPtr native_cdata = GLib.Marshaller.StructureToPtrAlloc(cdata);
            IntPtr native_outbuf;
            int    raw_ret = gst_collect_pads_clip_running_time(Handle, native_cdata, buf == null ? IntPtr.Zero : buf.Handle, out native_outbuf, user_data);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            Marshal.FreeHGlobal(native_cdata);
            outbuf = native_outbuf == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_outbuf, typeof(Gst.Buffer), true);
            return(ret);
        }
Esempio n. 20
0
        public Gst.FlowReturn AcquireBuffer(out Gst.Buffer buffer, Gst.BufferPoolAcquireParams parms)
        {
            IntPtr native_buffer;
            IntPtr native_parms = GLib.Marshaller.StructureToPtrAlloc(parms);
            int    raw_ret      = gst_buffer_pool_acquire_buffer(Handle, out native_buffer, native_parms);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_buffer, typeof(Gst.Buffer), true);
            Marshal.FreeHGlobal(native_parms);
            return(ret);
        }
        public Gst.FlowReturn UpdatePadFlow(Gst.Pad pad, Gst.FlowReturn fret)
        {
            IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal(System.Runtime.InteropServices.Marshal.SizeOf(this));

            System.Runtime.InteropServices.Marshal.StructureToPtr(this, this_as_native, false);
            int raw_ret = gst_flow_combiner_update_pad_flow(this_as_native, pad == null ? IntPtr.Zero : pad.Handle, (int)fret);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }
Esempio n. 22
0
        Gst.FlowReturn InvokeNative(Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer inbuffer, out Gst.Buffer outbuffer)
        {
            IntPtr native_data = GLib.Marshaller.StructureToPtrAlloc(data);

            inbuffer.Owned = false;
            IntPtr native_outbuffer;

            Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(pads == null ? IntPtr.Zero : pads.Handle, native_data, inbuffer == null ? IntPtr.Zero : inbuffer.Handle, out native_outbuffer, __data);
            Marshal.FreeHGlobal(native_data);
            outbuffer = native_outbuffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(native_outbuffer, typeof(Gst.Buffer), true);
            return(__result);
        }
        public static Gst.FlowReturn TypeFindHelperGetRangeFull(Gst.Object obj, Gst.Object parent, Gst.Base.TypeFindHelperGetRangeFunction func, ulong size, string extension, out Gst.Caps caps, out Gst.TypeFindProbability prob)
        {
            Gst.BaseSharp.TypeFindHelperGetRangeFunctionWrapper func_wrapper = new Gst.BaseSharp.TypeFindHelperGetRangeFunctionWrapper(func);
            IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup(extension);
            IntPtr native_caps;
            int    native_prob;
            int    raw_ret = gst_type_find_helper_get_range_full(obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, func_wrapper.NativeDelegate, size, native_extension, out native_caps, out native_prob);

            Gst.FlowReturn ret = (Gst.FlowReturn)raw_ret;
            GLib.Marshaller.Free(native_extension);
            caps = native_caps == IntPtr.Zero ? null : (Gst.Caps)GLib.Opaque.GetOpaque(native_caps, typeof(Gst.Caps), true);
            prob = (Gst.TypeFindProbability)native_prob;
            return(ret);
        }
Esempio n. 24
0
 public int NativeCallback(IntPtr pads, IntPtr data, IntPtr buffer, IntPtr user_data)
 {
     try {
         Gst.FlowReturn __ret = managed(GLib.Object.GetObject(pads) as Gst.Base.CollectPads, Gst.Base.CollectData.New(data), buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(buffer, typeof(Gst.Buffer), true));
         if (release_on_call)
         {
             gch.Free();
         }
         return((int)__ret);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: Above call does not return.
         throw e;
     }
 }
Esempio n. 25
0
 public int NativeCallback(IntPtr obj, IntPtr parent, ulong offset, uint length, IntPtr buffer)
 {
     try {
         Gst.FlowReturn __ret = managed(GLib.Object.GetObject(obj) as Gst.Object, GLib.Object.GetObject(parent) as Gst.Object, offset, length, buffer == IntPtr.Zero ? null : (Gst.Buffer)GLib.Opaque.GetOpaque(buffer, typeof(Gst.Buffer), false));
         if (release_on_call)
         {
             gch.Free();
         }
         return((int)__ret);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: Above call does not return.
         throw e;
     }
 }
 public int NativeCallback(IntPtr pads, IntPtr user_data)
 {
     try {
         Gst.FlowReturn __ret = managed(GLib.Object.GetObject(pads) as Gst.Base.CollectPads);
         if (release_on_call)
         {
             gch.Free();
         }
         return((int)__ret);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: Above call does not return.
         throw e;
     }
 }
 public int NativeCallback(IntPtr pad, IntPtr parent, IntPtr list)
 {
     try {
         Gst.FlowReturn __ret = managed(GLib.Object.GetObject(pad) as Gst.Pad, GLib.Object.GetObject(parent) as Gst.Object, list == IntPtr.Zero ? null : (Gst.BufferList)GLib.Opaque.GetOpaque(list, typeof(Gst.BufferList), true));
         if (release_on_call)
         {
             gch.Free();
         }
         return((int)__ret);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: Above call does not return.
         throw e;
     }
 }
Esempio n. 28
0
        public int NativeCallback(IntPtr obj, IntPtr parent, ulong offset, uint length, out IntPtr buffer)
        {
            try {
                Gst.Buffer mybuffer;

                Gst.FlowReturn __ret = managed(GLib.Object.GetObject(obj) as Gst.Object, GLib.Object.GetObject(parent) as Gst.Object, offset, length, out mybuffer);
                buffer = mybuffer == null ? IntPtr.Zero : mybuffer.Handle;

                if (release_on_call)
                {
                    gch.Free();
                }
                return((int)__ret);
            } catch (Exception e) {
                GLib.ExceptionManager.RaiseUnhandledException(e, true);
                // NOTREACHED: Above call does not return.
                throw e;
            }
        }
 Gst.FlowReturn InvokeNative(Gst.Base.CollectPads pads)
 {
     Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(pads == null ? IntPtr.Zero : pads.Handle, __data);
     return(__result);
 }
Esempio n. 30
0
 Gst.FlowReturn InvokeNative(Gst.Pad pad, Gst.Object parent, Gst.Buffer buffer)
 {
     buffer.Owned = false;
     Gst.FlowReturn __result = (Gst.FlowReturn)native_cb(pad == null ? IntPtr.Zero : pad.Handle, parent == null ? IntPtr.Zero : parent.Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
     return(__result);
 }