Update GES

This commit is contained in:
Thibault Saunier 2020-06-17 21:14:24 -04:00
parent c70e5494b3
commit d0aba011b3
49 changed files with 15680 additions and 3250 deletions

View file

@ -69,11 +69,6 @@ namespace GES {
GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset; GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
return ret; return ret;
} }
set {
GLib.Value val = new GLib.Value(value);
SetProperty("proxy-target", val);
val.Dispose ();
}
} }
static StartLoadingNativeDelegate StartLoading_cb_delegate; static StartLoadingNativeDelegate StartLoading_cb_delegate;
@ -392,6 +387,10 @@ namespace GES {
return ret; return ret;
} }
public static bool NeedsReload(GLib.GType extractable_type) {
return NeedsReload (extractable_type, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr ges_asset_request(IntPtr extractable_type, IntPtr id, out IntPtr error); static extern unsafe IntPtr ges_asset_request(IntPtr extractable_type, IntPtr id, out IntPtr error);
@ -420,8 +419,8 @@ namespace GES {
GLib.Marshaller.Free (native_id); GLib.Marshaller.Free (native_id);
} }
public static void RequestAsync(GLib.GType extractable_type, string id) { public static void RequestAsync(GLib.GType extractable_type) {
RequestAsync (extractable_type, id, null, null); RequestAsync (extractable_type, null, null, null);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
@ -489,13 +488,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -575,6 +578,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -663,10 +677,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -724,10 +734,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -750,6 +756,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -816,6 +833,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
@ -897,34 +925,34 @@ namespace GES {
OverrideVirtualMethod (gtype, "notify-meta", callback); OverrideVirtualMethod (gtype, "notify-meta", callback);
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0); delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0) static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{ {
try { try {
GES.Asset __obj = GLib.Object.GetObject (inst, false) as GES.Asset; GES.Asset __obj = GLib.Object.GetObject (inst, false) as GES.Asset;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value))); __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false); GLib.ExceptionManager.RaiseUnhandledException (e, false);
} }
} }
[GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideNotifyMeta")] [GLib.DefaultSignalHandler(Type=typeof(GES.Asset), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string _object, GLib.Value p0) protected virtual void OnNotifyMeta (string key, GLib.Value value)
{ {
InternalNotifyMeta (_object, p0); InternalNotifyMeta (key, value);
} }
private void InternalNotifyMeta (string _object, GLib.Value p0) private void InternalNotifyMeta (string key, GLib.Value value)
{ {
GLib.Value ret = GLib.Value.Empty; GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3); GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3]; GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this); vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]); inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (_object); vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]); inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (p0); vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]); inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals) foreach (GLib.Value v in vals)

View file

@ -53,6 +53,28 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_base_effect_is_time_effect(IntPtr raw);
public bool IsTimeEffect {
get {
bool raw_ret = ges_base_effect_is_time_effect(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_base_effect_register_time_property(IntPtr raw, IntPtr child_property_name);
public bool RegisterTimeProperty(string child_property_name) {
IntPtr native_child_property_name = GLib.Marshaller.StringToPtrGStrdup (child_property_name);
bool raw_ret = ges_base_effect_register_time_property(Handle, native_child_property_name);
bool ret = raw_ret;
GLib.Marshaller.Free (native_child_property_name);
return ret;
}
static BaseEffect () static BaseEffect ()
{ {

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate ulong BaseEffectTimeTranslationFunc(GES.BaseEffect effect, ulong time, System.IntPtr time_property_values);
}

View file

@ -92,14 +92,22 @@ namespace GES {
, GES.Formatter.abi_info.Fields , GES.Formatter.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null , null
, "xmlcontent"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("xmlcontent"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // xmlcontent
, "priv"
, "_ges_reserved" , "_ges_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
new GLib.AbiField("_ges_reserved" new GLib.AbiField("_ges_reserved"
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _ges_reserved
, "priv" , "xmlcontent"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0

View file

@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void ChildPropertyAddedHandler(object o, ChildPropertyAddedArgs args);
public class ChildPropertyAddedArgs : GLib.SignalArgs {
public GLib.Object PropObject{
get {
return (GLib.Object) Args [0];
}
}
public IntPtr Prop{
get {
return (IntPtr) Args [1];
}
}
}
}

View file

@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void ChildPropertyRemovedHandler(object o, ChildPropertyRemovedArgs args);
public class ChildPropertyRemovedArgs : GLib.SignalArgs {
public GLib.Object PropObject{
get {
return (GLib.Object) Args [0];
}
}
public IntPtr Prop{
get {
return (IntPtr) Args [1];
}
}
}
}

View file

@ -18,6 +18,18 @@ namespace GES {
CreateNativeObject (new string [0], new GLib.Value [0]); CreateNativeObject (new string [0], new GLib.Value [0]);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern ulong ges_clip_get_duration_limit(IntPtr raw);
[GLib.Property ("duration-limit")]
public ulong DurationLimit {
get {
ulong raw_ret = ges_clip_get_duration_limit(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_clip_get_layer(IntPtr raw); static extern IntPtr ges_clip_get_layer(IntPtr raw);
@ -67,18 +79,34 @@ namespace GES {
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // create_track_elements , (uint) Marshal.SizeOf(typeof(IntPtr)) // create_track_elements
, "create_track_element" , "create_track_element"
, "_ges_reserved" , "ABI"
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
new GLib.AbiField("_ges_reserved" // union struct ABI.abi
// End ABI.abi
// union struct ABI
new GLib.AbiField("ABI._gst_reserved"
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // ABI._gst_reserved
, "create_track_elements" , "create_track_elements"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
// End ABI
new GLib.AbiField("ABI"
, -1
, new List<List<string>>() { // union ABI
new List<string>() {},
new List<string>() {"ABI._gst_reserved"}
}
, "create_track_elements"
, null
, 0
),
}); });
return _class_abi; return _class_abi;
@ -108,6 +136,28 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr ges_clip_add_child_to_track(IntPtr raw, IntPtr child, IntPtr track, out IntPtr error);
public unsafe GES.TrackElement AddChildToTrack(GES.TrackElement child, GES.Track track) {
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = ges_clip_add_child_to_track(Handle, child == null ? IntPtr.Zero : child.Handle, track == null ? IntPtr.Zero : track.Handle, out error);
GES.TrackElement ret = GLib.Object.GetObject(raw_ret) as GES.TrackElement;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_clip_add_top_effect(IntPtr raw, IntPtr effect, int index, out IntPtr error);
public unsafe bool AddTopEffect(GES.BaseEffect effect, int index) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_clip_add_top_effect(Handle, effect == null ? IntPtr.Zero : effect.Handle, index, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_clip_find_track_element(IntPtr raw, IntPtr track, IntPtr type); static extern IntPtr ges_clip_find_track_element(IntPtr raw, IntPtr track, IntPtr type);
@ -134,6 +184,39 @@ namespace GES {
return FindTrackElements (null, track_type, type); return FindTrackElements (null, track_type, type);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe ulong ges_clip_get_internal_time_from_timeline_time(IntPtr raw, IntPtr child, ulong timeline_time, out IntPtr error);
public unsafe ulong GetInternalTimeFromTimelineTime(GES.TrackElement child, ulong timeline_time) {
IntPtr error = IntPtr.Zero;
ulong raw_ret = ges_clip_get_internal_time_from_timeline_time(Handle, child == null ? IntPtr.Zero : child.Handle, timeline_time, out error);
ulong ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe ulong ges_clip_get_timeline_time_from_internal_time(IntPtr raw, IntPtr child, ulong internal_time, out IntPtr error);
public unsafe ulong GetTimelineTimeFromInternalTime(GES.TrackElement child, ulong internal_time) {
IntPtr error = IntPtr.Zero;
ulong raw_ret = ges_clip_get_timeline_time_from_internal_time(Handle, child == null ? IntPtr.Zero : child.Handle, internal_time, out error);
ulong ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe ulong ges_clip_get_timeline_time_from_source_frame(IntPtr raw, long frame_number, out IntPtr error);
public unsafe ulong GetTimelineTimeFromSourceFrame(long frame_number) {
IntPtr error = IntPtr.Zero;
ulong raw_ret = ges_clip_get_timeline_time_from_source_frame(Handle, frame_number, out error);
ulong ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern int ges_clip_get_top_effect_index(IntPtr raw, IntPtr effect); static extern int ges_clip_get_top_effect_index(IntPtr raw, IntPtr effect);
@ -172,6 +255,28 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_clip_move_to_layer_full(IntPtr raw, IntPtr layer, out IntPtr error);
public unsafe bool MoveToLayerFull(GES.Layer layer) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_clip_move_to_layer_full(Handle, layer == null ? IntPtr.Zero : layer.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_clip_remove_top_effect(IntPtr raw, IntPtr effect, out IntPtr error);
public unsafe bool RemoveTopEffect(GES.BaseEffect effect) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_clip_remove_top_effect(Handle, effect == null ? IntPtr.Zero : effect.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_clip_set_top_effect_index(IntPtr raw, IntPtr effect, uint newindex); static extern bool ges_clip_set_top_effect_index(IntPtr raw, IntPtr effect, uint newindex);
@ -181,6 +286,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_clip_set_top_effect_index_full(IntPtr raw, IntPtr effect, uint newindex, out IntPtr error);
public unsafe bool SetTopEffectIndexFull(GES.BaseEffect effect, uint newindex) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_clip_set_top_effect_index_full(Handle, effect == null ? IntPtr.Zero : effect.Handle, newindex, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_clip_set_top_effect_priority(IntPtr raw, IntPtr effect, uint newpriority); static extern bool ges_clip_set_top_effect_priority(IntPtr raw, IntPtr effect, uint newpriority);
@ -199,6 +315,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr ges_clip_split_full(IntPtr raw, ulong position, out IntPtr error);
public unsafe GES.Clip SplitFull(ulong position) {
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = ges_clip_split_full(Handle, position, out error);
GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
static Clip () static Clip ()
{ {

View file

@ -36,6 +36,64 @@ namespace GES {
} }
} }
static GetNaturalFramerateNativeDelegate GetNaturalFramerate_cb_delegate;
static GetNaturalFramerateNativeDelegate GetNaturalFramerateVMCallback {
get {
if (GetNaturalFramerate_cb_delegate == null)
GetNaturalFramerate_cb_delegate = new GetNaturalFramerateNativeDelegate (GetNaturalFramerate_cb);
return GetNaturalFramerate_cb_delegate;
}
}
static void OverrideGetNaturalFramerate (GLib.GType gtype)
{
OverrideGetNaturalFramerate (gtype, GetNaturalFramerateVMCallback);
}
static void OverrideGetNaturalFramerate (GLib.GType gtype, GetNaturalFramerateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetNaturalFramerateNativeDelegate (IntPtr inst, int framerate_n, int framerate_d);
static bool GetNaturalFramerate_cb (IntPtr inst, int framerate_n, int framerate_d)
{
try {
ClipAsset __obj = GLib.Object.GetObject (inst, false) as ClipAsset;
bool __result;
__result = __obj.OnGetNaturalFramerate (framerate_n, framerate_d);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.ClipAsset), ConnectionMethod="OverrideGetNaturalFramerate")]
protected virtual bool OnGetNaturalFramerate (int framerate_n, int framerate_d)
{
return InternalGetNaturalFramerate (framerate_n, framerate_d);
}
private bool InternalGetNaturalFramerate (int framerate_n, int framerate_d)
{
GetNaturalFramerateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
unmanaged = (GetNaturalFramerateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNaturalFramerateNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle, framerate_n, framerate_d);
return __result;
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null; static GLib.AbiStruct _class_abi = null;
@ -43,10 +101,18 @@ namespace GES {
get { get {
if (_class_abi == null) if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_ges_reserved" new GLib.AbiField("get_natural_framerate"
, GES.Asset.class_abi.Fields , GES.Asset.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_natural_framerate
, null , null
, "_ges_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_ges_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _ges_reserved
, "get_natural_framerate"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
@ -71,6 +137,24 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern ulong ges_clip_asset_get_frame_time(IntPtr raw, long frame_number);
public ulong GetFrameTime(long frame_number) {
ulong raw_ret = ges_clip_asset_get_frame_time(Handle, frame_number);
ulong ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_clip_asset_get_natural_framerate(IntPtr raw, int framerate_n, int framerate_d);
public bool GetNaturalFramerate(int framerate_n, int framerate_d) {
bool raw_ret = ges_clip_asset_get_natural_framerate(Handle, framerate_n, framerate_d);
bool ret = raw_ret;
return ret;
}
static ClipAsset () static ClipAsset ()
{ {

View file

@ -11,6 +11,7 @@ namespace GES {
#region Autogenerated code #region Autogenerated code
public partial class Constants { public partial class Constants {
public const long FRAME_NUMBER_NONE = 9223372036854775807;
public const string META_DESCRIPTION = @"description"; public const string META_DESCRIPTION = @"description";
public const string META_FORMATTER_EXTENSION = @"extension"; public const string META_FORMATTER_EXTENSION = @"extension";
public const string META_FORMATTER_MIMETYPE = @"mimetype"; public const string META_FORMATTER_MIMETYPE = @"mimetype";
@ -18,6 +19,7 @@ namespace GES {
public const string META_FORMATTER_RANK = @"rank"; public const string META_FORMATTER_RANK = @"rank";
public const string META_FORMATTER_VERSION = @"version"; public const string META_FORMATTER_VERSION = @"version";
public const string META_FORMAT_VERSION = @"format-version"; public const string META_FORMAT_VERSION = @"format-version";
public const string META_MARKER_COLOR = @"marker-color";
public const string META_VOLUME = @"volume"; public const string META_VOLUME = @"volume";
public const double META_VOLUME_DEFAULT = 1.000000; public const double META_VOLUME_DEFAULT = 1.000000;
public const string MULTI_FILE_URI_PREFIX = @"multifile://"; public const string MULTI_FILE_URI_PREFIX = @"multifile://";

View file

@ -553,12 +553,17 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_container_edit(IntPtr raw, IntPtr layers, int new_layer_priority, int mode, int edge, ulong position); static extern bool ges_container_edit(IntPtr raw, IntPtr layers, int new_layer_priority, int mode, int edge, ulong position);
[Obsolete]
public bool Edit(GLib.List layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) { public bool Edit(GLib.List layers, int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
bool raw_ret = ges_container_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, new_layer_priority, (int) mode, (int) edge, position); bool raw_ret = ges_container_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, new_layer_priority, (int) mode, (int) edge, position);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
public bool Edit(int new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
return Edit (null, new_layer_priority, mode, edge, position);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_container_get_children(IntPtr raw, bool recursive); static extern IntPtr ges_container_get_children(IntPtr raw, bool recursive);

View file

@ -5,6 +5,6 @@ namespace GES {
using System; using System;
public delegate IntPtr[] CreateTrackElementsFunc(GES.Clip clip, GES.TrackType type); public delegate GES.TrackElement[] CreateTrackElementsFunc(GES.Clip clip, GES.TrackType type);
} }

View file

@ -11,8 +11,11 @@ namespace GES {
public enum Edge { public enum Edge {
EdgeStart = 0, EdgeStart = 0,
Start = 0,
EdgeEnd = 1, EdgeEnd = 1,
End = 1,
EdgeNone = 2, EdgeNone = 2,
None = 2,
} }
internal class EdgeGType { internal class EdgeGType {

View file

@ -11,10 +11,15 @@ namespace GES {
public enum EditMode { public enum EditMode {
EditNormal = 0, EditNormal = 0,
Normal = 0,
EditRipple = 1, EditRipple = 1,
Ripple = 1,
EditRoll = 2, EditRoll = 2,
Roll = 2,
EditTrim = 3, EditTrim = 3,
Trim = 3,
EditSlide = 4, EditSlide = 4,
Slide = 4,
} }
internal class EditModeGType { internal class EditModeGType {

View file

@ -12,6 +12,12 @@ namespace GES {
AssetWrongId = 0, AssetWrongId = 0,
AssetLoading = 1, AssetLoading = 1,
FormatterMalformedInputFile = 2, FormatterMalformedInputFile = 2,
InvalidFrameNumber = 3,
NegativeLayer = 4,
NegativeTime = 5,
NotEnoughInternalContent = 6,
InvalidOverlapInTrack = 7,
InvalidEffectBinDescription = 8,
} }
#endregion #endregion
} }

View file

@ -129,18 +129,18 @@ namespace GES {
// End of the ABI representation. // End of the ABI representation.
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_formatter_class_register_metas(IntPtr name, IntPtr description, IntPtr extension, IntPtr mimetype, double version, int rank); static extern void ges_formatter_class_register_metas(IntPtr name, IntPtr description, IntPtr extensions, IntPtr caps, double version, int rank);
public static void RegisterMetas(string name, string description, string extension, string mimetype, double version, Gst.Rank rank) { public static void RegisterMetas(string name, string description, string extensions, string caps, double version, Gst.Rank rank) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name); IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description); IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
IntPtr native_extension = GLib.Marshaller.StringToPtrGStrdup (extension); IntPtr native_extensions = GLib.Marshaller.StringToPtrGStrdup (extensions);
IntPtr native_mimetype = GLib.Marshaller.StringToPtrGStrdup (mimetype); IntPtr native_caps = GLib.Marshaller.StringToPtrGStrdup (caps);
ges_formatter_class_register_metas(native_name, native_description, native_extension, native_mimetype, version, (int) rank); ges_formatter_class_register_metas(native_name, native_description, native_extensions, native_caps, version, (int) rank);
GLib.Marshaller.Free (native_name); GLib.Marshaller.Free (native_name);
GLib.Marshaller.Free (native_description); GLib.Marshaller.Free (native_description);
GLib.Marshaller.Free (native_extension); GLib.Marshaller.Free (native_extensions);
GLib.Marshaller.Free (native_mimetype); GLib.Marshaller.Free (native_caps);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
@ -194,6 +194,7 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_formatter_load_from_uri(IntPtr raw, IntPtr timeline, IntPtr uri, out IntPtr error); static extern unsafe bool ges_formatter_load_from_uri(IntPtr raw, IntPtr timeline, IntPtr uri, out IntPtr error);
[Obsolete]
public unsafe bool LoadFromUri(GES.Timeline timeline, string uri) { public unsafe bool LoadFromUri(GES.Timeline timeline, string uri) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero; IntPtr error = IntPtr.Zero;
@ -207,6 +208,7 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_formatter_save_to_uri(IntPtr raw, IntPtr timeline, IntPtr uri, bool overwrite, out IntPtr error); static extern unsafe bool ges_formatter_save_to_uri(IntPtr raw, IntPtr timeline, IntPtr uri, bool overwrite, out IntPtr error);
[Obsolete]
public unsafe bool SaveToUri(GES.Timeline timeline, string uri, bool overwrite) { public unsafe bool SaveToUri(GES.Timeline timeline, string uri, bool overwrite) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero; IntPtr error = IntPtr.Zero;

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GESSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate ulong BaseEffectTimeTranslationFuncNative(IntPtr effect, ulong time, System.IntPtr time_property_values, IntPtr user_data);
internal class BaseEffectTimeTranslationFuncInvoker {
BaseEffectTimeTranslationFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~BaseEffectTimeTranslationFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal BaseEffectTimeTranslationFuncInvoker (BaseEffectTimeTranslationFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal BaseEffectTimeTranslationFuncInvoker (BaseEffectTimeTranslationFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal BaseEffectTimeTranslationFuncInvoker (BaseEffectTimeTranslationFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal GES.BaseEffectTimeTranslationFunc Handler {
get {
return new GES.BaseEffectTimeTranslationFunc(InvokeNative);
}
}
ulong InvokeNative (GES.BaseEffect effect, ulong time, System.IntPtr time_property_values)
{
ulong __result = native_cb (effect == null ? IntPtr.Zero : effect.Handle, time, time_property_values, __data);
return __result;
}
}
internal class BaseEffectTimeTranslationFuncWrapper {
public ulong NativeCallback (IntPtr effect, ulong time, System.IntPtr time_property_values, IntPtr user_data)
{
try {
ulong __ret = managed (GLib.Object.GetObject(effect) as GES.BaseEffect, time, time_property_values);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal BaseEffectTimeTranslationFuncNative NativeDelegate;
GES.BaseEffectTimeTranslationFunc managed;
public BaseEffectTimeTranslationFuncWrapper (GES.BaseEffectTimeTranslationFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new BaseEffectTimeTranslationFuncNative (NativeCallback);
}
public static GES.BaseEffectTimeTranslationFunc GetManagedDelegate (BaseEffectTimeTranslationFuncNative native)
{
if (native == null)
return null;
BaseEffectTimeTranslationFuncWrapper wrapper = (BaseEffectTimeTranslationFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -40,9 +40,9 @@ namespace GESSharp {
} }
} }
IntPtr[] InvokeNative (GES.Clip clip, GES.TrackType type) GES.TrackElement[] InvokeNative (GES.Clip clip, GES.TrackType type)
{ {
IntPtr[] __result = (IntPtr[]) GLib.Marshaller.ListPtrToArray (native_cb (clip == null ? IntPtr.Zero : clip.Handle, (int) type), typeof(GLib.List), false, false, typeof(IntPtr)); GES.TrackElement[] __result = (GES.TrackElement[]) GLib.Marshaller.ListPtrToArray (native_cb (clip == null ? IntPtr.Zero : clip.Handle, (int) type), typeof(GLib.List), false, true, typeof(GES.TrackElement));
return __result; return __result;
} }
} }
@ -52,10 +52,10 @@ namespace GESSharp {
public IntPtr NativeCallback (IntPtr clip, int type) public IntPtr NativeCallback (IntPtr clip, int type)
{ {
try { try {
IntPtr[] __ret = managed (GLib.Object.GetObject(clip) as GES.Clip, (GES.TrackType) type); GES.TrackElement[] __ret = managed (GLib.Object.GetObject(clip) as GES.Clip, (GES.TrackType) type);
if (release_on_call) if (release_on_call)
gch.Free (); gch.Free ();
return new GLib.List(__ret, typeof (IntPtr), false, false) == null ? IntPtr.Zero : new GLib.List(__ret, typeof (IntPtr), false, false).Handle; return new GLib.List(__ret, typeof (GES.TrackElement), false, true) == null ? IntPtr.Zero : new GLib.List(__ret, typeof (GES.TrackElement), false, true).Handle;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return. // NOTREACHED: Above call does not return.

View file

@ -38,6 +38,26 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_edit_mode_name(int mode);
public static string EditModeName(GES.EditMode mode) {
IntPtr raw_ret = ges_edit_mode_name((int) mode);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_find_formatter_for_uri(IntPtr uri);
public static GES.Asset FindFormatterForUri(string uri) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr raw_ret = ges_find_formatter_for_uri(native_uri);
GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
GLib.Marshaller.Free (native_uri);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_init(); static extern bool ges_init();
@ -70,6 +90,7 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_play_sink_convert_frame(IntPtr playsink, IntPtr caps); static extern IntPtr ges_play_sink_convert_frame(IntPtr playsink, IntPtr caps);
[Obsolete]
public static Gst.Sample PlaySinkConvertFrame(Gst.Element playsink, Gst.Caps caps) { public static Gst.Sample PlaySinkConvertFrame(Gst.Element playsink, Gst.Caps caps) {
IntPtr raw_ret = ges_play_sink_convert_frame(playsink == null ? IntPtr.Zero : playsink.Handle, caps == null ? IntPtr.Zero : caps.Handle); IntPtr raw_ret = ges_play_sink_convert_frame(playsink == null ? IntPtr.Zero : playsink.Handle, caps == null ? IntPtr.Zero : caps.Handle);
Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true); Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true);

View file

@ -10,7 +10,7 @@ namespace GES {
event GES.NotifyMetaHandler NotifyMeta; event GES.NotifyMetaHandler NotifyMeta;
bool AddMetasFromString(string str); bool AddMetasFromString(string str);
bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type); bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type);
void Foreach(GES.MetaForeachFunc func); void Foreach(GES.MetaForeachFunc func);
bool GetBoolean(string meta_item, out bool dest); bool GetBoolean(string meta_item, out bool dest);
bool GetDateTime(string meta_item, out Gst.DateTime dest); bool GetDateTime(string meta_item, out Gst.DateTime dest);
@ -18,6 +18,7 @@ namespace GES {
bool GetFloat(string meta_item, out float dest); bool GetFloat(string meta_item, out float dest);
bool GetInt(string meta_item, out int dest); bool GetInt(string meta_item, out int dest);
bool GetInt64(string meta_item, out long dest); bool GetInt64(string meta_item, out long dest);
GES.MarkerList GetMarkerList(string key);
GLib.Value GetMeta(string key); GLib.Value GetMeta(string key);
string GetString(string meta_item); string GetString(string meta_item);
bool GetUint(string meta_item, out uint dest); bool GetUint(string meta_item, out uint dest);
@ -33,12 +34,14 @@ namespace GES {
bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value); bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value);
bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value); bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value);
bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value); bool RegisterMetaUint64(GES.MetaFlag flags, string meta_item, ulong value);
bool RegisterStaticMeta(GES.MetaFlag flags, string meta_item, GLib.GType type);
bool SetBoolean(string meta_item, bool value); bool SetBoolean(string meta_item, bool value);
bool SetDateTime(string meta_item, Gst.DateTime value); bool SetDateTime(string meta_item, Gst.DateTime value);
bool SetDouble(string meta_item, double value); bool SetDouble(string meta_item, double value);
bool SetFloat(string meta_item, float value); bool SetFloat(string meta_item, float value);
bool SetInt(string meta_item, int value); bool SetInt(string meta_item, int value);
bool SetInt64(string meta_item, long value); bool SetInt64(string meta_item, long value);
bool SetMarkerList(string meta_item, GES.MarkerList list);
bool SetMeta(string meta_item, GLib.Value value); bool SetMeta(string meta_item, GLib.Value value);
bool SetString(string meta_item, string value); bool SetString(string meta_item, string value);
bool SetUint(string meta_item, uint value); bool SetUint(string meta_item, uint value);

View file

@ -9,6 +9,7 @@ namespace GES {
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
#region Autogenerated code #region Autogenerated code
[Obsolete]
public partial class ImageSource : GES.VideoSource { public partial class ImageSource : GES.VideoSource {
public ImageSource (IntPtr raw) : base(raw) {} public ImageSource (IntPtr raw) : base(raw) {}

View file

@ -393,6 +393,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr ges_layer_add_asset_full(IntPtr raw, IntPtr asset, ulong start, ulong inpoint, ulong duration, int track_types, out IntPtr error);
public unsafe GES.Clip AddAssetFull(GES.Asset asset, ulong start, ulong inpoint, ulong duration, GES.TrackType track_types) {
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = ges_layer_add_asset_full(Handle, asset == null ? IntPtr.Zero : asset.Handle, start, inpoint, duration, (int) track_types, out error);
GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_layer_add_clip(IntPtr raw, IntPtr clip); static extern bool ges_layer_add_clip(IntPtr raw, IntPtr clip);
@ -402,6 +413,26 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_layer_add_clip_full(IntPtr raw, IntPtr clip, out IntPtr error);
public unsafe bool AddClipFull(GES.Clip clip) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_layer_add_clip_full(Handle, clip == null ? IntPtr.Zero : clip.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_layer_get_active_for_track(IntPtr raw, IntPtr track);
public bool GetActiveForTrack(GES.Track track) {
bool raw_ret = ges_layer_get_active_for_track(Handle, track == null ? IntPtr.Zero : track.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_layer_get_clips(IntPtr raw); static extern IntPtr ges_layer_get_clips(IntPtr raw);
@ -453,6 +484,19 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_layer_set_active_for_tracks(IntPtr raw, bool active, IntPtr tracks);
public bool SetActiveForTracks(bool active, GLib.List tracks) {
bool raw_ret = ges_layer_set_active_for_tracks(Handle, active, tracks == null ? IntPtr.Zero : tracks.Handle);
bool ret = raw_ret;
return ret;
}
public bool SetActiveForTracks(bool active) {
return SetActiveForTracks (active, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_extractable_get_asset(IntPtr raw); static extern IntPtr ges_extractable_get_asset(IntPtr raw);
@ -496,13 +540,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -582,6 +630,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -670,10 +729,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -731,10 +786,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -757,6 +808,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -823,6 +885,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
@ -904,34 +977,34 @@ namespace GES {
OverrideVirtualMethod (gtype, "notify-meta", callback); OverrideVirtualMethod (gtype, "notify-meta", callback);
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0); delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0) static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{ {
try { try {
GES.Layer __obj = GLib.Object.GetObject (inst, false) as GES.Layer; GES.Layer __obj = GLib.Object.GetObject (inst, false) as GES.Layer;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value))); __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false); GLib.ExceptionManager.RaiseUnhandledException (e, false);
} }
} }
[GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideNotifyMeta")] [GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string _object, GLib.Value p0) protected virtual void OnNotifyMeta (string key, GLib.Value value)
{ {
InternalNotifyMeta (_object, p0); InternalNotifyMeta (key, value);
} }
private void InternalNotifyMeta (string _object, GLib.Value p0) private void InternalNotifyMeta (string key, GLib.Value value)
{ {
GLib.Value ret = GLib.Value.Empty; GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3); GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3]; GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this); vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]); inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (_object); vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]); inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (p0); vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]); inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals) foreach (GLib.Value v in vals)

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void LoadingHandler(object o, LoadingArgs args);
public class LoadingArgs : GLib.SignalArgs {
public GES.Timeline Timeline{
get {
return (GES.Timeline) Args [0];
}
}
}
}

562
ges/generated/GES/Marker.cs Normal file
View file

@ -0,0 +1,562 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Marker : GLib.Object, GES.IMetaContainer {
public Marker (IntPtr raw) : base(raw) {}
protected Marker() : base(IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("position")]
public ulong Position {
get {
GLib.Value val = GetProperty ("position");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_marker_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = ges_marker_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_add_metas_from_string(IntPtr raw, IntPtr str);
public bool AddMetasFromString(string str) {
IntPtr native_str = GLib.Marshaller.StringToPtrGStrdup (str);
bool raw_ret = ges_meta_container_add_metas_from_string(Handle, native_str);
bool ret = raw_ret;
GLib.Marshaller.Free (native_str);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_meta_container_foreach(IntPtr raw, GESSharp.MetaForeachFuncNative func, IntPtr user_data);
public void Foreach(GES.MetaForeachFunc func) {
GESSharp.MetaForeachFuncWrapper func_wrapper = new GESSharp.MetaForeachFuncWrapper (func);
ges_meta_container_foreach(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_boolean(IntPtr raw, IntPtr meta_item, out bool dest);
public bool GetBoolean(string meta_item, out bool dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_boolean(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_date_time(IntPtr raw, IntPtr meta_item, out IntPtr dest);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_double(IntPtr raw, IntPtr meta_item, out double dest);
public bool GetDouble(string meta_item, out double dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_double(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_float(IntPtr raw, IntPtr meta_item, out float dest);
public bool GetFloat(string meta_item, out float dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_float(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_int(IntPtr raw, IntPtr meta_item, out int dest);
public bool GetInt(string meta_item, out int dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_int(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_int64(IntPtr raw, IntPtr meta_item, out long dest);
public bool GetInt64(string meta_item, out long dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_int64(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
public GLib.Value GetMeta(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_meta(Handle, native_key);
GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_string(IntPtr raw, IntPtr meta_item);
public string GetString(string meta_item) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
IntPtr raw_ret = ges_meta_container_get_string(Handle, native_meta_item);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_uint(IntPtr raw, IntPtr meta_item, out uint dest);
public bool GetUint(string meta_item, out uint dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_uint(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_get_uint64(IntPtr raw, IntPtr meta_item, out ulong dest);
public bool GetUint64(string meta_item, out ulong dest) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_get_uint64(Handle, native_meta_item, out dest);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_metas_to_string(IntPtr raw);
public string MetasToString() {
IntPtr raw_ret = ges_meta_container_metas_to_string(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_boolean(IntPtr raw, int flags, IntPtr meta_item, bool value);
public bool RegisterMetaBoolean(GES.MetaFlag flags, string meta_item, bool value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_boolean(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_date_time(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
public bool RegisterMetaDouble(GES.MetaFlag flags, string meta_item, double value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_double(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_float(IntPtr raw, int flags, IntPtr meta_item, float value);
public bool RegisterMetaFloat(GES.MetaFlag flags, string meta_item, float value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_float(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_int(IntPtr raw, int flags, IntPtr meta_item, int value);
public bool RegisterMetaInt(GES.MetaFlag flags, string meta_item, int value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_int(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_int64(IntPtr raw, int flags, IntPtr meta_item, long value);
public bool RegisterMetaInt64(GES.MetaFlag flags, string meta_item, long value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_int64(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_string(IntPtr raw, int flags, IntPtr meta_item, IntPtr value);
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item, string value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
bool raw_ret = ges_meta_container_register_meta_string(Handle, (int) flags, native_meta_item, native_value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
GLib.Marshaller.Free (native_value);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
public bool RegisterMetaUint(GES.MetaFlag flags, string meta_item, uint value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_register_meta_uint(Handle, (int) flags, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint64(IntPtr raw, int flags, IntPtr meta_item, ulong value);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
public bool SetBoolean(string meta_item, bool value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_boolean(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_date_time(IntPtr raw, IntPtr meta_item, IntPtr value);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_double(IntPtr raw, IntPtr meta_item, double value);
public bool SetDouble(string meta_item, double value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_double(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_float(IntPtr raw, IntPtr meta_item, float value);
public bool SetFloat(string meta_item, float value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_float(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_int(IntPtr raw, IntPtr meta_item, int value);
public bool SetInt(string meta_item, int value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_int(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_int64(IntPtr raw, IntPtr meta_item, long value);
public bool SetInt64(string meta_item, long value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_int64(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
public bool SetMeta(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_set_meta(Handle, native_meta_item, native_value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
Marshal.FreeHGlobal (native_value);
return ret;
}
public bool SetMeta(string meta_item) {
return SetMeta (meta_item, GLib.Value.Empty);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_string(IntPtr raw, IntPtr meta_item, IntPtr value);
public bool SetString(string meta_item, string value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
bool raw_ret = ges_meta_container_set_string(Handle, native_meta_item, native_value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
GLib.Marshaller.Free (native_value);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_uint(IntPtr raw, IntPtr meta_item, uint value);
public bool SetUint(string meta_item, uint value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_uint(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_uint64(IntPtr raw, IntPtr meta_item, ulong value);
public bool SetUint64(string meta_item, ulong value) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_uint64(Handle, native_meta_item, value);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[GLib.Signal("notify-meta")]
public event GES.NotifyMetaHandler NotifyMeta {
add {
this.AddSignalHandler ("notify-meta", value, typeof (GES.NotifyMetaArgs));
}
remove {
this.RemoveSignalHandler ("notify-meta", value);
}
}
static NotifyMetaNativeDelegate NotifyMeta_cb_delegate;
static NotifyMetaNativeDelegate NotifyMetaVMCallback {
get {
if (NotifyMeta_cb_delegate == null)
NotifyMeta_cb_delegate = new NotifyMetaNativeDelegate (NotifyMeta_cb);
return NotifyMeta_cb_delegate;
}
}
static void OverrideNotifyMeta (GLib.GType gtype)
{
OverrideNotifyMeta (gtype, NotifyMetaVMCallback);
}
static void OverrideNotifyMeta (GLib.GType gtype, NotifyMetaNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "notify-meta", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{
try {
GES.Marker __obj = GLib.Object.GetObject (inst, false) as GES.Marker;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.Marker), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string key, GLib.Value value)
{
InternalNotifyMeta (key, value);
}
private void InternalNotifyMeta (string key, GLib.Value value)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static Marker ()
{
GtkSharp.GstEditingServices.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void MarkerAddedHandler(object o, MarkerAddedArgs args);
public class MarkerAddedArgs : GLib.SignalArgs {
public ulong Position{
get {
return (ulong) Args [0];
}
}
public GES.Marker Marker{
get {
return (GES.Marker) Args [1];
}
}
}
}

View file

@ -0,0 +1,312 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class MarkerList : GLib.Object {
public MarkerList (IntPtr raw) : base(raw) {}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_marker_list_new();
public MarkerList () : base (IntPtr.Zero)
{
if (GetType () != typeof (MarkerList)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = ges_marker_list_new();
}
[GLib.Signal("marker-added")]
public event GES.MarkerAddedHandler MarkerAdded {
add {
this.AddSignalHandler ("marker-added", value, typeof (GES.MarkerAddedArgs));
}
remove {
this.RemoveSignalHandler ("marker-added", value);
}
}
[GLib.Signal("marker-moved")]
public event GES.MarkerMovedHandler MarkerMoved {
add {
this.AddSignalHandler ("marker-moved", value, typeof (GES.MarkerMovedArgs));
}
remove {
this.RemoveSignalHandler ("marker-moved", value);
}
}
[GLib.Signal("marker-removed")]
public event GES.MarkerRemovedHandler MarkerRemoved {
add {
this.AddSignalHandler ("marker-removed", value, typeof (GES.MarkerRemovedArgs));
}
remove {
this.RemoveSignalHandler ("marker-removed", value);
}
}
static MarkerAddedNativeDelegate MarkerAdded_cb_delegate;
static MarkerAddedNativeDelegate MarkerAddedVMCallback {
get {
if (MarkerAdded_cb_delegate == null)
MarkerAdded_cb_delegate = new MarkerAddedNativeDelegate (MarkerAdded_cb);
return MarkerAdded_cb_delegate;
}
}
static void OverrideMarkerAdded (GLib.GType gtype)
{
OverrideMarkerAdded (gtype, MarkerAddedVMCallback);
}
static void OverrideMarkerAdded (GLib.GType gtype, MarkerAddedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "marker-added", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void MarkerAddedNativeDelegate (IntPtr inst, ulong position, IntPtr marker);
static void MarkerAdded_cb (IntPtr inst, ulong position, IntPtr marker)
{
try {
MarkerList __obj = GLib.Object.GetObject (inst, false) as MarkerList;
__obj.OnMarkerAdded (position, GLib.Object.GetObject(marker) as GES.Marker);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.MarkerList), ConnectionMethod="OverrideMarkerAdded")]
protected virtual void OnMarkerAdded (ulong position, GES.Marker marker)
{
InternalMarkerAdded (position, marker);
}
private void InternalMarkerAdded (ulong position, GES.Marker marker)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (position);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (marker);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static MarkerMovedNativeDelegate MarkerMoved_cb_delegate;
static MarkerMovedNativeDelegate MarkerMovedVMCallback {
get {
if (MarkerMoved_cb_delegate == null)
MarkerMoved_cb_delegate = new MarkerMovedNativeDelegate (MarkerMoved_cb);
return MarkerMoved_cb_delegate;
}
}
static void OverrideMarkerMoved (GLib.GType gtype)
{
OverrideMarkerMoved (gtype, MarkerMovedVMCallback);
}
static void OverrideMarkerMoved (GLib.GType gtype, MarkerMovedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "marker-moved", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void MarkerMovedNativeDelegate (IntPtr inst, ulong previous_position, ulong new_position, IntPtr marker);
static void MarkerMoved_cb (IntPtr inst, ulong previous_position, ulong new_position, IntPtr marker)
{
try {
MarkerList __obj = GLib.Object.GetObject (inst, false) as MarkerList;
__obj.OnMarkerMoved (previous_position, new_position, GLib.Object.GetObject(marker) as GES.Marker);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.MarkerList), ConnectionMethod="OverrideMarkerMoved")]
protected virtual void OnMarkerMoved (ulong previous_position, ulong new_position, GES.Marker marker)
{
InternalMarkerMoved (previous_position, new_position, marker);
}
private void InternalMarkerMoved (ulong previous_position, ulong new_position, GES.Marker marker)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
GLib.Value[] vals = new GLib.Value [4];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (previous_position);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (new_position);
inst_and_params.Append (vals [2]);
vals [3] = new GLib.Value (marker);
inst_and_params.Append (vals [3]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static MarkerRemovedNativeDelegate MarkerRemoved_cb_delegate;
static MarkerRemovedNativeDelegate MarkerRemovedVMCallback {
get {
if (MarkerRemoved_cb_delegate == null)
MarkerRemoved_cb_delegate = new MarkerRemovedNativeDelegate (MarkerRemoved_cb);
return MarkerRemoved_cb_delegate;
}
}
static void OverrideMarkerRemoved (GLib.GType gtype)
{
OverrideMarkerRemoved (gtype, MarkerRemovedVMCallback);
}
static void OverrideMarkerRemoved (GLib.GType gtype, MarkerRemovedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "marker-removed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void MarkerRemovedNativeDelegate (IntPtr inst, IntPtr marker);
static void MarkerRemoved_cb (IntPtr inst, IntPtr marker)
{
try {
MarkerList __obj = GLib.Object.GetObject (inst, false) as MarkerList;
__obj.OnMarkerRemoved (GLib.Object.GetObject(marker) as GES.Marker);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.MarkerList), ConnectionMethod="OverrideMarkerRemoved")]
protected virtual void OnMarkerRemoved (GES.Marker marker)
{
InternalMarkerRemoved (marker);
}
private void InternalMarkerRemoved (GES.Marker marker)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
GLib.Value[] vals = new GLib.Value [2];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (marker);
inst_and_params.Append (vals [1]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GLib.Object.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_marker_list_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = ges_marker_list_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_marker_list_add(IntPtr raw, ulong position);
public GES.Marker Add(ulong position) {
IntPtr raw_ret = ges_marker_list_add(Handle, position);
GES.Marker ret = GLib.Object.GetObject(raw_ret) as GES.Marker;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_marker_list_get_markers(IntPtr raw);
public GES.Marker[] Markers {
get {
IntPtr raw_ret = ges_marker_list_get_markers(Handle);
GES.Marker[] ret = (GES.Marker[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Marker));
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_marker_list_move(IntPtr raw, IntPtr marker, ulong position);
public bool Move(GES.Marker marker, ulong position) {
bool raw_ret = ges_marker_list_move(Handle, marker == null ? IntPtr.Zero : marker.Handle, position);
bool ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_marker_list_remove(IntPtr raw, IntPtr marker);
public bool Remove(GES.Marker marker) {
bool raw_ret = ges_marker_list_remove(Handle, marker == null ? IntPtr.Zero : marker.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern uint ges_marker_list_size(IntPtr raw);
public uint Size() {
uint raw_ret = ges_marker_list_size(Handle);
uint ret = raw_ret;
return ret;
}
static MarkerList ()
{
GtkSharp.GstEditingServices.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void MarkerMovedHandler(object o, MarkerMovedArgs args);
public class MarkerMovedArgs : GLib.SignalArgs {
public ulong PreviousPosition{
get {
return (ulong) Args [0];
}
}
public ulong NewPosition{
get {
return (ulong) Args [1];
}
}
public GES.Marker Marker{
get {
return (GES.Marker) Args [2];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
public delegate void MarkerRemovedHandler(object o, MarkerRemovedArgs args);
public class MarkerRemovedArgs : GLib.SignalArgs {
public GES.Marker Marker{
get {
return (GES.Marker) Args [0];
}
}
}
}

View file

@ -124,13 +124,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -210,6 +214,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -298,10 +313,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -359,10 +370,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -385,6 +392,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -451,6 +469,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);

View file

@ -9,6 +9,7 @@ namespace GES {
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
#region Autogenerated code #region Autogenerated code
[Obsolete]
public partial class MultiFileSource : GES.VideoSource { public partial class MultiFileSource : GES.VideoSource {
public MultiFileSource (IntPtr raw) : base(raw) {} public MultiFileSource (IntPtr raw) : base(raw) {}

View file

@ -8,13 +8,13 @@ namespace GES {
public delegate void NotifyMetaHandler(object o, NotifyMetaArgs args); public delegate void NotifyMetaHandler(object o, NotifyMetaArgs args);
public class NotifyMetaArgs : GLib.SignalArgs { public class NotifyMetaArgs : GLib.SignalArgs {
public string Object{ public string Key{
get { get {
return (string) Args [0]; return (string) Args [0];
} }
} }
public GLib.Value P0{ public GLib.Value Value{
get { get {
return (GLib.Value) Args [1]; return (GLib.Value) Args [1];
} }

View file

@ -73,6 +73,16 @@ namespace GES {
} }
} }
[GLib.Signal("loading")]
public event GES.LoadingHandler Loading {
add {
this.AddSignalHandler ("loading", value, typeof (GES.LoadingArgs));
}
remove {
this.RemoveSignalHandler ("loading", value);
}
}
[GLib.Signal("asset-loading")] [GLib.Signal("asset-loading")]
public event GES.AssetLoadingHandler AssetLoading { public event GES.AssetLoadingHandler AssetLoading {
add { add {
@ -295,6 +305,59 @@ namespace GES {
unmanaged (this.Handle, timeline == null ? IntPtr.Zero : timeline.Handle); unmanaged (this.Handle, timeline == null ? IntPtr.Zero : timeline.Handle);
} }
static LoadingNativeDelegate Loading_cb_delegate;
static LoadingNativeDelegate LoadingVMCallback {
get {
if (Loading_cb_delegate == null)
Loading_cb_delegate = new LoadingNativeDelegate (Loading_cb);
return Loading_cb_delegate;
}
}
static void OverrideLoading (GLib.GType gtype)
{
OverrideLoading (gtype, LoadingVMCallback);
}
static void OverrideLoading (GLib.GType gtype, LoadingNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("loading"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void LoadingNativeDelegate (IntPtr inst, IntPtr timeline);
static void Loading_cb (IntPtr inst, IntPtr timeline)
{
try {
Project __obj = GLib.Object.GetObject (inst, false) as Project;
__obj.OnLoading (GLib.Object.GetObject(timeline) as GES.Timeline);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.Project), ConnectionMethod="OverrideLoading")]
protected virtual void OnLoading (GES.Timeline timeline)
{
InternalLoading (timeline);
}
private void InternalLoading (GES.Timeline timeline)
{
LoadingNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("loading"));
unmanaged = (LoadingNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(LoadingNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, timeline == null ? IntPtr.Zero : timeline.Handle);
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null; static GLib.AbiStruct _class_abi = null;
@ -346,14 +409,22 @@ namespace GES {
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // loaded , (uint) Marshal.SizeOf(typeof(IntPtr)) // loaded
, "loading_error" , "loading_error"
, "loading"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("loading"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // loading
, "loaded"
, "_ges_reserved" , "_ges_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
new GLib.AbiField("_ges_reserved" new GLib.AbiField("_ges_reserved"
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _ges_reserved
, "loaded" , "loading"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
@ -396,6 +467,13 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_project_add_formatter(IntPtr raw, IntPtr formatter);
public void AddFormatter(GES.Formatter formatter) {
ges_project_add_formatter(Handle, formatter == null ? IntPtr.Zero : formatter.Handle);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_project_create_asset(IntPtr raw, IntPtr id, IntPtr extractable_type); static extern bool ges_project_create_asset(IntPtr raw, IntPtr id, IntPtr extractable_type);
@ -494,7 +572,7 @@ namespace GES {
public unsafe bool Save(GES.Timeline timeline, string uri, GES.Asset formatter_asset, bool overwrite) { public unsafe bool Save(GES.Timeline timeline, string uri, GES.Asset formatter_asset, bool overwrite) {
IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri); IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
IntPtr error = IntPtr.Zero; 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 raw_ret = ges_project_save(Handle, timeline == null ? IntPtr.Zero : timeline.Handle, native_uri, formatter_asset == null ? IntPtr.Zero : formatter_asset.OwnedHandle, overwrite, out error);
bool ret = raw_ret; bool ret = raw_ret;
GLib.Marshaller.Free (native_uri); GLib.Marshaller.Free (native_uri);
if (error != IntPtr.Zero) throw new GLib.GException (error); if (error != IntPtr.Zero) throw new GLib.GException (error);

View file

@ -13,9 +13,16 @@ namespace GES {
public SourceClip (IntPtr raw) : base(raw) {} public SourceClip (IntPtr raw) : base(raw) {}
protected SourceClip() : base(IntPtr.Zero) [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_source_clip_new_time_overlay();
public SourceClip () : base (IntPtr.Zero)
{ {
if (GetType () != typeof (SourceClip)) {
CreateNativeObject (new string [0], new GLib.Value[0]); CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = ges_source_clip_new_time_overlay();
} }

View file

@ -0,0 +1,69 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace GES {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class SourceClipAsset : GES.ClipAsset {
public SourceClipAsset (IntPtr raw) : base(raw) {}
protected SourceClipAsset() : base(IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (GES.ClipAsset.class_abi.Fields);
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_source_clip_asset_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = ges_source_clip_asset_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
static SourceClipAsset ()
{
GtkSharp.GstEditingServices.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (GES.ClipAsset.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -710,6 +710,7 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_timeline_add_layer(IntPtr raw, IntPtr layer); static extern bool ges_timeline_add_layer(IntPtr raw, IntPtr layer);
[Obsolete]
public bool AddLayer(GES.Layer layer) { public bool AddLayer(GES.Layer layer) {
bool raw_ret = ges_timeline_add_layer(Handle, layer == null ? IntPtr.Zero : layer.Handle); bool raw_ret = ges_timeline_add_layer(Handle, layer == null ? IntPtr.Zero : layer.Handle);
bool ret = raw_ret; bool ret = raw_ret;
@ -763,6 +764,24 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern long ges_timeline_get_frame_at(IntPtr raw, ulong timestamp);
public long GetFrameAt(ulong timestamp) {
long raw_ret = ges_timeline_get_frame_at(Handle, timestamp);
long ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern ulong ges_timeline_get_frame_time(IntPtr raw, long frame_number);
public ulong GetFrameTime(long frame_number) {
ulong raw_ret = ges_timeline_get_frame_time(Handle, frame_number);
ulong ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_timeline_get_groups(IntPtr raw); static extern IntPtr ges_timeline_get_groups(IntPtr raw);
@ -839,7 +858,7 @@ namespace GES {
public GES.TimelineElement PasteElement(GES.TimelineElement element, ulong position, int layer_priority) { public GES.TimelineElement PasteElement(GES.TimelineElement element, ulong position, int layer_priority) {
IntPtr raw_ret = ges_timeline_paste_element(Handle, element == null ? IntPtr.Zero : element.Handle, position, layer_priority); IntPtr raw_ret = ges_timeline_paste_element(Handle, element == null ? IntPtr.Zero : element.Handle, position, layer_priority);
GES.TimelineElement ret = GLib.Object.GetObject(raw_ret) as GES.TimelineElement; GES.TimelineElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TimelineElement;
return ret; return ret;
} }
@ -921,13 +940,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -1007,6 +1030,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -1095,10 +1129,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -1156,10 +1186,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -1182,6 +1208,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -1248,6 +1285,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
@ -1329,34 +1377,34 @@ namespace GES {
OverrideVirtualMethod (gtype, "notify-meta", callback); OverrideVirtualMethod (gtype, "notify-meta", callback);
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0); delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0) static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{ {
try { try {
GES.Timeline __obj = GLib.Object.GetObject (inst, false) as GES.Timeline; GES.Timeline __obj = GLib.Object.GetObject (inst, false) as GES.Timeline;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value))); __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false); GLib.ExceptionManager.RaiseUnhandledException (e, false);
} }
} }
[GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideNotifyMeta")] [GLib.DefaultSignalHandler(Type=typeof(GES.Timeline), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string _object, GLib.Value p0) protected virtual void OnNotifyMeta (string key, GLib.Value value)
{ {
InternalNotifyMeta (_object, p0); InternalNotifyMeta (key, value);
} }
private void InternalNotifyMeta (string _object, GLib.Value p0) private void InternalNotifyMeta (string key, GLib.Value value)
{ {
GLib.Value ret = GLib.Value.Empty; GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3); GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3]; GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this); vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]); inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (_object); vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]); inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (p0); vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]); inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals) foreach (GLib.Value v in vals)

View file

@ -104,6 +104,7 @@ namespace GES {
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern uint ges_timeline_element_get_priority(IntPtr raw); static extern uint ges_timeline_element_get_priority(IntPtr raw);
[Obsolete]
[GLib.Property ("priority")] [GLib.Property ("priority")]
public uint Priority { public uint Priority {
get { get {
@ -232,6 +233,16 @@ namespace GES {
} }
} }
[GLib.Signal("child-property-removed")]
public event GES.ChildPropertyRemovedHandler ChildPropertyRemoved {
add {
this.AddSignalHandler ("child-property-removed", value, typeof (GES.ChildPropertyRemovedArgs));
}
remove {
this.RemoveSignalHandler ("child-property-removed", value);
}
}
[GLib.Signal("deep-notify")] [GLib.Signal("deep-notify")]
public event GES.DeepNotifyHandler DeepNotify { public event GES.DeepNotifyHandler DeepNotify {
add { add {
@ -242,6 +253,122 @@ namespace GES {
} }
} }
[GLib.Signal("child-property-added")]
public event GES.ChildPropertyAddedHandler ChildPropertyAdded {
add {
this.AddSignalHandler ("child-property-added", value, typeof (GES.ChildPropertyAddedArgs));
}
remove {
this.RemoveSignalHandler ("child-property-added", value);
}
}
static ChildPropertyAddedNativeDelegate ChildPropertyAdded_cb_delegate;
static ChildPropertyAddedNativeDelegate ChildPropertyAddedVMCallback {
get {
if (ChildPropertyAdded_cb_delegate == null)
ChildPropertyAdded_cb_delegate = new ChildPropertyAddedNativeDelegate (ChildPropertyAdded_cb);
return ChildPropertyAdded_cb_delegate;
}
}
static void OverrideChildPropertyAdded (GLib.GType gtype)
{
OverrideChildPropertyAdded (gtype, ChildPropertyAddedVMCallback);
}
static void OverrideChildPropertyAdded (GLib.GType gtype, ChildPropertyAddedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "child-property-added", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ChildPropertyAddedNativeDelegate (IntPtr inst, IntPtr prop_object, IntPtr prop);
static void ChildPropertyAdded_cb (IntPtr inst, IntPtr prop_object, IntPtr prop)
{
try {
TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
__obj.OnChildPropertyAdded (GLib.Object.GetObject (prop_object), prop);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideChildPropertyAdded")]
protected virtual void OnChildPropertyAdded (GLib.Object prop_object, IntPtr prop)
{
InternalChildPropertyAdded (prop_object, prop);
}
private void InternalChildPropertyAdded (GLib.Object prop_object, IntPtr prop)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (prop_object);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (prop);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static ChildPropertyRemovedNativeDelegate ChildPropertyRemoved_cb_delegate;
static ChildPropertyRemovedNativeDelegate ChildPropertyRemovedVMCallback {
get {
if (ChildPropertyRemoved_cb_delegate == null)
ChildPropertyRemoved_cb_delegate = new ChildPropertyRemovedNativeDelegate (ChildPropertyRemoved_cb);
return ChildPropertyRemoved_cb_delegate;
}
}
static void OverrideChildPropertyRemoved (GLib.GType gtype)
{
OverrideChildPropertyRemoved (gtype, ChildPropertyRemovedVMCallback);
}
static void OverrideChildPropertyRemoved (GLib.GType gtype, ChildPropertyRemovedNativeDelegate callback)
{
OverrideVirtualMethod (gtype, "child-property-removed", callback);
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ChildPropertyRemovedNativeDelegate (IntPtr inst, IntPtr prop_object, IntPtr prop);
static void ChildPropertyRemoved_cb (IntPtr inst, IntPtr prop_object, IntPtr prop)
{
try {
TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
__obj.OnChildPropertyRemoved (GLib.Object.GetObject (prop_object), prop);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideChildPropertyRemoved")]
protected virtual void OnChildPropertyRemoved (GLib.Object prop_object, IntPtr prop)
{
InternalChildPropertyRemoved (prop_object, prop);
}
private void InternalChildPropertyRemoved (GLib.Object prop_object, IntPtr prop)
{
GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (prop_object);
inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (prop);
inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals)
v.Dispose ();
}
static DeepNotifyNativeDelegate DeepNotify_cb_delegate; static DeepNotifyNativeDelegate DeepNotify_cb_delegate;
static DeepNotifyNativeDelegate DeepNotifyVMCallback { static DeepNotifyNativeDelegate DeepNotifyVMCallback {
get { get {
@ -1221,6 +1348,127 @@ namespace GES {
return __result; return __result;
} }
static GetNaturalFramerateNativeDelegate GetNaturalFramerate_cb_delegate;
static GetNaturalFramerateNativeDelegate GetNaturalFramerateVMCallback {
get {
if (GetNaturalFramerate_cb_delegate == null)
GetNaturalFramerate_cb_delegate = new GetNaturalFramerateNativeDelegate (GetNaturalFramerate_cb);
return GetNaturalFramerate_cb_delegate;
}
}
static void OverrideGetNaturalFramerate (GLib.GType gtype)
{
OverrideGetNaturalFramerate (gtype, GetNaturalFramerateVMCallback);
}
static void OverrideGetNaturalFramerate (GLib.GType gtype, GetNaturalFramerateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetNaturalFramerateNativeDelegate (IntPtr inst, out int framerate_n, out int framerate_d);
static bool GetNaturalFramerate_cb (IntPtr inst, out int framerate_n, out int framerate_d)
{
try {
TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
bool __result;
__result = __obj.OnGetNaturalFramerate (out framerate_n, out framerate_d);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideGetNaturalFramerate")]
protected virtual bool OnGetNaturalFramerate (out int framerate_n, out int framerate_d)
{
return InternalGetNaturalFramerate (out framerate_n, out framerate_d);
}
private bool InternalGetNaturalFramerate (out int framerate_n, out int framerate_d)
{
GetNaturalFramerateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
unmanaged = (GetNaturalFramerateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNaturalFramerateNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
bool __result = unmanaged (this.Handle, out framerate_n, out framerate_d);
return __result;
}
static SetChildPropertyFullNativeDelegate SetChildPropertyFull_cb_delegate;
static SetChildPropertyFullNativeDelegate SetChildPropertyFullVMCallback {
get {
if (SetChildPropertyFull_cb_delegate == null)
SetChildPropertyFull_cb_delegate = new SetChildPropertyFullNativeDelegate (SetChildPropertyFull_cb);
return SetChildPropertyFull_cb_delegate;
}
}
static void OverrideSetChildPropertyFull (GLib.GType gtype)
{
OverrideSetChildPropertyFull (gtype, SetChildPropertyFullVMCallback);
}
static void OverrideSetChildPropertyFull (GLib.GType gtype, SetChildPropertyFullNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("set_child_property_full"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SetChildPropertyFullNativeDelegate (IntPtr inst, IntPtr child, IntPtr pspec, IntPtr value, out IntPtr error);
static bool SetChildPropertyFull_cb (IntPtr inst, IntPtr child, IntPtr pspec, IntPtr value, out IntPtr error)
{
error = IntPtr.Zero;
try {
TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement;
bool __result;
__result = __obj.OnSetChildPropertyFull (GLib.Object.GetObject (child), pspec, (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideSetChildPropertyFull")]
protected virtual bool OnSetChildPropertyFull (GLib.Object child, IntPtr pspec, GLib.Value value)
{
return InternalSetChildPropertyFull (child, pspec, value);
}
private bool InternalSetChildPropertyFull (GLib.Object child, IntPtr pspec, GLib.Value value)
{
SetChildPropertyFullNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("set_child_property_full"));
unmanaged = (SetChildPropertyFullNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SetChildPropertyFullNativeDelegate));
}
if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke");
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
IntPtr error = IntPtr.Zero;
bool __result = unmanaged (this.Handle, child == null ? IntPtr.Zero : child.Handle, pspec, native_value, out error);
Marshal.FreeHGlobal (native_value);
return __result;
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null; static GLib.AbiStruct _class_abi = null;
@ -1368,14 +1616,30 @@ namespace GES {
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_layer_priority , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_layer_priority
, "set_child_property" , "set_child_property"
, "get_natural_framerate"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_natural_framerate"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_natural_framerate
, "get_layer_priority"
, "set_child_property_full"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("set_child_property_full"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // set_child_property_full
, "get_natural_framerate"
, "_ges_reserved" , "_ges_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
new GLib.AbiField("_ges_reserved" new GLib.AbiField("_ges_reserved"
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 16 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) * 14 // _ges_reserved
, "get_layer_priority" , "set_child_property_full"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
@ -1418,6 +1682,30 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_timeline_element_edit(IntPtr raw, IntPtr layers, long new_layer_priority, int mode, int edge, ulong position);
public bool Edit(GLib.List layers, long new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
bool raw_ret = ges_timeline_element_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, new_layer_priority, (int) mode, (int) edge, position);
bool ret = raw_ret;
return ret;
}
public bool Edit(long new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
return Edit (null, new_layer_priority, mode, edge, position);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_timeline_element_edit_full(IntPtr raw, long new_layer_priority, int mode, int edge, ulong position, out IntPtr error);
public unsafe bool EditFull(long new_layer_priority, GES.EditMode mode, GES.Edge edge, ulong position) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_timeline_element_edit_full(Handle, new_layer_priority, (int) mode, (int) edge, position, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_timeline_element_get_child_property(IntPtr raw, IntPtr property_name, IntPtr value); static extern bool ges_timeline_element_get_child_property(IntPtr raw, IntPtr property_name, IntPtr value);
@ -1455,6 +1743,15 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_timeline_element_get_natural_framerate(IntPtr raw, out int framerate_n, out int framerate_d);
public bool GetNaturalFramerate(out int framerate_n, out int framerate_d) {
bool raw_ret = ges_timeline_element_get_natural_framerate(Handle, out framerate_n, out framerate_d);
bool ret = raw_ret;
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_timeline_element_get_toplevel_parent(IntPtr raw); static extern IntPtr ges_timeline_element_get_toplevel_parent(IntPtr raw);
@ -1495,7 +1792,7 @@ namespace GES {
public GES.TimelineElement Paste(ulong paste_position) { public GES.TimelineElement Paste(ulong paste_position) {
IntPtr raw_ret = ges_timeline_element_paste(Handle, paste_position); IntPtr raw_ret = ges_timeline_element_paste(Handle, paste_position);
GES.TimelineElement ret = GLib.Object.GetObject(raw_ret) as GES.TimelineElement; GES.TimelineElement ret = GLib.Object.GetObject(raw_ret, true) as GES.TimelineElement;
return ret; return ret;
} }
@ -1566,6 +1863,21 @@ namespace GES {
Marshal.FreeHGlobal (native_value); Marshal.FreeHGlobal (native_value);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_timeline_element_set_child_property_full(IntPtr raw, IntPtr property_name, IntPtr value, out IntPtr error);
public unsafe bool SetChildPropertyFull(string property_name, GLib.Value value) {
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_timeline_element_set_child_property_full(Handle, native_property_name, native_value, out error);
bool ret = raw_ret;
GLib.Marshaller.Free (native_property_name);
Marshal.FreeHGlobal (native_value);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_timeline_element_set_duration(IntPtr raw, ulong duration); static extern bool ges_timeline_element_set_duration(IntPtr raw, ulong duration);
@ -1697,13 +2009,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -1783,6 +2099,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -1871,10 +2198,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -1932,10 +2255,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -1958,6 +2277,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -2024,6 +2354,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
@ -2105,34 +2446,34 @@ namespace GES {
OverrideVirtualMethod (gtype, "notify-meta", callback); OverrideVirtualMethod (gtype, "notify-meta", callback);
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0); delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0) static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{ {
try { try {
GES.TimelineElement __obj = GLib.Object.GetObject (inst, false) as GES.TimelineElement; GES.TimelineElement __obj = GLib.Object.GetObject (inst, false) as GES.TimelineElement;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value))); __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false); GLib.ExceptionManager.RaiseUnhandledException (e, false);
} }
} }
[GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideNotifyMeta")] [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string _object, GLib.Value p0) protected virtual void OnNotifyMeta (string key, GLib.Value value)
{ {
InternalNotifyMeta (_object, p0); InternalNotifyMeta (key, value);
} }
private void InternalNotifyMeta (string _object, GLib.Value p0) private void InternalNotifyMeta (string key, GLib.Value value)
{ {
GLib.Value ret = GLib.Value.Empty; GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3); GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3]; GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this); vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]); inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (_object); vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]); inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (p0); vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]); inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals) foreach (GLib.Value v in vals)

View file

@ -52,6 +52,21 @@ namespace GES {
} }
} }
[GLib.Property ("id")]
public string Id {
get {
GLib.Value val = GetProperty ("id");
string ret = (string) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("id", val);
val.Dispose ();
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_get_mixing(IntPtr raw); static extern bool ges_track_get_mixing(IntPtr raw);
@ -70,15 +85,17 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_track_get_restriction_caps(IntPtr raw);
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_set_restriction_caps(IntPtr raw, IntPtr caps); static extern void ges_track_set_restriction_caps(IntPtr raw, IntPtr caps);
[GLib.Property ("restriction-caps")] [GLib.Property ("restriction-caps")]
public Gst.Caps RestrictionCaps { public Gst.Caps RestrictionCaps {
get { get {
GLib.Value val = GetProperty ("restriction-caps"); IntPtr raw_ret = ges_track_get_restriction_caps(Handle);
Gst.Caps ret = (Gst.Caps) val; Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
val.Dispose ();
return ret; return ret;
} }
set { set {
@ -338,6 +355,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_track_add_element_full(IntPtr raw, IntPtr _object, out IntPtr error);
public unsafe bool AddElementFull(GES.TrackElement _object) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_track_add_element_full(Handle, _object == null ? IntPtr.Zero : _object.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_commit(IntPtr raw); static extern bool ges_track_commit(IntPtr raw);
@ -384,6 +412,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe bool ges_track_remove_element_full(IntPtr raw, IntPtr _object, out IntPtr error);
public unsafe bool RemoveElementFull(GES.TrackElement _object) {
IntPtr error = IntPtr.Zero;
bool raw_ret = ges_track_remove_element_full(Handle, _object == null ? IntPtr.Zero : _object.Handle, out error);
bool ret = raw_ret;
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_update_restriction_caps(IntPtr raw, IntPtr caps); static extern void ges_track_update_restriction_caps(IntPtr raw, IntPtr caps);
@ -403,13 +442,17 @@ namespace GES {
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, int flags, IntPtr type); static extern bool ges_meta_container_check_meta_registered(IntPtr raw, IntPtr meta_item, out int flags, out IntPtr type);
public bool CheckMetaRegistered(string meta_item, GES.MetaFlag flags, GLib.GType type) { public bool CheckMetaRegistered(string meta_item, out GES.MetaFlag flags, out GLib.GType type) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item); 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); 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; bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item); GLib.Marshaller.Free (native_meta_item);
flags = (GES.MetaFlag) native_flags;
type = new GLib.GType(native_type);
return ret; return ret;
} }
@ -489,6 +532,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_marker_list(IntPtr raw, IntPtr key);
public GES.MarkerList GetMarkerList(string key) {
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
IntPtr raw_ret = ges_meta_container_get_marker_list(Handle, native_key);
GES.MarkerList ret = GLib.Object.GetObject(raw_ret, true) as GES.MarkerList;
GLib.Marshaller.Free (native_key);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key); static extern IntPtr ges_meta_container_get_meta(IntPtr raw, IntPtr key);
@ -577,10 +631,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaDateTime(GES.MetaFlag flags, string meta_item) {
return RegisterMetaDateTime (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value); static extern bool ges_meta_container_register_meta_double(IntPtr raw, int flags, IntPtr meta_item, double value);
@ -638,10 +688,6 @@ namespace GES {
return ret; return ret;
} }
public bool RegisterMetaString(GES.MetaFlag flags, string meta_item) {
return RegisterMetaString (flags, meta_item, null);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value); static extern bool ges_meta_container_register_meta_uint(IntPtr raw, int flags, IntPtr meta_item, uint value);
@ -664,6 +710,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_register_static_meta(IntPtr raw, int flags, IntPtr meta_item, IntPtr type);
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;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value); static extern bool ges_meta_container_set_boolean(IntPtr raw, IntPtr meta_item, bool value);
@ -730,6 +787,17 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_marker_list(IntPtr raw, IntPtr meta_item, IntPtr list);
public bool SetMarkerList(string meta_item, GES.MarkerList list) {
IntPtr native_meta_item = GLib.Marshaller.StringToPtrGStrdup (meta_item);
bool raw_ret = ges_meta_container_set_marker_list(Handle, native_meta_item, list == null ? IntPtr.Zero : list.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_meta_item);
return ret;
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value); static extern bool ges_meta_container_set_meta(IntPtr raw, IntPtr meta_item, IntPtr value);
@ -811,34 +879,34 @@ namespace GES {
OverrideVirtualMethod (gtype, "notify-meta", callback); OverrideVirtualMethod (gtype, "notify-meta", callback);
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr _object, IntPtr p0); delegate void NotifyMetaNativeDelegate (IntPtr inst, IntPtr key, IntPtr value);
static void NotifyMeta_cb (IntPtr inst, IntPtr _object, IntPtr p0) static void NotifyMeta_cb (IntPtr inst, IntPtr key, IntPtr value)
{ {
try { try {
GES.Track __obj = GLib.Object.GetObject (inst, false) as GES.Track; GES.Track __obj = GLib.Object.GetObject (inst, false) as GES.Track;
__obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (_object), (GLib.Value) Marshal.PtrToStructure (p0, typeof (GLib.Value))); __obj.OnNotifyMeta (GLib.Marshaller.Utf8PtrToString (key), (GLib.Value) Marshal.PtrToStructure (value, typeof (GLib.Value)));
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false); GLib.ExceptionManager.RaiseUnhandledException (e, false);
} }
} }
[GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideNotifyMeta")] [GLib.DefaultSignalHandler(Type=typeof(GES.Track), ConnectionMethod="OverrideNotifyMeta")]
protected virtual void OnNotifyMeta (string _object, GLib.Value p0) protected virtual void OnNotifyMeta (string key, GLib.Value value)
{ {
InternalNotifyMeta (_object, p0); InternalNotifyMeta (key, value);
} }
private void InternalNotifyMeta (string _object, GLib.Value p0) private void InternalNotifyMeta (string key, GLib.Value value)
{ {
GLib.Value ret = GLib.Value.Empty; GLib.Value ret = GLib.Value.Empty;
GLib.ValueArray inst_and_params = new GLib.ValueArray (3); GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
GLib.Value[] vals = new GLib.Value [3]; GLib.Value[] vals = new GLib.Value [3];
vals [0] = new GLib.Value (this); vals [0] = new GLib.Value (this);
inst_and_params.Append (vals [0]); inst_and_params.Append (vals [0]);
vals [1] = new GLib.Value (_object); vals [1] = new GLib.Value (key);
inst_and_params.Append (vals [1]); inst_and_params.Append (vals [1]);
vals [2] = new GLib.Value (p0); vals [2] = new GLib.Value (value);
inst_and_params.Append (vals [2]); inst_and_params.Append (vals [2]);
g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
foreach (GLib.Value v in vals) foreach (GLib.Value v in vals)

View file

@ -33,6 +33,40 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_get_auto_clamp_control_sources(IntPtr raw);
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_element_set_auto_clamp_control_sources(IntPtr raw, bool auto_clamp);
[GLib.Property ("auto-clamp-control-sources")]
public bool AutoClampControlSources {
get {
bool raw_ret = ges_track_element_get_auto_clamp_control_sources(Handle);
bool ret = raw_ret;
return ret;
}
set {
ges_track_element_set_auto_clamp_control_sources(Handle, value);
}
}
[GLib.Property ("has-internal-source")]
public bool HasInternalSourceProp
{
get {
GLib.Value val = GetProperty ("has-internal-source");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("has-internal-source", val);
val.Dispose ();
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_track_element_get_track(IntPtr raw); static extern IntPtr ges_track_element_get_track(IntPtr raw);
@ -414,18 +448,34 @@ namespace GES {
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // lookup_child , (uint) Marshal.SizeOf(typeof(IntPtr)) // lookup_child
, "list_children_properties" , "list_children_properties"
, "_ges_reserved" , "ABI"
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
new GLib.AbiField("_ges_reserved" // union struct ABI.abi
// End ABI.abi
// union struct ABI
new GLib.AbiField("ABI._gst_reserved"
, -1 , -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // ABI._gst_reserved
, "lookup_child" , "lookup_child"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
), ),
// End ABI
new GLib.AbiField("ABI"
, -1
, new List<List<string>>() { // union ABI
new List<string>() {},
new List<string>() {"ABI._gst_reserved"}
}
, "lookup_child"
, null
, 0
),
}); });
return _class_abi; return _class_abi;
@ -472,15 +522,29 @@ namespace GES {
AddChildrenProps (element, null, null, null); AddChildrenProps (element, null, null, null);
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern void ges_track_element_clamp_control_source(IntPtr raw, IntPtr property_name);
public void ClampControlSource(string property_name) {
IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
ges_track_element_clamp_control_source(Handle, native_property_name);
GLib.Marshaller.Free (native_property_name);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_edit(IntPtr raw, IntPtr layers, int mode, int edge, ulong position); static extern bool ges_track_element_edit(IntPtr raw, IntPtr layers, int mode, int edge, ulong position);
[Obsolete]
public bool Edit(GLib.List layers, GES.EditMode mode, GES.Edge edge, ulong position) { public bool Edit(GLib.List layers, GES.EditMode mode, GES.Edge edge, ulong position) {
bool raw_ret = ges_track_element_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, (int) mode, (int) edge, position); bool raw_ret = ges_track_element_edit(Handle, layers == null ? IntPtr.Zero : layers.Handle, (int) mode, (int) edge, position);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
public bool Edit(GES.EditMode mode, GES.Edge edge, ulong position) {
return Edit (null, mode, edge, position);
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern System.IntPtr ges_track_element_get_all_control_bindings(IntPtr raw); static extern System.IntPtr ges_track_element_get_all_control_bindings(IntPtr raw);
@ -537,6 +601,17 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_has_internal_source(IntPtr raw);
public bool HasInternalSource {
get {
bool raw_ret = ges_track_element_has_internal_source(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_is_active(IntPtr raw); static extern bool ges_track_element_is_active(IntPtr raw);
@ -548,6 +623,17 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_is_core(IntPtr raw);
public bool IsCore {
get {
bool raw_ret = ges_track_element_is_core(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_lookup_child(IntPtr raw, IntPtr prop_name, out IntPtr element, out IntPtr pspec); static extern bool ges_track_element_lookup_child(IntPtr raw, IntPtr prop_name, out IntPtr element, out IntPtr pspec);
@ -595,6 +681,15 @@ namespace GES {
return ret; return ret;
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_set_has_internal_source(IntPtr raw, bool has_internal_source);
public bool SetHasInternalSource(bool has_internal_source) {
bool raw_ret = ges_track_element_set_has_internal_source(Handle, has_internal_source);
bool ret = raw_ret;
return ret;
}
static TrackElement () static TrackElement ()
{ {

View file

@ -36,6 +36,64 @@ namespace GES {
} }
} }
static GetNaturalFramerateNativeDelegate GetNaturalFramerate_cb_delegate;
static GetNaturalFramerateNativeDelegate GetNaturalFramerateVMCallback {
get {
if (GetNaturalFramerate_cb_delegate == null)
GetNaturalFramerate_cb_delegate = new GetNaturalFramerateNativeDelegate (GetNaturalFramerate_cb);
return GetNaturalFramerate_cb_delegate;
}
}
static void OverrideGetNaturalFramerate (GLib.GType gtype)
{
OverrideGetNaturalFramerate (gtype, GetNaturalFramerateVMCallback);
}
static void OverrideGetNaturalFramerate (GLib.GType gtype, GetNaturalFramerateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetNaturalFramerateNativeDelegate (IntPtr inst, int framerate_n, int framerate_d);
static bool GetNaturalFramerate_cb (IntPtr inst, int framerate_n, int framerate_d)
{
try {
TrackElementAsset __obj = GLib.Object.GetObject (inst, false) as TrackElementAsset;
bool __result;
__result = __obj.OnGetNaturalFramerate (framerate_n, framerate_d);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(GES.TrackElementAsset), ConnectionMethod="OverrideGetNaturalFramerate")]
protected virtual bool OnGetNaturalFramerate (int framerate_n, int framerate_d)
{
return InternalGetNaturalFramerate (framerate_n, framerate_d);
}
private bool InternalGetNaturalFramerate (int framerate_n, int framerate_d)
{
GetNaturalFramerateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_natural_framerate"));
unmanaged = (GetNaturalFramerateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetNaturalFramerateNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle, framerate_n, framerate_d);
return __result;
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null; static GLib.AbiStruct _class_abi = null;
@ -43,10 +101,18 @@ namespace GES {
get { get {
if (_class_abi == null) if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_ges_reserved" new GLib.AbiField("get_natural_framerate"
, GES.Asset.class_abi.Fields , GES.Asset.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_natural_framerate
, null , null
, "_ges_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_ges_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _ges_reserved
, "get_natural_framerate"
, null , null
, (uint) Marshal.SizeOf(typeof(IntPtr)) , (uint) Marshal.SizeOf(typeof(IntPtr))
, 0 , 0
@ -71,6 +137,15 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_track_element_asset_get_natural_framerate(IntPtr raw, int framerate_n, int framerate_d);
public bool GetNaturalFramerate(int framerate_n, int framerate_d) {
bool raw_ret = ges_track_element_asset_get_natural_framerate(Handle, framerate_n, framerate_d);
bool ret = raw_ret;
return ret;
}
static TrackElementAsset () static TrackElementAsset ()
{ {

View file

@ -9,7 +9,7 @@ namespace GES {
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
#region Autogenerated code #region Autogenerated code
public partial class UriClipAsset : GES.ClipAsset { public partial class UriClipAsset : GES.SourceClipAsset {
public UriClipAsset (IntPtr raw) : base(raw) {} public UriClipAsset (IntPtr raw) : base(raw) {}
@ -35,6 +35,16 @@ namespace GES {
} }
} }
[GLib.Property ("is-nested-timeline")]
public bool IsNestedTimeline {
get {
GLib.Value val = GetProperty ("is-nested-timeline");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null; static GLib.AbiStruct _class_abi = null;
@ -43,7 +53,7 @@ namespace GES {
if (_class_abi == null) if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{ _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("discoverer" new GLib.AbiField("discoverer"
, GES.ClipAsset.class_abi.Fields , GES.SourceClipAsset.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // discoverer , (uint) Marshal.SizeOf(typeof(IntPtr)) // discoverer
, null , null
, "sync_discoverer" , "sync_discoverer"
@ -153,6 +163,17 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern ulong ges_uri_clip_asset_get_max_duration(IntPtr raw);
public ulong MaxDuration {
get {
ulong raw_ret = ges_uri_clip_asset_get_max_duration(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr ges_uri_clip_asset_get_stream_assets(IntPtr raw); static extern IntPtr ges_uri_clip_asset_get_stream_assets(IntPtr raw);
@ -188,7 +209,7 @@ namespace GES {
if (_abi_info == null) if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv" new GLib.AbiField("priv"
, GES.ClipAsset.abi_info.Fields , GES.SourceClipAsset.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null , null
, "__ges_reserved" , "__ges_reserved"

View file

@ -86,6 +86,17 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_uri_source_asset_is_image(IntPtr raw);
public bool IsImage {
get {
bool raw_ret = ges_uri_source_asset_is_image(Handle);
bool ret = raw_ret;
return ret;
}
}
static UriSourceAsset () static UriSourceAsset ()
{ {

View file

@ -92,6 +92,15 @@ namespace GES {
} }
} }
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
static extern bool ges_video_source_get_natural_size(IntPtr raw, out int width, out int height);
public bool GetNaturalSize(out int width, out int height) {
bool raw_ret = ges_video_source_get_natural_size(Handle, out width, out height);
bool ret = raw_ret;
return ret;
}
static VideoSource () static VideoSource ()
{ {

View file

@ -34,6 +34,8 @@ namespace GtkSharp.GstEditingServices {
GLib.GType.Register (GES.Group.GType, typeof (GES.Group)); GLib.GType.Register (GES.Group.GType, typeof (GES.Group));
GLib.GType.Register (GES.ImageSource.GType, typeof (GES.ImageSource)); GLib.GType.Register (GES.ImageSource.GType, typeof (GES.ImageSource));
GLib.GType.Register (GES.Layer.GType, typeof (GES.Layer)); GLib.GType.Register (GES.Layer.GType, typeof (GES.Layer));
GLib.GType.Register (GES.Marker.GType, typeof (GES.Marker));
GLib.GType.Register (GES.MarkerList.GType, typeof (GES.MarkerList));
GLib.GType.Register (GES.MultiFileSource.GType, typeof (GES.MultiFileSource)); GLib.GType.Register (GES.MultiFileSource.GType, typeof (GES.MultiFileSource));
GLib.GType.Register (GES.Operation.GType, typeof (GES.Operation)); GLib.GType.Register (GES.Operation.GType, typeof (GES.Operation));
GLib.GType.Register (GES.OperationClip.GType, typeof (GES.OperationClip)); GLib.GType.Register (GES.OperationClip.GType, typeof (GES.OperationClip));
@ -42,6 +44,7 @@ namespace GtkSharp.GstEditingServices {
GLib.GType.Register (GES.Project.GType, typeof (GES.Project)); GLib.GType.Register (GES.Project.GType, typeof (GES.Project));
GLib.GType.Register (GES.Source.GType, typeof (GES.Source)); GLib.GType.Register (GES.Source.GType, typeof (GES.Source));
GLib.GType.Register (GES.SourceClip.GType, typeof (GES.SourceClip)); GLib.GType.Register (GES.SourceClip.GType, typeof (GES.SourceClip));
GLib.GType.Register (GES.SourceClipAsset.GType, typeof (GES.SourceClipAsset));
GLib.GType.Register (GES.TestClip.GType, typeof (GES.TestClip)); GLib.GType.Register (GES.TestClip.GType, typeof (GES.TestClip));
GLib.GType.Register (GES.TextOverlay.GType, typeof (GES.TextOverlay)); GLib.GType.Register (GES.TextOverlay.GType, typeof (GES.TextOverlay));
GLib.GType.Register (GES.TextOverlayClip.GType, typeof (GES.TextOverlayClip)); GLib.GType.Register (GES.TextOverlayClip.GType, typeof (GES.TextOverlayClip));

View file

@ -43,12 +43,14 @@ int main (int argc, char *argv[]) {
g_print("\"GESBaseXmlFormatterClass.save\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESBaseXmlFormatterClass, save)); g_print("\"GESBaseXmlFormatterClass.save\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESBaseXmlFormatterClass, save));
g_print("\"sizeof(GESBaseXmlFormatter)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESBaseXmlFormatter)); g_print("\"sizeof(GESBaseXmlFormatter)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESBaseXmlFormatter));
g_print("\"GESBaseXmlFormatter.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESBaseXmlFormatter, priv)); g_print("\"GESBaseXmlFormatter.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESBaseXmlFormatter, priv));
g_print("\"GESBaseXmlFormatter.xmlcontent\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESBaseXmlFormatter, xmlcontent));
g_print("\"sizeof(GESClipClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipClass)); g_print("\"sizeof(GESClipClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipClass));
g_print("\"GESClipClass.create_track_element\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipClass, create_track_element)); g_print("\"GESClipClass.create_track_element\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipClass, create_track_element));
g_print("\"GESClipClass.create_track_elements\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipClass, create_track_elements)); g_print("\"GESClipClass.create_track_elements\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipClass, create_track_elements));
g_print("\"sizeof(GESClip)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClip)); g_print("\"sizeof(GESClip)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClip));
g_print("\"GESClip.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClip, priv)); g_print("\"GESClip.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClip, priv));
g_print("\"sizeof(GESClipAssetClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipAssetClass)); g_print("\"sizeof(GESClipAssetClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipAssetClass));
g_print("\"GESClipAssetClass.get_natural_framerate\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipAssetClass, get_natural_framerate));
g_print("\"sizeof(GESClipAsset)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipAsset)); g_print("\"sizeof(GESClipAsset)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESClipAsset));
g_print("\"GESClipAsset.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipAsset, priv)); g_print("\"GESClipAsset.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESClipAsset, priv));
g_print("\"sizeof(GESCommandLineFormatter)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESCommandLineFormatter)); g_print("\"sizeof(GESCommandLineFormatter)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESCommandLineFormatter));
@ -128,6 +130,7 @@ int main (int argc, char *argv[]) {
g_print("\"GESProjectClass.missing_uri\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, missing_uri)); g_print("\"GESProjectClass.missing_uri\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, missing_uri));
g_print("\"GESProjectClass.loading_error\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, loading_error)); g_print("\"GESProjectClass.loading_error\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, loading_error));
g_print("\"GESProjectClass.loaded\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, loaded)); g_print("\"GESProjectClass.loaded\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, loaded));
g_print("\"GESProjectClass.loading\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProjectClass, loading));
g_print("\"sizeof(GESProject)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESProject)); g_print("\"sizeof(GESProject)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESProject));
g_print("\"GESProject.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProject, priv)); g_print("\"GESProject.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESProject, priv));
g_print("\"sizeof(GESSourceClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESSourceClass)); g_print("\"sizeof(GESSourceClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESSourceClass));
@ -175,6 +178,8 @@ int main (int argc, char *argv[]) {
g_print("\"GESTimelineElementClass.get_track_types\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_track_types)); g_print("\"GESTimelineElementClass.get_track_types\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_track_types));
g_print("\"GESTimelineElementClass.set_child_property\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, set_child_property)); g_print("\"GESTimelineElementClass.set_child_property\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, set_child_property));
g_print("\"GESTimelineElementClass.get_layer_priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_layer_priority)); g_print("\"GESTimelineElementClass.get_layer_priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_layer_priority));
g_print("\"GESTimelineElementClass.get_natural_framerate\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_natural_framerate));
g_print("\"GESTimelineElementClass.set_child_property_full\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, set_child_property_full));
g_print("\"sizeof(GESTimelineElement)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTimelineElement)); g_print("\"sizeof(GESTimelineElement)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTimelineElement));
g_print("\"GESTimelineElement.parent\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, parent)); g_print("\"GESTimelineElement.parent\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, parent));
g_print("\"GESTimelineElement.asset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, asset)); g_print("\"GESTimelineElement.asset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, asset));
@ -210,6 +215,7 @@ int main (int argc, char *argv[]) {
g_print("\"GESTrackElement.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElement, priv)); g_print("\"GESTrackElement.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElement, priv));
g_print("\"GESTrackElement.asset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElement, asset)); g_print("\"GESTrackElement.asset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElement, asset));
g_print("\"sizeof(GESTrackElementAssetClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTrackElementAssetClass)); g_print("\"sizeof(GESTrackElementAssetClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTrackElementAssetClass));
g_print("\"GESTrackElementAssetClass.get_natural_framerate\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElementAssetClass, get_natural_framerate));
g_print("\"sizeof(GESTrackElementAsset)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTrackElementAsset)); g_print("\"sizeof(GESTrackElementAsset)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTrackElementAsset));
g_print("\"GESTrackElementAsset.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElementAsset, priv)); g_print("\"GESTrackElementAsset.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTrackElementAsset, priv));
g_print("\"sizeof(GESTransitionClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTransitionClass)); g_print("\"sizeof(GESTransitionClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTransitionClass));

View file

@ -58,12 +58,14 @@ namespace AbiTester {
Console.WriteLine("\"GESBaseXmlFormatterClass.save\": \"" + GES.BaseXmlFormatter.class_abi.GetFieldOffset("save") + "\""); Console.WriteLine("\"GESBaseXmlFormatterClass.save\": \"" + GES.BaseXmlFormatter.class_abi.GetFieldOffset("save") + "\"");
Console.WriteLine("\"sizeof(GESBaseXmlFormatter)\": \"" + GES.BaseXmlFormatter.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESBaseXmlFormatter)\": \"" + GES.BaseXmlFormatter.abi_info.Size + "\"");
Console.WriteLine("\"GESBaseXmlFormatter.priv\": \"" + GES.BaseXmlFormatter.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESBaseXmlFormatter.priv\": \"" + GES.BaseXmlFormatter.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"GESBaseXmlFormatter.xmlcontent\": \"" + GES.BaseXmlFormatter.abi_info.GetFieldOffset("xmlcontent") + "\"");
Console.WriteLine("\"sizeof(GESClipClass)\": \"" + GES.Clip.class_abi.Size + "\""); Console.WriteLine("\"sizeof(GESClipClass)\": \"" + GES.Clip.class_abi.Size + "\"");
Console.WriteLine("\"GESClipClass.create_track_element\": \"" + GES.Clip.class_abi.GetFieldOffset("create_track_element") + "\""); Console.WriteLine("\"GESClipClass.create_track_element\": \"" + GES.Clip.class_abi.GetFieldOffset("create_track_element") + "\"");
Console.WriteLine("\"GESClipClass.create_track_elements\": \"" + GES.Clip.class_abi.GetFieldOffset("create_track_elements") + "\""); Console.WriteLine("\"GESClipClass.create_track_elements\": \"" + GES.Clip.class_abi.GetFieldOffset("create_track_elements") + "\"");
Console.WriteLine("\"sizeof(GESClip)\": \"" + GES.Clip.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESClip)\": \"" + GES.Clip.abi_info.Size + "\"");
Console.WriteLine("\"GESClip.priv\": \"" + GES.Clip.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESClip.priv\": \"" + GES.Clip.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GESClipAssetClass)\": \"" + GES.ClipAsset.class_abi.Size + "\""); Console.WriteLine("\"sizeof(GESClipAssetClass)\": \"" + GES.ClipAsset.class_abi.Size + "\"");
Console.WriteLine("\"GESClipAssetClass.get_natural_framerate\": \"" + GES.ClipAsset.class_abi.GetFieldOffset("get_natural_framerate") + "\"");
Console.WriteLine("\"sizeof(GESClipAsset)\": \"" + GES.ClipAsset.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESClipAsset)\": \"" + GES.ClipAsset.abi_info.Size + "\"");
Console.WriteLine("\"GESClipAsset.priv\": \"" + GES.ClipAsset.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESClipAsset.priv\": \"" + GES.ClipAsset.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GESCommandLineFormatter)\": \"" + GES.CommandLineFormatter.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESCommandLineFormatter)\": \"" + GES.CommandLineFormatter.abi_info.Size + "\"");
@ -143,6 +145,7 @@ namespace AbiTester {
Console.WriteLine("\"GESProjectClass.missing_uri\": \"" + GES.Project.class_abi.GetFieldOffset("missing_uri") + "\""); Console.WriteLine("\"GESProjectClass.missing_uri\": \"" + GES.Project.class_abi.GetFieldOffset("missing_uri") + "\"");
Console.WriteLine("\"GESProjectClass.loading_error\": \"" + GES.Project.class_abi.GetFieldOffset("loading_error") + "\""); Console.WriteLine("\"GESProjectClass.loading_error\": \"" + GES.Project.class_abi.GetFieldOffset("loading_error") + "\"");
Console.WriteLine("\"GESProjectClass.loaded\": \"" + GES.Project.class_abi.GetFieldOffset("loaded") + "\""); Console.WriteLine("\"GESProjectClass.loaded\": \"" + GES.Project.class_abi.GetFieldOffset("loaded") + "\"");
Console.WriteLine("\"GESProjectClass.loading\": \"" + GES.Project.class_abi.GetFieldOffset("loading") + "\"");
Console.WriteLine("\"sizeof(GESProject)\": \"" + GES.Project.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESProject)\": \"" + GES.Project.abi_info.Size + "\"");
Console.WriteLine("\"GESProject.priv\": \"" + GES.Project.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESProject.priv\": \"" + GES.Project.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GESSourceClass)\": \"" + GES.Source.class_abi.Size + "\""); Console.WriteLine("\"sizeof(GESSourceClass)\": \"" + GES.Source.class_abi.Size + "\"");
@ -190,6 +193,8 @@ namespace AbiTester {
Console.WriteLine("\"GESTimelineElementClass.get_track_types\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_track_types") + "\""); Console.WriteLine("\"GESTimelineElementClass.get_track_types\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_track_types") + "\"");
Console.WriteLine("\"GESTimelineElementClass.set_child_property\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("set_child_property") + "\""); Console.WriteLine("\"GESTimelineElementClass.set_child_property\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("set_child_property") + "\"");
Console.WriteLine("\"GESTimelineElementClass.get_layer_priority\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_layer_priority") + "\""); Console.WriteLine("\"GESTimelineElementClass.get_layer_priority\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_layer_priority") + "\"");
Console.WriteLine("\"GESTimelineElementClass.get_natural_framerate\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_natural_framerate") + "\"");
Console.WriteLine("\"GESTimelineElementClass.set_child_property_full\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("set_child_property_full") + "\"");
Console.WriteLine("\"sizeof(GESTimelineElement)\": \"" + GES.TimelineElement.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESTimelineElement)\": \"" + GES.TimelineElement.abi_info.Size + "\"");
Console.WriteLine("\"GESTimelineElement.parent\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("parent") + "\""); Console.WriteLine("\"GESTimelineElement.parent\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("parent") + "\"");
Console.WriteLine("\"GESTimelineElement.asset\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("asset") + "\""); Console.WriteLine("\"GESTimelineElement.asset\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("asset") + "\"");
@ -225,6 +230,7 @@ namespace AbiTester {
Console.WriteLine("\"GESTrackElement.priv\": \"" + GES.TrackElement.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESTrackElement.priv\": \"" + GES.TrackElement.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"GESTrackElement.asset\": \"" + GES.TrackElement.abi_info.GetFieldOffset("asset") + "\""); Console.WriteLine("\"GESTrackElement.asset\": \"" + GES.TrackElement.abi_info.GetFieldOffset("asset") + "\"");
Console.WriteLine("\"sizeof(GESTrackElementAssetClass)\": \"" + GES.TrackElementAsset.class_abi.Size + "\""); Console.WriteLine("\"sizeof(GESTrackElementAssetClass)\": \"" + GES.TrackElementAsset.class_abi.Size + "\"");
Console.WriteLine("\"GESTrackElementAssetClass.get_natural_framerate\": \"" + GES.TrackElementAsset.class_abi.GetFieldOffset("get_natural_framerate") + "\"");
Console.WriteLine("\"sizeof(GESTrackElementAsset)\": \"" + GES.TrackElementAsset.abi_info.Size + "\""); Console.WriteLine("\"sizeof(GESTrackElementAsset)\": \"" + GES.TrackElementAsset.abi_info.Size + "\"");
Console.WriteLine("\"GESTrackElementAsset.priv\": \"" + GES.TrackElementAsset.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"GESTrackElementAsset.priv\": \"" + GES.TrackElementAsset.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GESTransitionClass)\": \"" + GES.Transition.class_abi.Size + "\""); Console.WriteLine("\"sizeof(GESTransitionClass)\": \"" + GES.Transition.class_abi.Size + "\"");

File diff suppressed because it is too large Load diff

View file

@ -1,114 +1,125 @@
generated_sources = [ generated_sources = [
'GLib/GLibSharp.AsyncReadyCallbackNative.cs',
'GtkSharp/ObjectManager.cs',
'GES/AssetAddedHandler.cs',
'GES/Error.cs',
'GES/SourceClip.cs',
'GES/OperationClip.cs',
'GES/GroupAddedHandler.cs',
'GES/ClipAddedHandler.cs',
'GES/Clip.cs',
'GES/TrackRemovedHandler.cs',
'GES/Layer.cs',
'GES/ClipRemovedHandler.cs',
'GES/ControlBindingRemovedHandler.cs',
'GES/Global.cs',
'GES/ControlBindingAddedHandler.cs',
'GES/Pipeline.cs',
'GES/VideoUriSource.cs',
'GES/CreateTrackElementsFunc.cs',
'GES/MetaFlag.cs',
'GES/ChildRemovedHandler.cs',
'GES/Asset.cs', 'GES/Asset.cs',
'GES/ImageSource.cs', 'GES/AssetAddedHandler.cs',
'GES/LayerRemovedHandler.cs',
'GES/AssetRemovedHandler.cs',
'GES/IMetaContainer.cs',
'GES/Group.cs',
'GES/TextVAlign.cs',
'GES/SnappingEndedHandler.cs',
'GES/CreateElementForGapFunc.cs',
'GES/TransitionClip.cs',
'GES/Track.cs',
'GES/GESSharp.FormatterCanLoadURIMethodNative.cs',
'GES/BaseEffect.cs',
'GES/ChildrenControlMode.cs',
'GES/OverlayClip.cs',
'GES/ClipAsset.cs',
'GES/GESSharp.CreateTrackElementFuncNative.cs',
'GES/PitiviFormatter.cs',
'GES/AudioTestSource.cs',
'GES/UriClip.cs',
'GES/AudioTrack.cs',
'GES/Container.cs',
'GES/IExtractable.cs',
'GES/VideoTransition.cs',
'GES/GESSharp.FormatterLoadFromURIMethodNative.cs',
'GES/AudioSource.cs',
'GES/BaseXmlFormatter.cs',
'GES/AssetLoadingReturn.cs',
'GES/CreateTrackElementFunc.cs',
'GES/Timeline.cs',
'GES/FormatterCanLoadURIMethod.cs',
'GES/ExtractableCheckId.cs',
'GES/EffectClip.cs',
'GES/TestClip.cs',
'GES/TitleSource.cs',
'GES/FormatterSaveToURIMethod.cs',
'GES/LoadedHandler.cs',
'GES/Operation.cs',
'GES/VideoStandardTransitionType.cs',
'GES/GESSharp.FillTrackElementFuncNative.cs',
'GES/LayerAddedHandler.cs',
'GES/GESSharp.ExtractableCheckIdNative.cs',
'GES/Source.cs',
'GES/EditMode.cs',
'GES/AssetLoadingHandler.cs', 'GES/AssetLoadingHandler.cs',
'GES/TextHAlign.cs', 'GES/AssetLoadingReturn.cs',
'GES/TitleClip.cs', 'GES/AssetRemovedHandler.cs',
'GES/Transition.cs', 'GES/AudioSource.cs',
'GES/VideoTestSource.cs', 'GES/AudioTestSource.cs',
'GES/AudioUriSource.cs', 'GES/AudioTrack.cs',
'GES/ChildAddedHandler.cs',
'GES/TimelineElement.cs',
'GES/CommandLineFormatter.cs',
'GES/GESSharp.CreateTrackElementsFuncNative.cs',
'GES/TrackType.cs',
'GES/Project.cs',
'GES/GESSharp.CreateElementForGapFuncNative.cs',
'GES/UriSourceAsset.cs',
'GES/MetaContainerAdapter.cs',
'GES/ExtractableAdapter.cs',
'GES/XmlFormatter.cs',
'GES/TrackAddedHandler.cs',
'GES/EffectAsset.cs',
'GES/AudioTransition.cs', 'GES/AudioTransition.cs',
'GES/Formatter.cs', 'GES/AudioUriSource.cs',
'GES/SnappingStartedHandler.cs', 'GES/BaseEffect.cs',
'GES/FillTrackElementFunc.cs',
'GES/Effect.cs',
'GES/UriClipAsset.cs',
'GES/MultiFileSource.cs',
'GES/TextOverlay.cs',
'GES/VideoSource.cs',
'GES/Constants.cs',
'GES/TextOverlayClip.cs',
'GES/TrackElementRemovedHandler.cs',
'GES/FormatterLoadFromURIMethod.cs',
'GES/PipelineFlags.cs',
'GES/VideoTrack.cs',
'GES/BaseEffectClip.cs', 'GES/BaseEffectClip.cs',
'GES/BaseEffectTimeTranslationFunc.cs',
'GES/BaseTransitionClip.cs',
'GES/BaseXmlFormatter.cs',
'GES/ChildAddedHandler.cs',
'GES/ChildPropertyAddedHandler.cs',
'GES/ChildPropertyRemovedHandler.cs',
'GES/ChildRemovedHandler.cs',
'GES/ChildrenControlMode.cs',
'GES/Clip.cs',
'GES/ClipAddedHandler.cs',
'GES/ClipAsset.cs',
'GES/ClipRemovedHandler.cs',
'GES/CommandLineFormatter.cs',
'GES/Constants.cs',
'GES/Container.cs',
'GES/ControlBindingAddedHandler.cs',
'GES/ControlBindingRemovedHandler.cs',
'GES/CreateElementForGapFunc.cs',
'GES/CreateTrackElementFunc.cs',
'GES/CreateTrackElementsFunc.cs',
'GES/DeepNotifyHandler.cs',
'GES/Edge.cs',
'GES/EditMode.cs',
'GES/Effect.cs',
'GES/EffectAsset.cs',
'GES/EffectClip.cs',
'GES/Error.cs',
'GES/ExtractableAdapter.cs',
'GES/ExtractableCheckId.cs',
'GES/FillTrackElementFunc.cs',
'GES/Formatter.cs',
'GES/FormatterCanLoadURIMethod.cs',
'GES/FormatterLoadFromURIMethod.cs',
'GES/FormatterSaveToURIMethod.cs',
'GES/GESSharp.BaseEffectTimeTranslationFuncNative.cs',
'GES/GESSharp.CreateElementForGapFuncNative.cs',
'GES/GESSharp.CreateTrackElementFuncNative.cs',
'GES/GESSharp.CreateTrackElementsFuncNative.cs',
'GES/GESSharp.ExtractableCheckIdNative.cs',
'GES/GESSharp.FillTrackElementFuncNative.cs',
'GES/GESSharp.FormatterCanLoadURIMethodNative.cs',
'GES/GESSharp.FormatterLoadFromURIMethodNative.cs',
'GES/GESSharp.FormatterSaveToURIMethodNative.cs',
'GES/GESSharp.MetaForeachFuncNative.cs',
'GES/Global.cs',
'GES/Group.cs',
'GES/GroupAddedHandler.cs',
'GES/IExtractable.cs',
'GES/IMetaContainer.cs',
'GES/ImageSource.cs',
'GES/Layer.cs',
'GES/LayerAddedHandler.cs',
'GES/LayerRemovedHandler.cs',
'GES/LoadedHandler.cs',
'GES/LoadingHandler.cs',
'GES/Marker.cs',
'GES/MarkerAddedHandler.cs',
'GES/MarkerList.cs',
'GES/MarkerMovedHandler.cs',
'GES/MarkerRemovedHandler.cs',
'GES/MetaContainerAdapter.cs',
'GES/MetaFlag.cs',
'GES/MetaForeachFunc.cs',
'GES/MultiFileSource.cs',
'GES/NotifyMetaHandler.cs',
'GES/Operation.cs',
'GES/OperationClip.cs',
'GES/OverlayClip.cs',
'GES/Pipeline.cs',
'GES/PipelineFlags.cs',
'GES/PitiviFormatter.cs',
'GES/Project.cs',
'GES/SnappingEndedHandler.cs',
'GES/SnappingStartedHandler.cs',
'GES/Source.cs',
'GES/SourceClip.cs',
'GES/SourceClipAsset.cs',
'GES/TestClip.cs',
'GES/TextHAlign.cs',
'GES/TextOverlay.cs',
'GES/TextOverlayClip.cs',
'GES/TextVAlign.cs',
'GES/Timeline.cs',
'GES/TimelineElement.cs',
'GES/TitleClip.cs',
'GES/TitleSource.cs',
'GES/Track.cs',
'GES/TrackAddedHandler.cs',
'GES/TrackElement.cs', 'GES/TrackElement.cs',
'GES/TrackElementAddedHandler.cs', 'GES/TrackElementAddedHandler.cs',
'GES/BaseTransitionClip.cs',
'GES/TrackElementAsset.cs', 'GES/TrackElementAsset.cs',
'GES/TrackElementRemovedHandler.cs',
'GES/TrackRemovedHandler.cs',
'GES/TrackType.cs',
'GES/Transition.cs',
'GES/TransitionClip.cs',
'GES/UriClip.cs',
'GES/UriClipAsset.cs',
'GES/UriSourceAsset.cs',
'GES/VideoSource.cs',
'GES/VideoStandardTransitionType.cs',
'GES/VideoTestPattern.cs', 'GES/VideoTestPattern.cs',
'GES/Edge.cs', 'GES/VideoTestSource.cs',
'GES/GESSharp.FormatterSaveToURIMethodNative.cs', 'GES/VideoTrack.cs',
'GES/DeepNotifyHandler.cs', 'GES/VideoTransition.cs',
'GES/MetaForeachFunc.cs', 'GES/VideoUriSource.cs',
'GES/GESSharp.MetaForeachFuncNative.cs', 'GES/XmlFormatter.cs',
'GES/NotifyMetaHandler.cs', 'GLib/GLibSharp.AsyncReadyCallbackNative.cs',
'GtkSharp/ObjectManager.cs',
] ]
run_target('update_ges_code', run_target('update_ges_code',

File diff suppressed because it is too large Load diff

View file

@ -45,6 +45,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
</union> </union>
</add-node> </add-node>
<add-node path="/api/namespace/object/class_struct[@cname='GESTrackElementClass']">
<union name="ABI" cname="ABI">
<struct name="abi" cname="abi" opaque="false" hidden="false">
</struct>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20"/>
</union>
</add-node>
<add-node path="/api/namespace/object/class_struct[@cname='GESClipClass']">
<union name="ABI" cname="ABI">
<struct name="abi" cname="abi" opaque="false" hidden="false">
</struct>
<field cname="_gst_reserved" access="private" writeable="false" readable="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20"/>
</union>
</add-node>
<!-- Mark reserved fields as padding --> <!-- Mark reserved fields as padding -->
<attr path="//*[contains(@cname, 'ges_reserved')]" name="padding">true</attr> <attr path="//*[contains(@cname, 'ges_reserved')]" name="padding">true</attr>
</metadata> </metadata>

File diff suppressed because it is too large Load diff