public static string LevelGetName(Gst.DebugLevel level) { IntPtr raw_ret = gst_debug_level_get_name((int)level); string ret = GLib.Marshaller.Utf8PtrToString(raw_ret); return(ret); }
public static void SetThresholdForName(string name, Gst.DebugLevel level) { IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup(name); gst_debug_set_threshold_for_name(native_name, (int)level); GLib.Marshaller.Free(native_name); }
public static Gst.DebugLevel GetDefaultThreshold() { int raw_ret = gst_debug_get_default_threshold(); Gst.DebugLevel ret = (Gst.DebugLevel)raw_ret; return(ret); }
public static void LogDefault(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message, IntPtr user_data) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); gst_debug_log_default(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle, user_data); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); }
void InvokeNative(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); native_cb(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle, __data); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); }
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message) { IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc(category); IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup(file); IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup(function); IntPtr raw_ret = gst_debug_log_get_line(native_category, (int)level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); Marshal.FreeHGlobal(native_category); GLib.Marshaller.Free(native_file); GLib.Marshaller.Free(native_function); return(ret); }
public static void SetDefaultThreshold(Gst.DebugLevel level) { gst_debug_set_default_threshold((int)level); }
public static void LogDefault(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, Gst.DebugMessage message) { LogDefault(category, level, file, function, line, null, message, IntPtr.Zero); }
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, Gst.DebugMessage message) { return(LogGetLine(category, level, file, function, line, null, message)); }