Exemple #1
0
        public static string BinToDotData(Gst.Bin bin, Gst.DebugGraphDetails details)
        {
            IntPtr raw_ret = gst_debug_bin_to_dot_data(bin == null ? IntPtr.Zero : bin.Handle, (int)details);
            string ret     = GLib.Marshaller.PtrToStringGFree(raw_ret);

            return(ret);
        }
Exemple #2
0
        public static void BinToDotFileWithTs(Gst.Bin bin, Gst.DebugGraphDetails details, string file_name)
        {
            IntPtr native_file_name = GLib.Marshaller.StringToFilenamePtr(file_name);

            gst_debug_bin_to_dot_file_with_ts(bin == null ? IntPtr.Zero : bin.Handle, (int)details, native_file_name);
            GLib.Marshaller.Free(native_file_name);
        }
        public static unsafe Gst.Bin BinFromDescription(string bin_description, bool ghost_unlinked_pads)
        {
            IntPtr native_bin_description = GLib.Marshaller.StringToPtrGStrdup(bin_description);
            IntPtr error   = IntPtr.Zero;
            IntPtr raw_ret = gst_parse_bin_from_description(native_bin_description, ghost_unlinked_pads, out error);

            Gst.Bin ret = GLib.Object.GetObject(raw_ret) as Gst.Bin;
            GLib.Marshaller.Free(native_bin_description);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }