Beispiel #1
0
        public static string RtcpSdesTypeToName(Gst.Rtp.RTCPSDESType type)
        {
            IntPtr raw_ret = gst_rtcp_sdes_type_to_name((int)type);
            string ret     = GLib.Marshaller.Utf8PtrToString(raw_ret);

            return(ret);
        }
Beispiel #2
0
        public static Gst.Rtp.RTCPSDESType RtcpSdesNameToType(string name)
        {
            IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name);
            int    raw_ret     = gst_rtcp_sdes_name_to_type(native_name);

            Gst.Rtp.RTCPSDESType ret = (Gst.Rtp.RTCPSDESType)raw_ret;
            GLib.Marshaller.Free(native_name);
            return(ret);
        }
Beispiel #3
0
        public bool SdesAddEntry(Gst.Rtp.RTCPSDESType type, byte len, byte[] data)
        {
            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);
            bool raw_ret = gst_rtcp_packet_sdes_add_entry(this_as_native, (int)type, len, data);
            bool ret     = raw_ret;

            ReadNative(this_as_native, ref this);
            System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native);
            return(ret);
        }