mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
1091 lines
39 KiB
C#
1091 lines
39 KiB
C#
// 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 Layer : GLib.InitiallyUnowned, GES.IExtractable, GES.IMetaContainer {
|
|
|
|
public Layer (IntPtr raw) : base(raw) {}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_layer_new();
|
|
|
|
public Layer () : base (IntPtr.Zero)
|
|
{
|
|
if (GetType () != typeof (Layer)) {
|
|
CreateNativeObject (new string [0], new GLib.Value[0]);
|
|
return;
|
|
}
|
|
Raw = ges_layer_new();
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern bool ges_layer_get_auto_transition(IntPtr raw);
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern void ges_layer_set_auto_transition(IntPtr raw, bool auto_transition);
|
|
|
|
[GLib.Property ("auto-transition")]
|
|
public bool AutoTransition {
|
|
get {
|
|
bool raw_ret = ges_layer_get_auto_transition(Handle);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|
|
set {
|
|
ges_layer_set_auto_transition(Handle, value);
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern uint ges_layer_get_priority(IntPtr raw);
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern void ges_layer_set_priority(IntPtr raw, uint priority);
|
|
|
|
[Obsolete]
|
|
[GLib.Property ("priority")]
|
|
public uint Priority {
|
|
get {
|
|
uint raw_ret = ges_layer_get_priority(Handle);
|
|
uint ret = raw_ret;
|
|
return ret;
|
|
}
|
|
set {
|
|
ges_layer_set_priority(Handle, value);
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_layer_get_timeline(IntPtr raw);
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern void ges_layer_set_timeline(IntPtr raw, IntPtr timeline);
|
|
|
|
public GES.Timeline Timeline {
|
|
get {
|
|
IntPtr raw_ret = ges_layer_get_timeline(Handle);
|
|
GES.Timeline ret = GLib.Object.GetObject(raw_ret) as GES.Timeline;
|
|
return ret;
|
|
}
|
|
set {
|
|
ges_layer_set_timeline(Handle, value == null ? IntPtr.Zero : value.Handle);
|
|
}
|
|
}
|
|
|
|
public uint MinNlePriority {
|
|
get {
|
|
unsafe {
|
|
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("min_nle_priority"));
|
|
return (*raw_ptr);
|
|
}
|
|
}
|
|
}
|
|
|
|
public uint MaxNlePriority {
|
|
get {
|
|
unsafe {
|
|
uint* raw_ptr = (uint*)(((byte*)Handle) + abi_info.GetFieldOffset("max_nle_priority"));
|
|
return (*raw_ptr);
|
|
}
|
|
}
|
|
}
|
|
|
|
[GLib.Signal("clip-removed")]
|
|
public event GES.ClipRemovedHandler ClipRemoved {
|
|
add {
|
|
this.AddSignalHandler ("clip-removed", value, typeof (GES.ClipRemovedArgs));
|
|
}
|
|
remove {
|
|
this.RemoveSignalHandler ("clip-removed", value);
|
|
}
|
|
}
|
|
|
|
[GLib.Signal("clip-added")]
|
|
public event GES.ClipAddedHandler ClipAdded {
|
|
add {
|
|
this.AddSignalHandler ("clip-added", value, typeof (GES.ClipAddedArgs));
|
|
}
|
|
remove {
|
|
this.RemoveSignalHandler ("clip-added", value);
|
|
}
|
|
}
|
|
|
|
static ClipAddedNativeDelegate ClipAdded_cb_delegate;
|
|
static ClipAddedNativeDelegate ClipAddedVMCallback {
|
|
get {
|
|
if (ClipAdded_cb_delegate == null)
|
|
ClipAdded_cb_delegate = new ClipAddedNativeDelegate (ClipAdded_cb);
|
|
return ClipAdded_cb_delegate;
|
|
}
|
|
}
|
|
|
|
static void OverrideClipAdded (GLib.GType gtype)
|
|
{
|
|
OverrideClipAdded (gtype, ClipAddedVMCallback);
|
|
}
|
|
|
|
static void OverrideClipAdded (GLib.GType gtype, ClipAddedNativeDelegate callback)
|
|
{
|
|
OverrideVirtualMethod (gtype, "clip-added", callback);
|
|
}
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void ClipAddedNativeDelegate (IntPtr inst, IntPtr clip);
|
|
|
|
static void ClipAdded_cb (IntPtr inst, IntPtr clip)
|
|
{
|
|
try {
|
|
Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
|
|
__obj.OnClipAdded (GLib.Object.GetObject(clip) as GES.Clip);
|
|
} catch (Exception e) {
|
|
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
|
}
|
|
}
|
|
|
|
[GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideClipAdded")]
|
|
protected virtual void OnClipAdded (GES.Clip clip)
|
|
{
|
|
InternalClipAdded (clip);
|
|
}
|
|
|
|
private void InternalClipAdded (GES.Clip clip)
|
|
{
|
|
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 (clip);
|
|
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 ();
|
|
}
|
|
|
|
static ClipRemovedNativeDelegate ClipRemoved_cb_delegate;
|
|
static ClipRemovedNativeDelegate ClipRemovedVMCallback {
|
|
get {
|
|
if (ClipRemoved_cb_delegate == null)
|
|
ClipRemoved_cb_delegate = new ClipRemovedNativeDelegate (ClipRemoved_cb);
|
|
return ClipRemoved_cb_delegate;
|
|
}
|
|
}
|
|
|
|
static void OverrideClipRemoved (GLib.GType gtype)
|
|
{
|
|
OverrideClipRemoved (gtype, ClipRemovedVMCallback);
|
|
}
|
|
|
|
static void OverrideClipRemoved (GLib.GType gtype, ClipRemovedNativeDelegate callback)
|
|
{
|
|
OverrideVirtualMethod (gtype, "clip-removed", callback);
|
|
}
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void ClipRemovedNativeDelegate (IntPtr inst, IntPtr clip);
|
|
|
|
static void ClipRemoved_cb (IntPtr inst, IntPtr clip)
|
|
{
|
|
try {
|
|
Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
|
|
__obj.OnClipRemoved (GLib.Object.GetObject(clip) as GES.Clip);
|
|
} catch (Exception e) {
|
|
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
|
}
|
|
}
|
|
|
|
[GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideClipRemoved")]
|
|
protected virtual void OnClipRemoved (GES.Clip clip)
|
|
{
|
|
InternalClipRemoved (clip);
|
|
}
|
|
|
|
private void InternalClipRemoved (GES.Clip clip)
|
|
{
|
|
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 (clip);
|
|
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 ();
|
|
}
|
|
|
|
static ObjectAddedNativeDelegate ObjectAdded_cb_delegate;
|
|
static ObjectAddedNativeDelegate ObjectAddedVMCallback {
|
|
get {
|
|
if (ObjectAdded_cb_delegate == null)
|
|
ObjectAdded_cb_delegate = new ObjectAddedNativeDelegate (ObjectAdded_cb);
|
|
return ObjectAdded_cb_delegate;
|
|
}
|
|
}
|
|
|
|
static void OverrideObjectAdded (GLib.GType gtype)
|
|
{
|
|
OverrideObjectAdded (gtype, ObjectAddedVMCallback);
|
|
}
|
|
|
|
static void OverrideObjectAdded (GLib.GType gtype, ObjectAddedNativeDelegate callback)
|
|
{
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("object_added"));
|
|
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void ObjectAddedNativeDelegate (IntPtr inst, IntPtr _object);
|
|
|
|
static void ObjectAdded_cb (IntPtr inst, IntPtr _object)
|
|
{
|
|
try {
|
|
Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
|
|
__obj.OnObjectAdded (GLib.Object.GetObject(_object) as GES.Clip);
|
|
} catch (Exception e) {
|
|
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
|
}
|
|
}
|
|
|
|
[GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideObjectAdded")]
|
|
protected virtual void OnObjectAdded (GES.Clip _object)
|
|
{
|
|
InternalObjectAdded (_object);
|
|
}
|
|
|
|
private void InternalObjectAdded (GES.Clip _object)
|
|
{
|
|
ObjectAddedNativeDelegate unmanaged = null;
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("object_added"));
|
|
unmanaged = (ObjectAddedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ObjectAddedNativeDelegate));
|
|
}
|
|
if (unmanaged == null) return;
|
|
|
|
unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
|
|
}
|
|
|
|
static ObjectRemovedNativeDelegate ObjectRemoved_cb_delegate;
|
|
static ObjectRemovedNativeDelegate ObjectRemovedVMCallback {
|
|
get {
|
|
if (ObjectRemoved_cb_delegate == null)
|
|
ObjectRemoved_cb_delegate = new ObjectRemovedNativeDelegate (ObjectRemoved_cb);
|
|
return ObjectRemoved_cb_delegate;
|
|
}
|
|
}
|
|
|
|
static void OverrideObjectRemoved (GLib.GType gtype)
|
|
{
|
|
OverrideObjectRemoved (gtype, ObjectRemovedVMCallback);
|
|
}
|
|
|
|
static void OverrideObjectRemoved (GLib.GType gtype, ObjectRemovedNativeDelegate callback)
|
|
{
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("object_removed"));
|
|
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
|
|
}
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate void ObjectRemovedNativeDelegate (IntPtr inst, IntPtr _object);
|
|
|
|
static void ObjectRemoved_cb (IntPtr inst, IntPtr _object)
|
|
{
|
|
try {
|
|
Layer __obj = GLib.Object.GetObject (inst, false) as Layer;
|
|
__obj.OnObjectRemoved (GLib.Object.GetObject(_object) as GES.Clip);
|
|
} catch (Exception e) {
|
|
GLib.ExceptionManager.RaiseUnhandledException (e, false);
|
|
}
|
|
}
|
|
|
|
[GLib.DefaultSignalHandler(Type=typeof(GES.Layer), ConnectionMethod="OverrideObjectRemoved")]
|
|
protected virtual void OnObjectRemoved (GES.Clip _object)
|
|
{
|
|
InternalObjectRemoved (_object);
|
|
}
|
|
|
|
private void InternalObjectRemoved (GES.Clip _object)
|
|
{
|
|
ObjectRemovedNativeDelegate unmanaged = null;
|
|
unsafe {
|
|
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("object_removed"));
|
|
unmanaged = (ObjectRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ObjectRemovedNativeDelegate));
|
|
}
|
|
if (unmanaged == null) return;
|
|
|
|
unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
|
|
}
|
|
|
|
|
|
// 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 (new List<GLib.AbiField>{
|
|
new GLib.AbiField("get_objects"
|
|
, GLib.Object.class_abi.Fields
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_objects
|
|
, null
|
|
, "object_added"
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
new GLib.AbiField("object_added"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) // object_added
|
|
, "get_objects"
|
|
, "object_removed"
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
new GLib.AbiField("object_removed"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) // object_removed
|
|
, "object_added"
|
|
, "_ges_reserved"
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
new GLib.AbiField("_ges_reserved"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
|
|
, "object_removed"
|
|
, null
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
});
|
|
|
|
return _class_abi;
|
|
}
|
|
}
|
|
|
|
|
|
// End of the ABI representation.
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_layer_get_type();
|
|
|
|
public static new GLib.GType GType {
|
|
get {
|
|
IntPtr raw_ret = ges_layer_get_type();
|
|
GLib.GType ret = new GLib.GType(raw_ret);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_layer_add_asset(IntPtr raw, IntPtr asset, ulong start, ulong inpoint, ulong duration, int track_types);
|
|
|
|
public GES.Clip AddAsset(GES.Asset asset, ulong start, ulong inpoint, ulong duration, GES.TrackType track_types) {
|
|
IntPtr raw_ret = ges_layer_add_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle, start, inpoint, duration, (int) track_types);
|
|
GES.Clip ret = GLib.Object.GetObject(raw_ret) as GES.Clip;
|
|
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)]
|
|
static extern bool ges_layer_add_clip(IntPtr raw, IntPtr clip);
|
|
|
|
public bool AddClip(GES.Clip clip) {
|
|
bool raw_ret = ges_layer_add_clip(Handle, clip == null ? IntPtr.Zero : clip.Handle);
|
|
bool ret = raw_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)]
|
|
static extern IntPtr ges_layer_get_clips(IntPtr raw);
|
|
|
|
public GES.Clip[] Clips {
|
|
get {
|
|
IntPtr raw_ret = ges_layer_get_clips(Handle);
|
|
GES.Clip[] ret = (GES.Clip[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Clip));
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_layer_get_clips_in_interval(IntPtr raw, ulong start, ulong end);
|
|
|
|
public GES.Clip[] GetClipsInInterval(ulong start, ulong end) {
|
|
IntPtr raw_ret = ges_layer_get_clips_in_interval(Handle, start, end);
|
|
GES.Clip[] ret = (GES.Clip[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(GES.Clip));
|
|
return ret;
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern ulong ges_layer_get_duration(IntPtr raw);
|
|
|
|
public ulong Duration {
|
|
get {
|
|
ulong raw_ret = ges_layer_get_duration(Handle);
|
|
ulong ret = raw_ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern bool ges_layer_is_empty(IntPtr raw);
|
|
|
|
public bool IsEmpty {
|
|
get {
|
|
bool raw_ret = ges_layer_is_empty(Handle);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern bool ges_layer_remove_clip(IntPtr raw, IntPtr clip);
|
|
|
|
public bool RemoveClip(GES.Clip clip) {
|
|
bool raw_ret = ges_layer_remove_clip(Handle, clip == null ? IntPtr.Zero : clip.Handle);
|
|
bool ret = raw_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)]
|
|
static extern IntPtr ges_extractable_get_asset(IntPtr raw);
|
|
|
|
public GES.Asset Asset {
|
|
get {
|
|
IntPtr raw_ret = ges_extractable_get_asset(Handle);
|
|
GES.Asset ret = GLib.Object.GetObject(raw_ret) as GES.Asset;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern IntPtr ges_extractable_get_id(IntPtr raw);
|
|
|
|
public string Id {
|
|
get {
|
|
IntPtr raw_ret = ges_extractable_get_id(Handle);
|
|
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)]
|
|
static extern bool ges_extractable_set_asset(IntPtr raw, IntPtr asset);
|
|
|
|
public bool SetAsset(GES.Asset asset) {
|
|
bool raw_ret = ges_extractable_set_asset(Handle, asset == null ? IntPtr.Zero : asset.Handle);
|
|
bool ret = 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.Layer __obj = GLib.Object.GetObject (inst, false) as GES.Layer;
|
|
__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.Layer), 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 Layer ()
|
|
{
|
|
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 (new List<GLib.AbiField>{
|
|
new GLib.AbiField("timeline"
|
|
, GLib.Object.abi_info.Fields
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) // timeline
|
|
, null
|
|
, "min_nle_priority"
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
new GLib.AbiField("min_nle_priority"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(uint)) // min_nle_priority
|
|
, "timeline"
|
|
, "max_nle_priority"
|
|
, (long) Marshal.OffsetOf(typeof(GESLayer_min_nle_priorityAlign), "min_nle_priority")
|
|
, 0
|
|
),
|
|
new GLib.AbiField("max_nle_priority"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(uint)) // max_nle_priority
|
|
, "min_nle_priority"
|
|
, "priv"
|
|
, (long) Marshal.OffsetOf(typeof(GESLayer_max_nle_priorityAlign), "max_nle_priority")
|
|
, 0
|
|
),
|
|
new GLib.AbiField("priv"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
|
|
, "max_nle_priority"
|
|
, "_ges_reserved"
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
new GLib.AbiField("_ges_reserved"
|
|
, -1
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _ges_reserved
|
|
, "priv"
|
|
, null
|
|
, (uint) Marshal.SizeOf(typeof(IntPtr))
|
|
, 0
|
|
),
|
|
});
|
|
|
|
return _abi_info;
|
|
}
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct GESLayer_min_nle_priorityAlign
|
|
{
|
|
sbyte f1;
|
|
private uint min_nle_priority;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct GESLayer_max_nle_priorityAlign
|
|
{
|
|
sbyte f1;
|
|
private uint max_nle_priority;
|
|
}
|
|
|
|
|
|
// End of the ABI representation.
|
|
|
|
#endregion
|
|
}
|
|
}
|