Beispiel #1
0
        public bool SetTimeline(GES.Timeline timeline)
        {
            bool raw_ret = ges_pipeline_set_timeline(Handle, timeline == null ? IntPtr.Zero : timeline.OwnedHandle);
            bool ret     = raw_ret;

            return(ret);
        }
Beispiel #2
0
        bool InvokeNative(GES.Formatter formatter, GES.Timeline timeline, string uri)
        {
            IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri);
            IntPtr error      = IntPtr.Zero;
            bool   __result   = native_cb(formatter == null ? IntPtr.Zero : formatter.Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, out error);

            GLib.Marshaller.Free(native_uri);
            return(__result);
        }
Beispiel #3
0
        public unsafe bool Load(GES.Timeline timeline)
        {
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = ges_project_load(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
Beispiel #4
0
        public unsafe bool Save(GES.Timeline timeline, string uri, GES.Asset formatter_asset, bool overwrite)
        {
            IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri);
            IntPtr error      = IntPtr.Zero;
            bool   raw_ret    = ges_project_save(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, formatter_asset == null ? IntPtr.Zero : formatter_asset.Handle, overwrite, out error);
            bool   ret        = raw_ret;

            GLib.Marshaller.Free(native_uri);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
        public unsafe bool LoadFromUri(GES.Timeline timeline, string uri)
        {
            IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup(uri);
            IntPtr error      = IntPtr.Zero;
            bool   raw_ret    = ges_formatter_load_from_uri(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, out error);
            bool   ret        = raw_ret;

            GLib.Marshaller.Free(native_uri);
            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }
Beispiel #6
0
        private void InternalLoaded(GES.Timeline timeline)
        {
            LoadedNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("loaded"));
                unmanaged = (LoadedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LoadedNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, timeline == null ? IntPtr.Zero : timeline.Handle);
        }
Beispiel #7
0
 public bool Save(GES.Timeline timeline, string uri, bool overwrite)
 {
     return(Save(timeline, uri, null, overwrite));
 }
Beispiel #8
0
 protected virtual void OnLoaded(GES.Timeline timeline)
 {
     InternalLoaded(timeline);
 }