Exemplo n.º 1
0
        public static Gst.DeviceProviderFactory[] ListGetDeviceProviders(Gst.Rank minrank)
        {
            IntPtr raw_ret = gst_device_provider_factory_list_get_device_providers((int)minrank);

            Gst.DeviceProviderFactory[] ret = (Gst.DeviceProviderFactory[])GLib.Marshaller.ListPtrToArray(raw_ret, typeof(GLib.List), true, true, typeof(Gst.DeviceProviderFactory));
            return(ret);
        }
Exemplo n.º 2
0
        public static Gst.ElementFactory[] ListGetElements(ulong type, Gst.Rank minrank)
        {
            IntPtr raw_ret = gst_element_factory_list_get_elements(type, (int)minrank);

            Gst.ElementFactory[] ret = (Gst.ElementFactory[])GLib.Marshaller.ListPtrToArray(raw_ret, typeof(GLib.List), true, true, typeof(Gst.ElementFactory));
            return(ret);
        }
        public static void RegisterMetas(string name, string description, string extension, string mimetype, double version, Gst.Rank rank)
        {
            IntPtr native_name        = GLib.Marshaller.StringToPtrGStrdup(name);
            IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup(description);
            IntPtr native_extension   = GLib.Marshaller.StringToPtrGStrdup(extension);
            IntPtr native_mimetype    = GLib.Marshaller.StringToPtrGStrdup(mimetype);

            ges_formatter_class_register_metas(native_name, native_description, native_extension, native_mimetype, version, (int)rank);
            GLib.Marshaller.Free(native_name);
            GLib.Marshaller.Free(native_description);
            GLib.Marshaller.Free(native_extension);
            GLib.Marshaller.Free(native_mimetype);
        }