Example #1
0
        public bool SetDateTime(string meta_item, Gst.DateTime value)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            bool   raw_ret          = ges_meta_container_set_date_time(Handle, native_meta_item, value == null ? IntPtr.Zero : value.Handle);
            bool   ret = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            return(ret);
        }
Example #2
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);
        }
Example #3
0
        public bool GetDateTime(string fieldname, out Gst.DateTime value)
        {
            IntPtr native_fieldname = GLib.Marshaller.StringToPtrGStrdup(fieldname);
            IntPtr native_value;
            bool   raw_ret = gst_structure_get_date_time(Handle, native_fieldname, out native_value);
            bool   ret     = raw_ret;

            GLib.Marshaller.Free(native_fieldname);
            value = native_value == IntPtr.Zero ? null : (Gst.DateTime)GLib.Opaque.GetOpaque(native_value, typeof(Gst.DateTime), true);
            return(ret);
        }
Example #4
0
        public bool GetDateTime(string meta_item, out Gst.DateTime dest)
        {
            IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup(meta_item);
            IntPtr native_dest;
            bool   raw_ret = ges_meta_container_get_date_time(Handle, native_meta_item, out native_dest);
            bool   ret     = raw_ret;

            GLib.Marshaller.Free(native_meta_item);
            dest = native_dest == IntPtr.Zero ? null : (Gst.DateTime)GLib.Opaque.GetOpaque(native_dest, typeof(Gst.DateTime), true);
            return(ret);
        }
Example #5
0
        public bool GetDateTimeIndex(string tag, uint index, out Gst.DateTime value)
        {
            IntPtr native_tag = GLib.Marshaller.StringToPtrGStrdup(tag);
            IntPtr native_value;
            bool   raw_ret = gst_tag_list_get_date_time_index(Handle, native_tag, index, out native_value);
            bool   ret     = raw_ret;

            GLib.Marshaller.Free(native_tag);
            value = native_value == IntPtr.Zero ? null : (Gst.DateTime)GLib.Opaque.GetOpaque(native_value, typeof(Gst.DateTime), true);
            return(ret);
        }