Beispiel #1
0
        public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item, Gst.DateTime value)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            bool   raw_ret          = ges_meta_container_register_meta_date_time(Handle, (int)flags, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            return(ret);
        }
Beispiel #2
0
        public bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            bool   raw_ret          = ges_meta_container_register_meta_uint64(Handle, (int)flags, native_meta_item, value);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            return(ret);
        }
Beispiel #3
0
        public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            bool   raw_ret          = ges_meta_container_check_meta_registered(Handle, native_meta_item, (int)flags, type.Val);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            return(ret);
        }
Beispiel #4
0
        public bool RegisterStaticMeta(GES.MetaFlag flags, string meta_item, GLib.GType type)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            bool   raw_ret          = ges_meta_container_register_static_meta(Handle, (int)flags, native_meta_item, type.Val);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            return(ret);
        }
Beispiel #5
0
        public bool RegisterMeta(GES.MetaFlag flags, string meta_item, GLib.Value value)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            IntPtr native_value     = GLib.Marshaller.StructureToPtrAlloc(value);
            bool   raw_ret          = ges_meta_container_register_meta(Handle, (int)flags, native_meta_item, native_value);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            Marshal.FreeHGlobal(native_value);
            return(ret);
        }
Beispiel #6
0
        public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            int    native_flags;
            IntPtr native_type;
            bool   raw_ret = ges_meta_container_check_meta_registered(Handle, native_meta_item, out native_flags, out native_type);
            bool   ret     = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            flags = (GES.MetaFlag)native_flags;
            type  = new GLib.GType(native_type);
            return(ret);
        }
Beispiel #7
0
 public bool RegisterMetaString(GES.MetaFlag flags, string meta_item)
 {
     return(RegisterMetaString(flags, meta_item, null));
 }