diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2018-03-11 12:28:57 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-03-11 21:23:12 -0300 |
commit | f9044e93e160b0f9a0cf86d8bc93a58665ec60cd (patch) | |
tree | d1d039913cbeb87a6871f3b90ec20cee54c38a9b /sources | |
parent | 422875b2761203555a18568a83d61e9aedc3b077 (diff) |
Update to 1.13.90
* Hide new GstAudioAggregator for now (needs some work)
* Fix the GstAudioInfo.SetFormat API and its use in the samples (it was plain broken
and fixes in the annotation fixed it)
Diffstat (limited to 'sources')
32 files changed, 795 insertions, 275 deletions
diff --git a/sources/generated/Gst.Audio_AudioConverter.cs b/sources/generated/Gst.Audio_AudioConverter.cs index a9bce48..f0c732c 100644 --- a/sources/generated/Gst.Audio_AudioConverter.cs +++ b/sources/generated/Gst.Audio_AudioConverter.cs @@ -9,14 +9,49 @@ namespace Gst.Audio { using System.Runtime.InteropServices; #region Autogenerated code - public partial class AudioConverter : GLib.Opaque { + [StructLayout(LayoutKind.Sequential)] + public partial struct AudioConverter : IEquatable<AudioConverter> { + + + public static Gst.Audio.AudioConverter Zero = new Gst.Audio.AudioConverter (); + + public static Gst.Audio.AudioConverter New(IntPtr raw) { + if (raw == IntPtr.Zero) + return Gst.Audio.AudioConverter.Zero; + return (Gst.Audio.AudioConverter) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioConverter)); + } + + [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr gst_audio_converter_new(int flags, IntPtr in_info, IntPtr out_info, IntPtr config); + + public static AudioConverter New(Gst.Audio.AudioConverterFlags flags, Gst.Audio.AudioInfo in_info, Gst.Audio.AudioInfo out_info, Gst.Structure config) + { + config.Owned = false; + AudioConverter result = AudioConverter.New (gst_audio_converter_new((int) flags, in_info == null ? IntPtr.Zero : in_info.Handle, out_info == null ? IntPtr.Zero : out_info.Handle, config == null ? IntPtr.Zero : config.Handle)); + return result; + } + + [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr gst_audio_converter_get_type(); + + public static GLib.GType GType { + get { + IntPtr raw_ret = gst_audio_converter_get_type(); + GLib.GType ret = new GLib.GType(raw_ret); + return ret; + } + } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_audio_converter_get_config(IntPtr raw, int in_rate, int out_rate); public Gst.Structure GetConfig(int in_rate, int out_rate) { - IntPtr raw_ret = gst_audio_converter_get_config(Handle, in_rate, out_rate); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + IntPtr raw_ret = gst_audio_converter_get_config(this_as_native, in_rate, out_rate); Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false); + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -24,8 +59,12 @@ namespace Gst.Audio { static extern UIntPtr gst_audio_converter_get_in_frames(IntPtr raw, UIntPtr out_frames); public ulong GetInFrames(ulong out_frames) { - UIntPtr raw_ret = gst_audio_converter_get_in_frames(Handle, new UIntPtr (out_frames)); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + UIntPtr raw_ret = gst_audio_converter_get_in_frames(this_as_native, new UIntPtr (out_frames)); ulong ret = (ulong) raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -34,8 +73,12 @@ namespace Gst.Audio { public ulong MaxLatency { get { - UIntPtr raw_ret = gst_audio_converter_get_max_latency(Handle); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + UIntPtr raw_ret = gst_audio_converter_get_max_latency(this_as_native); ulong ret = (ulong) raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } } @@ -44,8 +87,12 @@ namespace Gst.Audio { static extern UIntPtr gst_audio_converter_get_out_frames(IntPtr raw, UIntPtr in_frames); public ulong GetOutFrames(ulong in_frames) { - UIntPtr raw_ret = gst_audio_converter_get_out_frames(Handle, new UIntPtr (in_frames)); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + UIntPtr raw_ret = gst_audio_converter_get_out_frames(this_as_native, new UIntPtr (in_frames)); ulong ret = (ulong) raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -53,15 +100,23 @@ namespace Gst.Audio { static extern void gst_audio_converter_reset(IntPtr raw); public void Reset() { - gst_audio_converter_reset(Handle); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + gst_audio_converter_reset(this_as_native); + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_audio_converter_samples(IntPtr raw, int flags, IntPtr in_param, UIntPtr in_frames, IntPtr out_param, UIntPtr out_frames); public bool Samples(Gst.Audio.AudioConverterFlags flags, IntPtr in_param, ulong in_frames, IntPtr out_param, ulong out_frames) { - bool raw_ret = gst_audio_converter_samples(Handle, (int) flags, in_param, new UIntPtr (in_frames), out_param, new UIntPtr (out_frames)); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + bool raw_ret = gst_audio_converter_samples(this_as_native, (int) flags, in_param, new UIntPtr (in_frames), out_param, new UIntPtr (out_frames)); bool ret = raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -73,8 +128,12 @@ namespace Gst.Audio { static extern bool gst_audio_converter_supports_inplace(IntPtr raw); public bool SupportsInplace() { - bool raw_ret = gst_audio_converter_supports_inplace(Handle); + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + bool raw_ret = gst_audio_converter_supports_inplace(this_as_native); bool ret = raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -82,9 +141,13 @@ namespace Gst.Audio { static extern bool gst_audio_converter_update_config(IntPtr raw, int in_rate, int out_rate, IntPtr config); public bool UpdateConfig(int in_rate, int out_rate, Gst.Structure config) { + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); config.Owned = false; - bool raw_ret = gst_audio_converter_update_config(Handle, in_rate, out_rate, config == null ? IntPtr.Zero : config.Handle); + bool raw_ret = gst_audio_converter_update_config(this_as_native, in_rate, out_rate, config == null ? IntPtr.Zero : config.Handle); bool ret = raw_ret; + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); return ret; } @@ -92,55 +155,38 @@ namespace Gst.Audio { return UpdateConfig (in_rate, out_rate, null); } - public AudioConverter(IntPtr raw) : base(raw) {} - - [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_audio_converter_free(IntPtr raw); - - protected override void Free (IntPtr raw) + static void ReadNative (IntPtr native, ref Gst.Audio.AudioConverter target) { - gst_audio_converter_free (raw); + target = New (native); } - class FinalizerInfo { - IntPtr handle; - - public FinalizerInfo (IntPtr handle) - { - this.handle = handle; - } - - public bool Handler () - { - gst_audio_converter_free (handle); - return false; - } + public bool Equals (AudioConverter other) + { + return true; } - ~AudioConverter () + public override bool Equals (object other) { - if (!Owned) - return; - FinalizerInfo info = new FinalizerInfo (Handle); - GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler)); + return other is AudioConverter && Equals ((AudioConverter) other); } - - // Internal representation of the wrapped structure ABI. - static GLib.AbiStruct _abi_info = null; - static public GLib.AbiStruct abi_info { - get { - if (_abi_info == null) - _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ - }); - - return _abi_info; - } + public override int GetHashCode () + { + return this.GetType ().FullName.GetHashCode (); } + public static explicit operator GLib.Value (Gst.Audio.AudioConverter boxed) + { + GLib.Value val = GLib.Value.Empty; + val.Init (Gst.Audio.AudioConverter.GType); + val.Val = boxed; + return val; + } - // End of the ABI representation. - + public static explicit operator Gst.Audio.AudioConverter (GLib.Value val) + { + return (Gst.Audio.AudioConverter) val.Val; + } #endregion } } diff --git a/sources/generated/Gst.Audio_AudioInfo.cs b/sources/generated/Gst.Audio_AudioInfo.cs index 62977c4..0a234ef 100644 --- a/sources/generated/Gst.Audio_AudioInfo.cs +++ b/sources/generated/Gst.Audio_AudioInfo.cs @@ -156,10 +156,18 @@ namespace Gst.Audio { } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_audio_info_set_format(IntPtr raw, int format, int rate, int channels, int position); + static extern void gst_audio_info_set_format(IntPtr raw, int format, int rate, int channels, int[] position); + + public void SetFormat(Gst.Audio.AudioFormat format, int rate, int channels, Gst.Audio.AudioChannelPosition[] position) { + int cnt_position = position == null ? 0 : position.Length; + int[] native_position = new int [cnt_position]; + for (int i = 0; i < cnt_position; i++) + native_position [i] = (int) position[i]; + gst_audio_info_set_format(Handle, (int) format, rate, channels, native_position); + } - public void SetFormat(Gst.Audio.AudioFormat format, int rate, int channels, Gst.Audio.AudioChannelPosition position) { - gst_audio_info_set_format(Handle, (int) format, rate, channels, (int) position); + public void SetFormat(Gst.Audio.AudioFormat format, int rate, int channels) { + SetFormat (format, rate, channels, null); } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] diff --git a/sources/generated/Gst.Base_Aggregator.cs b/sources/generated/Gst.Base_Aggregator.cs index bffa325..df92bde 100644 --- a/sources/generated/Gst.Base_Aggregator.cs +++ b/sources/generated/Gst.Base_Aggregator.cs @@ -59,15 +59,6 @@ namespace Gst.Base { } } - public Gst.Segment Segment { - get { - unsafe { - IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("segment")); - return Gst.Segment.New ((*raw_ptr)); - } - } - } - static FlushNativeDelegate Flush_cb_delegate; static FlushNativeDelegate FlushVMCallback { get { @@ -1299,22 +1290,14 @@ namespace Gst.Base { , Gst.Element.abi_info.Fields , (uint) Marshal.SizeOf(typeof(IntPtr)) // srcpad , null - , "segment" - , (uint) Marshal.SizeOf(typeof(IntPtr)) - , 0 - ), - new GLib.AbiField("segment" - , -1 - , (uint) Marshal.SizeOf(typeof(Gst.Segment)) // segment - , "srcpad" , "priv" - , (long) Marshal.OffsetOf(typeof(GstAggregator_segmentAlign), "segment") + , (uint) Marshal.SizeOf(typeof(IntPtr)) , 0 ), new GLib.AbiField("priv" , -1 , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv - , "segment" + , "srcpad" , "_gst_reserved" , (uint) Marshal.SizeOf(typeof(IntPtr)) , 0 @@ -1333,13 +1316,6 @@ namespace Gst.Base { } } - [StructLayout(LayoutKind.Sequential)] - public struct GstAggregator_segmentAlign - { - sbyte f1; - private Gst.Segment segment; - } - // End of the ABI representation. diff --git a/sources/generated/Gst.Base_BaseTransform.cs b/sources/generated/Gst.Base_BaseTransform.cs index 8c8a5b7..04f7410 100644 --- a/sources/generated/Gst.Base_BaseTransform.cs +++ b/sources/generated/Gst.Base_BaseTransform.cs @@ -565,14 +565,16 @@ namespace Gst.Base { } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate bool TransformSizeNativeDelegate (IntPtr inst, int direction, IntPtr caps, UIntPtr size, IntPtr othercaps, UIntPtr othersize); + delegate bool TransformSizeNativeDelegate (IntPtr inst, int direction, IntPtr caps, UIntPtr size, IntPtr othercaps, out UIntPtr othersize); - static bool TransformSize_cb (IntPtr inst, int direction, IntPtr caps, UIntPtr size, IntPtr othercaps, UIntPtr othersize) + static bool TransformSize_cb (IntPtr inst, int direction, IntPtr caps, UIntPtr size, IntPtr othercaps, out UIntPtr othersize) { try { BaseTransform __obj = GLib.Object.GetObject (inst, false) as BaseTransform; bool __result; - __result = __obj.OnTransformSize ((Gst.PadDirection) direction, caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (caps, typeof (Gst.Caps), false), (ulong) size, othercaps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (othercaps, typeof (Gst.Caps), false), (ulong) othersize); + ulong myothersize; + __result = __obj.OnTransformSize ((Gst.PadDirection) direction, caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (caps, typeof (Gst.Caps), false), (ulong) size, othercaps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (othercaps, typeof (Gst.Caps), false), out myothersize); + othersize = new UIntPtr (myothersize); return __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); @@ -582,21 +584,23 @@ namespace Gst.Base { } [GLib.DefaultSignalHandler(Type=typeof(Gst.Base.BaseTransform), ConnectionMethod="OverrideTransformSize")] - protected virtual bool OnTransformSize (Gst.PadDirection direction, Gst.Caps caps, ulong size, Gst.Caps othercaps, ulong othersize) + protected virtual bool OnTransformSize (Gst.PadDirection direction, Gst.Caps caps, ulong size, Gst.Caps othercaps, out ulong othersize) { - return InternalTransformSize (direction, caps, size, othercaps, othersize); + return InternalTransformSize (direction, caps, size, othercaps, out othersize); } - private bool InternalTransformSize (Gst.PadDirection direction, Gst.Caps caps, ulong size, Gst.Caps othercaps, ulong othersize) + private bool InternalTransformSize (Gst.PadDirection direction, Gst.Caps caps, ulong size, Gst.Caps othercaps, out ulong othersize) { TransformSizeNativeDelegate unmanaged = null; unsafe { IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("transform_size")); unmanaged = (TransformSizeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(TransformSizeNativeDelegate)); } - if (unmanaged == null) return false; + if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke"); - bool __result = unmanaged (this.Handle, (int) direction, caps == null ? IntPtr.Zero : caps.Handle, new UIntPtr (size), othercaps == null ? IntPtr.Zero : othercaps.Handle, new UIntPtr (othersize)); + UIntPtr native_othersize; + bool __result = unmanaged (this.Handle, (int) direction, caps == null ? IntPtr.Zero : caps.Handle, new UIntPtr (size), othercaps == null ? IntPtr.Zero : othercaps.Handle, out native_othersize); + othersize = (ulong) native_othersize; return __result; } @@ -623,14 +627,16 @@ namespace Gst.Base { } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate bool GetUnitSizeNativeDelegate (IntPtr inst, IntPtr caps, UIntPtr size); + delegate bool GetUnitSizeNativeDelegate (IntPtr inst, IntPtr caps, out UIntPtr size); - static bool GetUnitSize_cb (IntPtr inst, IntPtr caps, UIntPtr size) + static bool GetUnitSize_cb (IntPtr inst, IntPtr caps, out UIntPtr size) { try { BaseTransform __obj = GLib.Object.GetObject (inst, false) as BaseTransform; bool __result; - __result = __obj.OnGetUnitSize (caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (caps, typeof (Gst.Caps), false), (ulong) size); + ulong mysize; + __result = __obj.OnGetUnitSize (caps == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (caps, typeof (Gst.Caps), false), out mysize); + size = new UIntPtr (mysize); return __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); @@ -640,21 +646,23 @@ namespace Gst.Base { } [GLib.DefaultSignalHandler(Type=typeof(Gst.Base.BaseTransform), ConnectionMethod="OverrideGetUnitSize")] - protected virtual bool OnGetUnitSize (Gst.Caps caps, ulong size) + protected virtual bool OnGetUnitSize (Gst.Caps caps, out ulong size) { - return InternalGetUnitSize (caps, size); + return InternalGetUnitSize (caps, out size); } - private bool InternalGetUnitSize (Gst.Caps caps, ulong size) + private bool InternalGetUnitSize (Gst.Caps caps, out ulong size) { GetUnitSizeNativeDelegate unmanaged = null; unsafe { IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_unit_size")); unmanaged = (GetUnitSizeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetUnitSizeNativeDelegate)); } - if (unmanaged == null) return false; + if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke"); - bool __result = unmanaged (this.Handle, caps == null ? IntPtr.Zero : caps.Handle, new UIntPtr (size)); + UIntPtr native_size; + bool __result = unmanaged (this.Handle, caps == null ? IntPtr.Zero : caps.Handle, out native_size); + size = (ulong) native_size; return __result; } @@ -913,14 +921,16 @@ namespace Gst.Base { } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate int PrepareOutputBufferNativeDelegate (IntPtr inst, IntPtr input, IntPtr outbuf); + delegate int PrepareOutputBufferNativeDelegate (IntPtr inst, IntPtr input, out IntPtr outbuf); - static int PrepareOutputBuffer_cb (IntPtr inst, IntPtr input, IntPtr outbuf) + static int PrepareOutputBuffer_cb (IntPtr inst, IntPtr input, out IntPtr outbuf) { try { BaseTransform __obj = GLib.Object.GetObject (inst, false) as BaseTransform; Gst.FlowReturn __result; - __result = __obj.OnPrepareOutputBuffer (input == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (input, typeof (Gst.Buffer), false), outbuf == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (outbuf, typeof (Gst.Buffer), false)); + Gst.Buffer myoutbuf; + __result = __obj.OnPrepareOutputBuffer (input == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (input, typeof (Gst.Buffer), false), out myoutbuf); + outbuf = myoutbuf == null ? IntPtr.Zero : myoutbuf.Handle; return (int) __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); @@ -930,21 +940,23 @@ namespace Gst.Base { } [GLib.DefaultSignalHandler(Type=typeof(Gst.Base.BaseTransform), ConnectionMethod="OverridePrepareOutputBuffer")] - protected virtual Gst.FlowReturn OnPrepareOutputBuffer (Gst.Buffer input, Gst.Buffer outbuf) + protected virtual Gst.FlowReturn OnPrepareOutputBuffer (Gst.Buffer input, out Gst.Buffer outbuf) { - return InternalPrepareOutputBuffer (input, outbuf); + return InternalPrepareOutputBuffer (input, out outbuf); } - private Gst.FlowReturn InternalPrepareOutputBuffer (Gst.Buffer input, Gst.Buffer outbuf) + private Gst.FlowReturn InternalPrepareOutputBuffer (Gst.Buffer input, out Gst.Buffer outbuf) { PrepareOutputBufferNativeDelegate unmanaged = null; unsafe { IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("prepare_output_buffer")); unmanaged = (PrepareOutputBufferNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PrepareOutputBufferNativeDelegate)); } - if (unmanaged == null) return (Gst.FlowReturn) 0; + if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke"); - int __result = unmanaged (this.Handle, input == null ? IntPtr.Zero : input.Handle, outbuf == null ? IntPtr.Zero : outbuf.Handle); + IntPtr native_outbuf; + int __result = unmanaged (this.Handle, input == null ? IntPtr.Zero : input.Handle, out native_outbuf); + outbuf = native_outbuf == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_outbuf, typeof (Gst.Buffer), true); return (Gst.FlowReturn) __result; } @@ -1316,14 +1328,16 @@ namespace Gst.Base { } [UnmanagedFunctionPointer (CallingConvention.Cdecl)] - delegate int GenerateOutputNativeDelegate (IntPtr inst, IntPtr outbuf); + delegate int GenerateOutputNativeDelegate (IntPtr inst, out IntPtr outbuf); - static int GenerateOutput_cb (IntPtr inst, IntPtr outbuf) + static int GenerateOutput_cb (IntPtr inst, out IntPtr outbuf) { try { BaseTransform __obj = GLib.Object.GetObject (inst, false) as BaseTransform; Gst.FlowReturn __result; - __result = __obj.OnGenerateOutput (outbuf == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (outbuf, typeof (Gst.Buffer), false)); + Gst.Buffer myoutbuf; + __result = __obj.OnGenerateOutput (out myoutbuf); + outbuf = myoutbuf == null ? IntPtr.Zero : myoutbuf.Handle; return (int) __result; } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, true); @@ -1333,21 +1347,23 @@ namespace Gst.Base { } [GLib.DefaultSignalHandler(Type=typeof(Gst.Base.BaseTransform), ConnectionMethod="OverrideGenerateOutput")] - protected virtual Gst.FlowReturn OnGenerateOutput (Gst.Buffer outbuf) + protected virtual Gst.FlowReturn OnGenerateOutput (out Gst.Buffer outbuf) { - return InternalGenerateOutput (outbuf); + return InternalGenerateOutput (out outbuf); } - private Gst.FlowReturn InternalGenerateOutput (Gst.Buffer outbuf) + private Gst.FlowReturn InternalGenerateOutput (out Gst.Buffer outbuf) { GenerateOutputNativeDelegate unmanaged = null; unsafe { IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("generate_output")); unmanaged = (GenerateOutputNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GenerateOutputNativeDelegate)); } - if (unmanaged == null) return (Gst.FlowReturn) 0; + if (unmanaged == null) throw new InvalidOperationException ("No base method to invoke"); - int __result = unmanaged (this.Handle, outbuf == null ? IntPtr.Zero : outbuf.Handle); + IntPtr native_outbuf; + int __result = unmanaged (this.Handle, out native_outbuf); + outbuf = native_outbuf == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_outbuf, typeof (Gst.Buffer), true); return (Gst.FlowReturn) __result; } diff --git a/sources/generated/Gst.PbUtils_Constants.cs b/sources/generated/Gst.PbUtils_Constants.cs index 4f091f7..53db269 100644 --- a/sources/generated/Gst.PbUtils_Constants.cs +++ b/sources/generated/Gst.PbUtils_Constants.cs @@ -17,9 +17,9 @@ namespace Gst.PbUtils { public const string ENCODING_CATEGORY_ONLINE_SERVICE = @"online-service"; public const string ENCODING_CATEGORY_STORAGE_EDITING = @"storage-editing"; public const int PLUGINS_BASE_VERSION_MAJOR = 1; - public const int PLUGINS_BASE_VERSION_MICRO = 0; + public const int PLUGINS_BASE_VERSION_MICRO = 90; public const int PLUGINS_BASE_VERSION_MINOR = 13; - public const int PLUGINS_BASE_VERSION_NANO = 1; + public const int PLUGINS_BASE_VERSION_NANO = 0; #endregion } } diff --git a/sources/generated/Gst.PbUtils_EncodingTarget.cs b/sources/generated/Gst.PbUtils_EncodingTarget.cs index 88dcf1b..84cf2d6 100644 --- a/sources/generated/Gst.PbUtils_EncodingTarget.cs +++ b/sources/generated/Gst.PbUtils_EncodingTarget.cs @@ -67,7 +67,7 @@ namespace Gst.PbUtils { static extern unsafe IntPtr gst_encoding_target_load_from_file(IntPtr filepath, out IntPtr error); public static unsafe Gst.PbUtils.EncodingTarget LoadFromFile(string filepath) { - IntPtr native_filepath = GLib.Marshaller.StringToPtrGStrdup (filepath); + IntPtr native_filepath = GLib.Marshaller.StringToFilenamePtr (filepath); IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_encoding_target_load_from_file(native_filepath, out error); Gst.PbUtils.EncodingTarget ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.EncodingTarget; @@ -155,7 +155,7 @@ namespace Gst.PbUtils { static extern unsafe bool gst_encoding_target_save_to_file(IntPtr raw, IntPtr filepath, out IntPtr error); public unsafe bool SaveToFile(string filepath) { - IntPtr native_filepath = GLib.Marshaller.StringToPtrGStrdup (filepath); + IntPtr native_filepath = GLib.Marshaller.StringToFilenamePtr (filepath); IntPtr error = IntPtr.Zero; bool raw_ret = gst_encoding_target_save_to_file(Handle, native_filepath, out error); bool ret = raw_ret; diff --git a/sources/generated/Gst.Rtp_RTPBufferFlags.cs b/sources/generated/Gst.Rtp_RTPBufferFlags.cs index 57c426d..2ee916c 100644 --- a/sources/generated/Gst.Rtp_RTPBufferFlags.cs +++ b/sources/generated/Gst.Rtp_RTPBufferFlags.cs @@ -12,6 +12,7 @@ namespace Gst.Rtp { public enum RTPBufferFlags { Retransmission = 1048576, + Redundant = 2097152, Last = 268435456, } diff --git a/sources/generated/Gst.Video_Constants.cs b/sources/generated/Gst.Video_Constants.cs index ed404f9..6a8f52a 100644 --- a/sources/generated/Gst.Video_Constants.cs +++ b/sources/generated/Gst.Video_Constants.cs @@ -64,7 +64,7 @@ namespace Gst.Video { public const string VIDEO_DECODER_SRC_NAME = @"src"; public const string VIDEO_ENCODER_SINK_NAME = @"sink"; public const string VIDEO_ENCODER_SRC_NAME = @"src"; - public const string VIDEO_FORMATS_ALL = @"{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE }"; + public const string VIDEO_FORMATS_ALL = @"{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32 }"; public const string VIDEO_FPS_RANGE = @"(fraction) [ 0, max ]"; public const int VIDEO_MAX_COMPONENTS = 4; public const int VIDEO_MAX_PLANES = 4; diff --git a/sources/generated/Gst.Video_Global.cs b/sources/generated/Gst.Video_Global.cs index 79d23e0..e363117 100644 --- a/sources/generated/Gst.Video_Global.cs +++ b/sources/generated/Gst.Video_Global.cs @@ -853,6 +853,17 @@ namespace Gst.Video { } [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern bool gst_video_overlay_set_property(IntPtr _object, int last_prop_id, uint property_id, IntPtr value); + + public static bool VideoOverlaySetProperty(GLib.Object _object, int last_prop_id, uint property_id, GLib.Value value) { + IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); + bool raw_ret = gst_video_overlay_set_property(_object == null ? IntPtr.Zero : _object.Handle, last_prop_id, property_id, native_value); + bool ret = raw_ret; + Marshal.FreeHGlobal (native_value); + return ret; + } + + [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_video_region_of_interest_meta_api_get_type(); public static GLib.GType VideoRegionOfInterestMetaApiGetType() { diff --git a/sources/generated/Gst.Video_VideoFormat.cs b/sources/generated/Gst.Video_VideoFormat.cs index 5dd96a1..65f6b65 100644 --- a/sources/generated/Gst.Video_VideoFormat.cs +++ b/sources/generated/Gst.Video_VideoFormat.cs @@ -88,6 +88,9 @@ namespace Gst.Video { I42212le = 75, Y44412be = 76, Y44412le = 77, + Gray10Le32 = 78, + Nv1210le32 = 79, + Nv1610le32 = 80, } internal class VideoFormatGType { diff --git a/sources/generated/Gst.Video_VideoOverlayAdapter.cs b/sources/generated/Gst.Video_VideoOverlayAdapter.cs index d72113d..62cdb9d 100644 --- a/sources/generated/Gst.Video_VideoOverlayAdapter.cs +++ b/sources/generated/Gst.Video_VideoOverlayAdapter.cs @@ -170,6 +170,17 @@ namespace Gst.Video { } [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern bool gst_video_overlay_set_property(IntPtr _object, int last_prop_id, uint property_id, IntPtr value); + + public static bool SetProperty(GLib.Object _object, int last_prop_id, uint property_id, GLib.Value value) { + IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); + bool raw_ret = gst_video_overlay_set_property(_object == null ? IntPtr.Zero : _object.Handle, last_prop_id, property_id, native_value); + bool ret = raw_ret; + Marshal.FreeHGlobal (native_value); + return ret; + } + + [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_video_overlay_expose(IntPtr raw); public void Expose() { diff --git a/sources/generated/Gst.Video_VideoRegionOfInterestMeta.cs b/sources/generated/Gst.Video_VideoRegionOfInterestMeta.cs index 22fcaea..712b319 100644 --- a/sources/generated/Gst.Video_VideoRegionOfInterestMeta.cs +++ b/sources/generated/Gst.Video_VideoRegionOfInterestMeta.cs @@ -20,6 +20,7 @@ namespace Gst.Video { public uint Y; public uint W; public uint H; + private IntPtr _parms; public static Gst.Video.VideoRegionOfInterestMeta Zero = new Gst.Video.VideoRegionOfInterestMeta (); @@ -30,6 +31,33 @@ namespace Gst.Video { } [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern void gst_video_region_of_interest_meta_add_param(IntPtr raw, IntPtr s); + + public void AddParam(Gst.Structure s) { + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + s.Owned = false; + gst_video_region_of_interest_meta_add_param(this_as_native, s == null ? IntPtr.Zero : s.Handle); + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); + } + + [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr gst_video_region_of_interest_meta_get_param(IntPtr raw, IntPtr name); + + public Gst.Structure GetParam(string name) { + IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); + System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); + IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name); + IntPtr raw_ret = gst_video_region_of_interest_meta_get_param(this_as_native, native_name); + Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false); + ReadNative (this_as_native, ref this); + System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); + GLib.Marshaller.Free (native_name); + return ret; + } + + [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_video_region_of_interest_meta_get_info(); public static Gst.MetaInfo Info { @@ -40,9 +68,14 @@ namespace Gst.Video { } } + static void ReadNative (IntPtr native, ref Gst.Video.VideoRegionOfInterestMeta target) + { + target = New (native); + } + public bool Equals (VideoRegionOfInterestMeta other) { - return true && Meta.Equals (other.Meta) && RoiType.Equals (other.RoiType) && Id.Equals (other.Id) && ParentId.Equals (other.ParentId) && X.Equals (other.X) && Y.Equals (other.Y) && W.Equals (other.W) && H.Equals (other.H); + return true && Meta.Equals (other.Meta) && RoiType.Equals (other.RoiType) && Id.Equals (other.Id) && ParentId.Equals (other.ParentId) && X.Equals (other.X) && Y.Equals (other.Y) && W.Equals (other.W) && H.Equals (other.H) && _parms.Equals (other._parms); } public override bool Equals (object other) @@ -52,7 +85,7 @@ namespace Gst.Video { public override int GetHashCode () { - return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ RoiType.GetHashCode () ^ Id.GetHashCode () ^ ParentId.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode () ^ W.GetHashCode () ^ H.GetHashCode (); + return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ RoiType.GetHashCode () ^ Id.GetHashCode () ^ ParentId.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode () ^ W.GetHashCode () ^ H.GetHashCode () ^ _parms.GetHashCode (); } private static GLib.GType GType { diff --git a/sources/generated/Gst_Buffer.cs b/sources/generated/Gst_Buffer.cs index 0b39675..28732cb 100644 --- a/sources/generated/Gst_Buffer.cs +++ b/sources/generated/Gst_Buffer.cs @@ -280,10 +280,10 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern uint gst_buffer_get_n_meta(IntPtr raw, IntPtr api); + static extern uint gst_buffer_get_n_meta(IntPtr raw, IntPtr api_type); - public uint GetNMeta(GLib.GType api) { - uint raw_ret = gst_buffer_get_n_meta(Handle, api.Val); + public uint GetNMeta(GLib.GType api_type) { + uint raw_ret = gst_buffer_get_n_meta(Handle, api_type.Val); uint ret = raw_ret; return ret; } diff --git a/sources/generated/Gst_BufferFlags.cs b/sources/generated/Gst_BufferFlags.cs index a688f57..6325334 100644 --- a/sources/generated/Gst_BufferFlags.cs +++ b/sources/generated/Gst_BufferFlags.cs @@ -23,6 +23,7 @@ namespace Gst { DeltaUnit = 8192, TagMemory = 16384, SyncAfter = 32768, + NonDroppable = 65536, Last = 1048576, } diff --git a/sources/generated/Gst_Constants.cs b/sources/generated/Gst_Constants.cs index 4d27bfb..3d23760 100644 --- a/sources/generated/Gst_Constants.cs +++ b/sources/generated/Gst_Constants.cs @@ -163,9 +163,9 @@ namespace Gst { public const int VALUE_LESS_THAN = -1; public const int VALUE_UNORDERED = 2; public const int VERSION_MAJOR = 1; - public const int VERSION_MICRO = 0; + public const int VERSION_MICRO = 90; public const int VERSION_MINOR = 13; - public const int VERSION_NANO = 1; + public const int VERSION_NANO = 0; #endregion } } diff --git a/sources/generated/Gst_Debug.cs b/sources/generated/Gst_Debug.cs index 32218c0..282d8c8 100644 --- a/sources/generated/Gst_Debug.cs +++ b/sources/generated/Gst_Debug.cs @@ -46,7 +46,7 @@ namespace Gst { static extern void gst_debug_bin_to_dot_file(IntPtr bin, int details, IntPtr file_name); public static void BinToDotFile(Gst.Bin bin, Gst.DebugGraphDetails details, string file_name) { - IntPtr native_file_name = GLib.Marshaller.StringToPtrGStrdup (file_name); + IntPtr native_file_name = GLib.Marshaller.StringToFilenamePtr (file_name); gst_debug_bin_to_dot_file(bin == null ? IntPtr.Zero : bin.Handle, (int) details, native_file_name); GLib.Marshaller.Free (native_file_name); } @@ -55,7 +55,7 @@ namespace Gst { static extern void gst_debug_bin_to_dot_file_with_ts(IntPtr bin, int details, IntPtr file_name); public static void BinToDotFileWithTs(Gst.Bin bin, Gst.DebugGraphDetails details, string file_name) { - IntPtr native_file_name = GLib.Marshaller.StringToPtrGStrdup (file_name); + IntPtr native_file_name = GLib.Marshaller.StringToFilenamePtr (file_name); gst_debug_bin_to_dot_file_with_ts(bin == null ? IntPtr.Zero : bin.Handle, (int) details, native_file_name); GLib.Marshaller.Free (native_file_name); } diff --git a/sources/generated/Gst_Event.cs b/sources/generated/Gst_Event.cs index 771d4e8..4749ff1 100644 --- a/sources/generated/Gst_Event.cs +++ b/sources/generated/Gst_Event.cs @@ -172,20 +172,16 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_event_parse_protection(IntPtr raw, out IntPtr system_id, out IntPtr data, IntPtr origin); + static extern void gst_event_parse_protection(IntPtr raw, out IntPtr system_id, out IntPtr data, out IntPtr origin); - public void ParseProtection(out string system_id, out Gst.Buffer data, string origin) { + public void ParseProtection(out string system_id, out Gst.Buffer data, out string origin) { IntPtr native_system_id; IntPtr native_data; - IntPtr native_origin = GLib.Marshaller.StringToPtrGStrdup (origin); - gst_event_parse_protection(Handle, out native_system_id, out native_data, native_origin); + IntPtr native_origin; + gst_event_parse_protection(Handle, out native_system_id, out native_data, out native_origin); system_id = GLib.Marshaller.Utf8PtrToString (native_system_id); data = native_data == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_data, typeof (Gst.Buffer), false); - GLib.Marshaller.Free (native_origin); - } - - public void ParseProtection(out string system_id, out Gst.Buffer data) { - ParseProtection (out system_id, out data, null); + origin = GLib.Marshaller.Utf8PtrToString (native_origin); } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] diff --git a/sources/generated/Gst_Global.cs b/sources/generated/Gst_Global.cs index 06cbb29..f7b9b11 100644 --- a/sources/generated/Gst_Global.cs +++ b/sources/generated/Gst_Global.cs @@ -274,7 +274,7 @@ namespace Gst { public static string PresetGetAppDir() { IntPtr raw_ret = gst_preset_get_app_dir(); - string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); + string ret = GLib.Marshaller.FilenamePtrToString (raw_ret); return ret; } @@ -282,7 +282,7 @@ namespace Gst { static extern bool gst_preset_set_app_dir(IntPtr app_dir); public static bool PresetSetAppDir(string app_dir) { - IntPtr native_app_dir = GLib.Marshaller.StringToPtrGStrdup (app_dir); + IntPtr native_app_dir = GLib.Marshaller.StringToFilenamePtr (app_dir); bool raw_ret = gst_preset_set_app_dir(native_app_dir); bool ret = raw_ret; GLib.Marshaller.Free (native_app_dir); diff --git a/sources/generated/Gst_Memory.cs b/sources/generated/Gst_Memory.cs index 5cf55be..1d969ec 100644 --- a/sources/generated/Gst_Memory.cs +++ b/sources/generated/Gst_Memory.cs @@ -122,20 +122,26 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern UIntPtr gst_memory_get_sizes(IntPtr raw, UIntPtr offset, UIntPtr maxsize); + static extern UIntPtr gst_memory_get_sizes(IntPtr raw, out UIntPtr offset, out UIntPtr maxsize); - public ulong GetSizes(ulong offset, ulong maxsize) { - UIntPtr raw_ret = gst_memory_get_sizes(Handle, new UIntPtr (offset), new UIntPtr (maxsize)); + public ulong GetSizes(out ulong offset, out ulong maxsize) { + UIntPtr native_offset; + UIntPtr native_maxsize; + UIntPtr raw_ret = gst_memory_get_sizes(Handle, out native_offset, out native_maxsize); ulong ret = (ulong) raw_ret; + offset = (ulong) native_offset; + maxsize = (ulong) native_maxsize; return ret; } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern bool gst_memory_is_span(IntPtr raw, IntPtr mem2, UIntPtr offset); + static extern bool gst_memory_is_span(IntPtr raw, IntPtr mem2, out UIntPtr offset); - public bool IsSpan(Gst.Memory mem2, ulong offset) { - bool raw_ret = gst_memory_is_span(Handle, mem2 == null ? IntPtr.Zero : mem2.Handle, new UIntPtr (offset)); + public bool IsSpan(Gst.Memory mem2, out ulong offset) { + UIntPtr native_offset; + bool raw_ret = gst_memory_is_span(Handle, mem2 == null ? IntPtr.Zero : mem2.Handle, out native_offset); bool ret = raw_ret; + offset = (ulong) native_offset; return ret; } diff --git a/sources/generated/Gst_Message.cs b/sources/generated/Gst_Message.cs index a209310..cbcc2f9 100644 --- a/sources/generated/Gst_Message.cs +++ b/sources/generated/Gst_Message.cs @@ -186,7 +186,7 @@ namespace Gst { IntPtr native_context_type; bool raw_ret = gst_message_parse_context_type(Handle, out native_context_type); bool ret = raw_ret; - context_type = GLib.Marshaller.PtrToStringGFree(native_context_type); + context_type = GLib.Marshaller.Utf8PtrToString (native_context_type); return ret; } @@ -219,7 +219,7 @@ namespace Gst { Gst.Structure structure; IntPtr native_structure; gst_message_parse_error_details(Handle, out native_structure); - structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), true); + structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false); return structure; } @@ -260,7 +260,7 @@ namespace Gst { Gst.Structure structure; IntPtr native_structure; gst_message_parse_info_details(Handle, out native_structure); - structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), true); + structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false); return structure; } @@ -297,7 +297,7 @@ namespace Gst { IntPtr native_property_value = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (GLib.Value))); gst_message_parse_property_notify(Handle, out native__object, out native_property_name, native_property_value); _object = GLib.Object.GetObject(native__object) as Gst.Object; - property_name = GLib.Marshaller.PtrToStringGFree(native_property_name); + property_name = GLib.Marshaller.Utf8PtrToString (native_property_name); property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); Marshal.FreeHGlobal (native_property_value); } @@ -488,7 +488,7 @@ namespace Gst { Gst.Structure structure; IntPtr native_structure; gst_message_parse_warning_details(Handle, out native_structure); - structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), true); + structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false); return structure; } diff --git a/sources/generated/Gst_PresetAdapter.cs b/sources/generated/Gst_PresetAdapter.cs index 9eb130c..9142b01 100644 --- a/sources/generated/Gst_PresetAdapter.cs +++ b/sources/generated/Gst_PresetAdapter.cs @@ -275,7 +275,7 @@ namespace Gst { public static string AppDir { get { IntPtr raw_ret = gst_preset_get_app_dir(); - string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); + string ret = GLib.Marshaller.FilenamePtrToString (raw_ret); return ret; } } @@ -284,7 +284,7 @@ namespace Gst { static extern bool gst_preset_set_app_dir(IntPtr app_dir); public static bool SetAppDir(string app_dir) { - IntPtr native_app_dir = GLib.Marshaller.StringToPtrGStrdup (app_dir); + IntPtr native_app_dir = GLib.Marshaller.StringToFilenamePtr (app_dir); bool raw_ret = gst_preset_set_app_dir(native_app_dir); bool ret = raw_ret; GLib.Marshaller.Free (native_app_dir); diff --git a/sources/generated/Gst_Query.cs b/sources/generated/Gst_Query.cs index 06fe512..0a4bb42 100644 --- a/sources/generated/Gst_Query.cs +++ b/sources/generated/Gst_Query.cs @@ -193,10 +193,12 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_query_parse_accept_caps_result(IntPtr raw, bool _result); + static extern void gst_query_parse_accept_caps_result(IntPtr raw, out bool _result); - public void ParseAcceptCapsResult(bool _result) { - gst_query_parse_accept_caps_result(Handle, _result); + public bool ParseAcceptCapsResult() { + bool _result; + gst_query_parse_accept_caps_result(Handle, out _result); + return _result; } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] @@ -356,12 +358,14 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_query_parse_nth_format(IntPtr raw, out uint nth, out int format); + static extern void gst_query_parse_nth_format(IntPtr raw, uint nth, out int format); - public void ParseNthFormat(out uint nth, out Gst.Format format) { + public Gst.Format ParseNthFormat(uint nth) { + Gst.Format format; int native_format; - gst_query_parse_nth_format(Handle, out nth, out native_format); + gst_query_parse_nth_format(Handle, nth, out native_format); format = (Gst.Format) native_format; + return format; } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] diff --git a/sources/generated/Gst_Segment.cs b/sources/generated/Gst_Segment.cs index 51611fa..8260550 100644 --- a/sources/generated/Gst_Segment.cs +++ b/sources/generated/Gst_Segment.cs @@ -200,6 +200,7 @@ namespace Gst { [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern ulong gst_segment_to_position(IntPtr raw, int format, ulong running_time); + [Obsolete] public ulong ToPosition(Gst.Format format, ulong running_time) { IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); diff --git a/sources/generated/Gst_TagList.cs b/sources/generated/Gst_TagList.cs index 035eebc..a7cc210 100644 --- a/sources/generated/Gst_TagList.cs +++ b/sources/generated/Gst_TagList.cs @@ -171,11 +171,11 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern bool gst_tag_list_get_int64(IntPtr raw, IntPtr tag, long value); + static extern bool gst_tag_list_get_int64(IntPtr raw, IntPtr tag, out long value); - public bool GetInt64(string tag, long value) { + public bool GetInt64(string tag, out long value) { IntPtr native_tag = GLib.Marshaller.StringToPtrGStrdup (tag); - bool raw_ret = gst_tag_list_get_int64(Handle, native_tag, value); + bool raw_ret = gst_tag_list_get_int64(Handle, native_tag, out value); bool ret = raw_ret; GLib.Marshaller.Free (native_tag); return ret; diff --git a/sources/generated/Gst_Uri.cs b/sources/generated/Gst_Uri.cs index f2000f1..5f30400 100644 --- a/sources/generated/Gst_Uri.cs +++ b/sources/generated/Gst_Uri.cs @@ -635,6 +635,7 @@ namespace Gst { [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_uri_construct(IntPtr protocol, IntPtr location); + [Obsolete] public static string Construct(string protocol, string location) { IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol); IntPtr native_location = GLib.Marshaller.StringToPtrGStrdup (location); diff --git a/sources/generated/Gst_Util.cs b/sources/generated/Gst_Util.cs index 4cb2739..ab526f5 100644 --- a/sources/generated/Gst_Util.cs +++ b/sources/generated/Gst_Util.cs @@ -13,7 +13,7 @@ namespace Gst { static extern unsafe IntPtr gst_filename_to_uri(IntPtr filename, out IntPtr error); public static unsafe string FilenameToUri(string filename) { - IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename); + IntPtr native_filename = GLib.Marshaller.StringToFilenamePtr (filename); IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_filename_to_uri(native_filename, out error); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); @@ -85,6 +85,7 @@ namespace Gst { [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_uri_construct(IntPtr protocol, IntPtr location); + [Obsolete] public static string UriConstruct(string protocol, string location) { IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol); IntPtr native_location = GLib.Marshaller.StringToPtrGStrdup (location); diff --git a/sources/generated/gstreamer-sharp-abi.c b/sources/generated/gstreamer-sharp-abi.c index c9bb47a..ce96957 100644 --- a/sources/generated/gstreamer-sharp-abi.c +++ b/sources/generated/gstreamer-sharp-abi.c @@ -545,7 +545,6 @@ int main (int argc, char *argv[]) { g_print("\"GstAggregatorClass.propose_allocation\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstAggregatorClass, propose_allocation)); g_print("\"sizeof(GstAggregator)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstAggregator)); g_print("\"GstAggregator.srcpad\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstAggregator, srcpad)); - g_print("\"GstAggregator.segment\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstAggregator, segment)); g_print("\"GstAggregator.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstAggregator, priv)); g_print("\"sizeof(GstAggregatorPadClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstAggregatorPadClass)); g_print("\"GstAggregatorPadClass.flush\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstAggregatorPadClass, flush)); diff --git a/sources/generated/gstreamer-sharp-abi.cs b/sources/generated/gstreamer-sharp-abi.cs index cadd488..8b7177c 100644 --- a/sources/generated/gstreamer-sharp-abi.cs +++ b/sources/generated/gstreamer-sharp-abi.cs @@ -540,7 +540,6 @@ namespace AbiTester { Console.WriteLine("\"GstAggregatorClass.propose_allocation\": \"" + Gst.Base.Aggregator.class_abi.GetFieldOffset("propose_allocation") + "\""); Console.WriteLine("\"sizeof(GstAggregator)\": \"" + Gst.Base.Aggregator.abi_info.Size + "\""); Console.WriteLine("\"GstAggregator.srcpad\": \"" + Gst.Base.Aggregator.abi_info.GetFieldOffset("srcpad") + "\""); - Console.WriteLine("\"GstAggregator.segment\": \"" + Gst.Base.Aggregator.abi_info.GetFieldOffset("segment") + "\""); Console.WriteLine("\"GstAggregator.priv\": \"" + Gst.Base.Aggregator.abi_info.GetFieldOffset("priv") + "\""); Console.WriteLine("\"sizeof(GstAggregatorPadClass)\": \"" + Gst.Base.AggregatorPad.class_abi.Size + "\""); Console.WriteLine("\"GstAggregatorPadClass.flush\": \"" + Gst.Base.AggregatorPad.class_abi.GetFieldOffset("flush") + "\""); diff --git a/sources/generated/gstreamer-sharp-api.xml b/sources/generated/gstreamer-sharp-api.xml index 88fa6fe..4516332 100644 --- a/sources/generated/gstreamer-sharp-api.xml +++ b/sources/generated/gstreamer-sharp-api.xml @@ -197,7 +197,7 @@ <member cname="GST_PROGRESS_TYPE_CANCELED" name="Canceled" value="3" /> <member cname="GST_PROGRESS_TYPE_ERROR" name="Error" value="4" /> </enum> - <enum name="PromiseResult" cname="GstPromiseResult" type="enum" gtype="gst_promise_result_get_type"> + <enum name="PromiseResult" cname="GstPromiseResult" type="enum" gtype="gst_promise_result_get_type" version="1.14"> <member cname="GST_PROMISE_RESULT_PENDING" name="Pending" value="0" /> <member cname="GST_PROMISE_RESULT_INTERRUPTED" name="Interrupted" value="1" /> <member cname="GST_PROMISE_RESULT_REPLIED" name="Replied" value="2" /> @@ -418,6 +418,7 @@ <member cname="GST_BUFFER_FLAG_DELTA_UNIT" name="DeltaUnit" value="8192" /> <member cname="GST_BUFFER_FLAG_TAG_MEMORY" name="TagMemory" value="16384" /> <member cname="GST_BUFFER_FLAG_SYNC_AFTER" name="SyncAfter" value="32768" /> + <member cname="GST_BUFFER_FLAG_NON_DROPPABLE" name="NonDroppable" value="65536" /> <member cname="GST_BUFFER_FLAG_LAST" name="Last" value="1048576" /> </enum> <enum name="BufferPoolAcquireFlags" cname="GstBufferPoolAcquireFlags" type="flags" gtype="gst_buffer_pool_acquire_flags_get_type"> @@ -1222,7 +1223,7 @@ <parameter name="plugin" type="GstPlugin*" /> </parameters> </callback> - <callback name="PromiseChangeFunc" cname="GstPromiseChangeFunc"> + <callback name="PromiseChangeFunc" cname="GstPromiseChangeFunc" version="1.14"> <return-type type="void" /> <parameters> <parameter name="promise" type="GstPromise*"> @@ -1464,12 +1465,12 @@ <return-type type="GType" /> </method> <method name="GetAppDir" cname="gst_preset_get_app_dir" shared="true"> - <return-type type="const-gchar*" /> + <return-type type="const-gfilename*" /> </method> <method name="SetAppDir" cname="gst_preset_set_app_dir" shared="true"> <return-type type="gboolean" /> <parameters> - <parameter name="app_dir" type="const-gchar*" /> + <parameter name="app_dir" type="const-gfilename*" /> </parameters> </method> <virtual_method name="DeletePreset" cname="delete_preset"> @@ -6324,7 +6325,7 @@ <method name="GetNMeta" cname="gst_buffer_get_n_meta" version="1.14"> <return-type type="guint" /> <parameters> - <parameter name="api" type="GType" /> + <parameter name="api_type" type="GType" /> </parameters> </method> <method name="GetReferenceTimestampMeta" cname="gst_buffer_get_reference_timestamp_meta" version="1.14"> @@ -7483,7 +7484,7 @@ <parameter allow-none="1" name="data" type="GstBuffer**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> - <parameter allow-none="1" name="origin" type="const-gchar*" /> + <parameter allow-none="1" name="origin" type="const-gchar*" pass_as="out" /> </parameters> </method> <method name="ParseQos" cname="gst_event_parse_qos"> @@ -7790,8 +7791,8 @@ <method name="GetSizes" cname="gst_memory_get_sizes"> <return-type type="gsize" /> <parameters> - <parameter name="offset" type="gsize" /> - <parameter name="maxsize" type="gsize" /> + <parameter allow-none="1" name="offset" type="gsize*" owned="true" pass_as="out" /> + <parameter allow-none="1" name="maxsize" type="gsize*" owned="true" pass_as="out" /> </parameters> </method> <method name="IsSpan" cname="gst_memory_is_span"> @@ -7800,7 +7801,7 @@ <parameter name="mem2" type="GstMemory*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="offset" type="gsize" /> + <parameter name="offset" type="gsize*" owned="true" pass_as="out" /> </parameters> </method> <method name="IsType" cname="gst_memory_is_type" version="1.2"> @@ -8259,7 +8260,7 @@ <method name="ParseContextType" cname="gst_message_parse_context_type" version="1.2"> <return-type type="gboolean" /> <parameters> - <parameter allow-none="1" name="context_type" type="gchar*" owned="true" pass_as="out" /> + <parameter allow-none="1" name="context_type" type="const-gchar*" pass_as="out" /> </parameters> </method> <method name="ParseDeviceAdded" cname="gst_message_parse_device_added" version="1.4"> @@ -8286,7 +8287,7 @@ <method name="ParseErrorDetails" cname="gst_message_parse_error_details" version="1.10"> <return-type type="void" /> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8317,7 +8318,7 @@ <method name="ParseInfoDetails" cname="gst_message_parse_info_details" version="1.10"> <return-type type="void" /> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8340,8 +8341,8 @@ <return-type type="void" /> <parameters> <parameter allow-none="1" name="_object" type="GstObject*" pass_as="out" /> - <parameter allow-none="1" name="property_name" type="gchar*" owned="true" pass_as="out" /> - <parameter allow-none="1" name="property_value" type="GValue**" owned="true" pass_as="out"> + <parameter allow-none="1" name="property_name" type="const-gchar*" pass_as="out" /> + <parameter allow-none="1" name="property_value" type="GValue**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8498,7 +8499,7 @@ <method name="ParseWarningDetails" cname="gst_message_parse_warning_details" version="1.10"> <return-type type="void" /> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8925,36 +8926,36 @@ <parameters /> </method> </struct> - <boxed name="Promise" cname="GstPromise" opaque="true" hidden="false" parent="GstMiniObject"> + <boxed name="Promise" cname="GstPromise" opaque="true" hidden="false" version="1.14" parent="GstMiniObject"> <method name="GetType" cname="gst_promise_get_type" shared="true"> <return-type type="GType" /> </method> <field cname="parent" access="public" writeable="true" readable="true" is_callback="false" name="Parent" type="GstMiniObject" hidden="true"> <warning>missing glib:type-name</warning> </field> - <constructor cname="gst_promise_new" disable_void_ctor="" /> - <constructor cname="gst_promise_new_with_change_func"> + <constructor cname="gst_promise_new" disable_void_ctor="" version="1.14" /> + <constructor cname="gst_promise_new_with_change_func" version="1.14"> <parameters> <parameter name="func" type="GstPromiseChangeFunc" /> <parameter name="user_data" type="gpointer" /> <parameter name="notify" type="GDestroyNotify" /> </parameters> </constructor> - <method name="Expire" cname="gst_promise_expire"> + <method name="Expire" cname="gst_promise_expire" version="1.14"> <return-type type="void" /> <parameters /> </method> - <method name="RetrieveReply" cname="gst_promise_get_reply"> + <method name="RetrieveReply" cname="gst_promise_get_reply" version="1.14"> <return-type type="GstStructure*"> <warning>missing glib:type-name</warning> </return-type> <parameters /> </method> - <method name="Interrupt" cname="gst_promise_interrupt"> + <method name="Interrupt" cname="gst_promise_interrupt" version="1.14"> <return-type type="void" /> <parameters /> </method> - <method name="Reply" cname="gst_promise_reply"> + <method name="Reply" cname="gst_promise_reply" version="1.14"> <return-type type="void" /> <parameters> <parameter name="s" type="GstStructure*" owned="true"> @@ -8962,7 +8963,7 @@ </parameter> </parameters> </method> - <method name="Wait" cname="gst_promise_wait"> + <method name="Wait" cname="gst_promise_wait" version="1.14"> <return-type type="GstPromiseResult" /> <parameters /> </method> @@ -9158,7 +9159,7 @@ <method name="ParseAcceptCapsResult" cname="gst_query_parse_accept_caps_result"> <return-type type="void" /> <parameters> - <parameter name="_result" type="gboolean" /> + <parameter allow-none="1" name="_result" type="gboolean*" owned="true" pass_as="out" /> </parameters> </method> <method name="ParseAllocation" cname="gst_query_parse_allocation"> @@ -9295,7 +9296,7 @@ <method name="ParseNthFormat" cname="gst_query_parse_nth_format"> <return-type type="void" /> <parameters> - <parameter name="nth" type="guint*" owned="true" pass_as="out" /> + <parameter name="nth" type="guint" /> <parameter allow-none="1" name="format" type="GstFormat" owned="true" pass_as="out" /> </parameters> </method> @@ -9723,7 +9724,7 @@ <parameter name="running_time" type="guint64" /> </parameters> </method> - <method name="ToPosition" cname="gst_segment_to_position"> + <method name="ToPosition" cname="gst_segment_to_position" deprecated="true"> <return-type type="guint64" /> <parameters> <parameter name="format" type="GstFormat" /> @@ -10332,7 +10333,7 @@ <return-type type="gboolean" /> <parameters> <parameter name="tag" type="const-gchar*" /> - <parameter name="value" type="gint64" /> + <parameter name="value" type="gint64*" owned="true" pass_as="out" /> </parameters> </method> <method name="GetInt64Index" cname="gst_tag_list_get_int64_index"> @@ -10965,7 +10966,7 @@ <return-type type="gchar*" owned="true" /> <parameters /> </method> - <method name="Construct" cname="gst_uri_construct" shared="true"> + <method name="Construct" cname="gst_uri_construct" shared="true" deprecated="true"> <return-type type="gchar*" owned="true" /> <parameters> <parameter name="protocol" type="const-gchar*" /> @@ -11230,12 +11231,12 @@ <return-type type="guint32" /> </method> <method name="PresetGetAppDir" cname="gst_preset_get_app_dir" shared="true"> - <return-type type="const-gchar*" /> + <return-type type="const-gfilename*" /> </method> <method name="PresetSetAppDir" cname="gst_preset_set_app_dir" shared="true"> <return-type type="gboolean" /> <parameters> - <parameter name="app_dir" type="const-gchar*" /> + <parameter name="app_dir" type="const-gfilename*" /> </parameters> </method> <method name="ProtectionFilterSystemsByAvailableDecryptors" cname="gst_protection_filter_systems_by_available_decryptors" shared="true" version="1.14"> @@ -11530,9 +11531,9 @@ <constant value="-1" ctype="gint" gtype="gint" name="VALUE_LESS_THAN" /> <constant value="2" ctype="gint" gtype="gint" name="VALUE_UNORDERED" /> <constant value="1" ctype="gint" gtype="gint" name="VERSION_MAJOR" /> - <constant value="0" ctype="gint" gtype="gint" name="VERSION_MICRO" /> + <constant value="90" ctype="gint" gtype="gint" name="VERSION_MICRO" /> <constant value="13" ctype="gint" gtype="gint" name="VERSION_MINOR" /> - <constant value="1" ctype="gint" gtype="gint" name="VERSION_NANO" /> + <constant value="0" ctype="gint" gtype="gint" name="VERSION_NANO" /> </object> <class name="Parse" cname="GstParse" disable_void_ctor="1"> <method name="ParseBinFromDescription" cname="gst_parse_bin_from_description" shared="true"> @@ -11623,7 +11624,7 @@ <parameters> <parameter name="bin" type="GstBin*" /> <parameter name="details" type="GstDebugGraphDetails" /> - <parameter name="file_name" type="const-gchar*" /> + <parameter name="file_name" type="const-gfilename*" /> </parameters> </method> <method name="DebugBinToDotFileWithTs" cname="gst_debug_bin_to_dot_file_with_ts" shared="true"> @@ -11631,7 +11632,7 @@ <parameters> <parameter name="bin" type="GstBin*" /> <parameter name="details" type="GstDebugGraphDetails" /> - <parameter name="file_name" type="const-gchar*" /> + <parameter name="file_name" type="const-gfilename*" /> </parameters> </method> <method name="DebugConstructTermColor" cname="gst_debug_construct_term_color" shared="true"> @@ -12674,7 +12675,7 @@ <method name="FilenameToUri" cname="gst_filename_to_uri" shared="true"> <return-type type="gchar*" owned="true" /> <parameters throws="1"> - <parameter name="filename" type="const-gchar*" /> + <parameter name="filename" type="const-gfilename*" /> <parameter name="error" type="GError**" /> </parameters> </method> @@ -12723,7 +12724,7 @@ <parameter name="format" type="GstFormat" /> </parameters> </method> - <method name="UriConstruct" cname="gst_uri_construct" shared="true"> + <method name="UriConstruct" cname="gst_uri_construct" shared="true" deprecated="true"> <return-type type="gchar*" owned="true" /> <parameters> <parameter name="protocol" type="const-gchar*" /> @@ -13681,6 +13682,116 @@ <property name="Mute" cname="mute" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" /> <property name="Volume" cname="volume" type="gdouble" readable="true" writeable="true" construct="false" construct-only="false" hidden="1" /> </interface> + <object name="AudioAggregator" cname="GstAudioAggregator" defaultconstructoraccess="protected" opaque="false" hidden="true" parent="GstBase.Aggregator"> + <class_struct cname="GstAudioAggregatorClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorClass" /> + <method vm="create_output_buffer" /> + <method vm="aggregate_one_buffer" /> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20" padding="true" /> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_get_type" shared="true"> + <return-type type="GType" /> + </method> + <virtual_method name="AggregateOneBuffer" cname="aggregate_one_buffer"> + <return-type type="gboolean" /> + <parameters> + <parameter name="pad" type="GstAudioAggregatorPad*" /> + <parameter name="inbuf" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="in_offset" type="guint" /> + <parameter name="outbuf" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_offset" type="guint" /> + <parameter name="num_frames" type="guint" /> + </parameters> + </virtual_method> + <virtual_method name="CreateOutputBuffer" cname="create_output_buffer"> + <return-type type="GstBuffer*" owned="true"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="num_frames" type="guint" /> + </parameters> + </virtual_method> + <method name="SetSinkCaps" cname="gst_audio_aggregator_set_sink_caps"> + <return-type type="void" /> + <parameters> + <parameter name="pad" type="GstAudioAggregatorPad*" /> + <parameter name="caps" type="GstCaps*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> + <property name="AlignmentThreshold" cname="alignment-threshold" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" /> + <property name="DiscontWait" cname="discont-wait" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" /> + <property name="OutputBufferDuration" cname="output-buffer-duration" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" /> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstBase.Aggregator" hidden="true" /> + <field cname="current_caps" access="public" writeable="false" readable="true" is_callback="false" name="CurrentCaps" type="GstCaps*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" /> + </object> + <object name="AudioAggregatorConvertPad" cname="GstAudioAggregatorConvertPad" opaque="false" hidden="true" parent="GstAudioAggregatorPad"> + <class_struct cname="GstAudioAggregatorConvertPadClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstAudioAggregatorPadClass"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" /> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_convert_pad_get_type" shared="true"> + <return-type type="GType" /> + </method> + <property name="ConverterConfig" cname="converter-config" type="GstStructure*" readable="true" writeable="true" construct="false" construct-only="false" /> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstAudioAggregatorPad*" hidden="true" /> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorConvertPadPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" /> + </object> + <object name="AudioAggregatorPad" cname="GstAudioAggregatorPad" opaque="false" hidden="true" parent="GstBase.AggregatorPad"> + <class_struct cname="GstAudioAggregatorPadClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorPadClass" /> + <method vm="convert_buffer" /> + <method vm="update_conversion_info" /> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20" padding="true" /> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_pad_get_type" shared="true"> + <return-type type="GType" /> + </method> + <virtual_method name="ConvertBuffer" cname="convert_buffer"> + <return-type type="GstBuffer*" owned="true"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="in_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="buffer" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </virtual_method> + <virtual_method name="UpdateConversionInfo" cname="update_conversion_info"> + <return-type type="void" /> + <parameters /> + </virtual_method> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstBase.AggregatorPad" hidden="true" /> + <field cname="info" access="public" writeable="false" readable="true" is_callback="false" name="Info" type="GstAudioInfo"> + <warning>missing glib:type-name</warning> + </field> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorPadPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" /> + </object> <object name="AudioBaseSink" cname="GstAudioBaseSink" opaque="false" hidden="false" parent="GstBaseSink"> <class_struct cname="GstAudioBaseSinkClass"> <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBaseSinkClass"> @@ -15120,6 +15231,9 @@ </field> <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4" padding="true" /> </object> + <struct name="AudioAggregatorConvertPadPrivate" cname="GstAudioAggregatorConvertPadPrivate" opaque="true" hidden="true" /> + <struct name="AudioAggregatorPadPrivate" cname="GstAudioAggregatorPadPrivate" opaque="true" hidden="true" /> + <struct name="AudioAggregatorPrivate" cname="GstAudioAggregatorPrivate" opaque="true" hidden="true" /> <struct name="AudioBaseSinkPrivate" cname="GstAudioBaseSinkPrivate" opaque="true" hidden="true" /> <struct name="AudioBaseSrcPrivate" cname="GstAudioBaseSrcPrivate" opaque="true" hidden="true" /> <struct name="AudioCdSrcPrivate" cname="GstAudioCdSrcPrivate" opaque="true" hidden="true" /> @@ -15165,7 +15279,34 @@ </return-type> </method> </struct> - <struct name="AudioConverter" cname="GstAudioConverter" opaque="true" hidden="false"> + <boxed name="AudioConverter" cname="GstAudioConverter" opaque="false" hidden="false"> + <method name="GetType" cname="gst_audio_converter_get_type" shared="true"> + <return-type type="GType" /> + </method> + <constructor cname="gst_audio_converter_new"> + <parameters> + <parameter name="flags" type="GstAudioConverterFlags" /> + <parameter name="in_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="config" type="GstStructure*" owned="true"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </constructor> + <method name="Convert" cname="gst_audio_converter_convert" version="1.14" hidden="true"> + <return-type type="gboolean" /> + <parameters> + <parameter name="flags" type="GstAudioConverterFlags" /> + <parameter name="in" type="gpointer" array="true" array_length_param_index="2" /> + <parameter name="in_size" type="gsize" array_index="1" /> + <parameter name="out" type="gpointer**" owned="true" pass_as="out" array="true" array_length_param_index="4" /> + <parameter name="out_size" type="gsize*" owned="true" pass_as="out" array_index="3" /> + </parameters> + </method> <method name="Free" cname="gst_audio_converter_free"> <return-type type="void" /> <parameters /> @@ -15223,7 +15364,7 @@ </parameter> </parameters> </method> - </struct> + </boxed> <struct name="AudioDecoderPrivate" cname="GstAudioDecoderPrivate" opaque="true" hidden="true" /> <struct name="AudioDownmixMeta" cname="GstAudioDownmixMeta" opaque="false" hidden="false" parent="GstMeta"> <field cname="meta" access="public" writeable="true" readable="true" is_callback="false" name="Meta" type="GstMeta"> @@ -15315,7 +15456,7 @@ <parameter name="format" type="GstAudioFormat" /> <parameter name="rate" type="gint" /> <parameter name="channels" type="gint" /> - <parameter name="position" type="GstAudioChannelPosition" /> + <parameter allow-none="1" name="position" type="GstAudioChannelPosition*" array="true" /> </parameters> </method> <method name="ToCaps" cname="gst_audio_info_to_caps"> @@ -16342,9 +16483,6 @@ <property name="StartTime" cname="start-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" /> <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstElement*" hidden="true" /> <field cname="srcpad" access="public" writeable="false" readable="true" is_callback="false" name="Srcpad" type="GstPad*" /> - <field cname="segment" access="public" writeable="false" readable="true" is_callback="false" name="Segment" type="GstSegment"> - <warning>missing glib:type-name</warning> - </field> <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAggregatorPrivate*"> <warning>missing glib:type-name</warning> </field> @@ -17425,7 +17563,7 @@ <virtual_method name="GenerateOutput" cname="generate_output"> <return-type type="GstFlowReturn" /> <parameters> - <parameter name="outbuf" type="GstBuffer**"> + <parameter name="outbuf" type="GstBuffer**" owned="true" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -17436,7 +17574,7 @@ <parameter name="caps" type="GstCaps*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="size" type="gsize" /> + <parameter name="size" type="gsize*" owned="true" pass_as="out" /> </parameters> </virtual_method> <virtual_method name="PrepareOutputBuffer" cname="prepare_output_buffer"> @@ -17445,7 +17583,7 @@ <parameter name="input" type="GstBuffer*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="outbuf" type="GstBuffer**"> + <parameter name="outbuf" type="GstBuffer**" owned="true" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -17572,7 +17710,7 @@ <parameter name="othercaps" type="GstCaps*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="othersize" type="gsize" /> + <parameter name="othersize" type="gsize*" owned="true" pass_as="out" /> </parameters> </virtual_method> <method name="GetAllocator" cname="gst_base_transform_get_allocator"> @@ -19446,7 +19584,7 @@ <return-type type="void" /> <parameters> <parameter name="info" type="GstDiscovererInfo*" /> - <parameter name="error" type="GError*"> + <parameter allow-none="1" name="error" type="GError*"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -19856,7 +19994,7 @@ <method name="SetDescription" cname="gst_encoding_profile_set_description"> <return-type type="void" /> <parameters> - <parameter name="description" type="const-gchar*" /> + <parameter allow-none="1" name="description" type="const-gchar*" /> </parameters> </method> <method name="SetEnabled" cname="gst_encoding_profile_set_enabled"> @@ -19876,7 +20014,7 @@ <method name="SetName" cname="gst_encoding_profile_set_name"> <return-type type="void" /> <parameters> - <parameter name="name" type="const-gchar*" /> + <parameter allow-none="1" name="name" type="const-gchar*" /> </parameters> </method> <method name="SetPresence" cname="gst_encoding_profile_set_presence"> @@ -19894,13 +20032,13 @@ <method name="SetPresetName" cname="gst_encoding_profile_set_preset_name"> <return-type type="void" /> <parameters> - <parameter name="preset_name" type="const-gchar*" /> + <parameter allow-none="1" name="preset_name" type="const-gchar*" /> </parameters> </method> <method name="SetRestriction" cname="gst_encoding_profile_set_restriction"> <return-type type="void" /> <parameters> - <parameter name="restriction" type="GstCaps*" owned="true"> + <parameter allow-none="1" name="restriction" type="GstCaps*" owned="true"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -19930,7 +20068,7 @@ <method name="LoadFromFile" cname="gst_encoding_target_load_from_file" shared="true"> <return-type type="GstEncodingTarget*" owned="true" /> <parameters throws="1"> - <parameter name="filepath" type="const-gchar*" /> + <parameter name="filepath" type="const-gfilename*" /> <parameter name="error" type="GError**" /> </parameters> </method> @@ -19971,7 +20109,7 @@ <method name="SaveToFile" cname="gst_encoding_target_save_to_file"> <return-type type="gboolean" /> <parameters throws="1"> - <parameter name="filepath" type="const-gchar*" /> + <parameter name="filepath" type="const-gfilename*" /> <parameter name="error" type="GError**" /> </parameters> </method> @@ -20494,9 +20632,9 @@ <constant value="online-service" ctype="gchar*" gtype="gchar*" name="ENCODING_CATEGORY_ONLINE_SERVICE" /> <constant value="storage-editing" ctype="gchar*" gtype="gchar*" name="ENCODING_CATEGORY_STORAGE_EDITING" /> <constant value="1" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MAJOR" /> - <constant value="0" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MICRO" /> + <constant value="90" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MICRO" /> <constant value="13" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MINOR" /> - <constant value="1" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_NANO" /> + <constant value="0" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_NANO" /> </object> </namespace> <namespace name="Gst.Rtp" library="libgstrtp-1.0-0.dll"> @@ -20575,6 +20713,7 @@ </enum> <enum name="RTPBufferFlags" cname="GstRTPBufferFlags" type="flags" gtype="gst_rtp_buffer_flags_get_type" version="1.10"> <member cname="GST_RTP_BUFFER_FLAG_RETRANSMISSION" name="Retransmission" value="1048576" /> + <member cname="GST_RTP_BUFFER_FLAG_REDUNDANT" name="Redundant" value="2097152" /> <member cname="GST_RTP_BUFFER_FLAG_LAST" name="Last" value="268435456" /> </enum> <enum name="RTPBufferMapFlags" cname="GstRTPBufferMapFlags" type="flags" gtype="gst_rtp_buffer_map_flags_get_type" version="1.6.1"> @@ -25261,6 +25400,9 @@ <member cname="GST_VIDEO_FORMAT_I422_12LE" name="I42212le" value="75" /> <member cname="GST_VIDEO_FORMAT_Y444_12BE" name="Y44412be" value="76" /> <member cname="GST_VIDEO_FORMAT_Y444_12LE" name="Y44412le" value="77" /> + <member cname="GST_VIDEO_FORMAT_GRAY10_LE32" name="Gray10Le32" value="78" /> + <member cname="GST_VIDEO_FORMAT_NV12_10LE32" name="Nv1210le32" value="79" /> + <member cname="GST_VIDEO_FORMAT_NV16_10LE32" name="Nv1610le32" value="80" /> </enum> <enum name="VideoGLTextureOrientation" cname="GstVideoGLTextureOrientation" type="enum"> <member cname="GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL" name="NormalYNormal" value="0" /> @@ -25974,6 +26116,26 @@ <method name="GetType" cname="gst_video_overlay_get_type" shared="true"> <return-type type="GType" /> </method> + <method name="InstallProperties" cname="gst_video_overlay_install_properties" shared="true" hidden="true"> + <return-type type="void" /> + <parameters> + <parameter name="oclass" type="GObjectClass*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="last_prop_id" type="gint" /> + </parameters> + </method> + <method name="SetProperty" cname="gst_video_overlay_set_property" shared="true"> + <return-type type="gboolean" /> + <parameters> + <parameter name="_object" type="GObject*" /> + <parameter name="last_prop_id" type="gint" /> + <parameter name="property_id" type="guint" /> + <parameter name="value" type="GValue*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> <virtual_method name="Expose" cname="expose"> <return-type type="void" /> <parameters /> @@ -27456,6 +27618,7 @@ </return-type> </method> </struct> + <struct name="VideoOverlayProperties" cname="GstVideoOverlayProperties" opaque="true" hidden="false" /> <boxed name="VideoOverlayRectangle" cname="GstVideoOverlayRectangle" opaque="true" hidden="false"> <method name="GetType" cname="gst_video_overlay_rectangle_get_type" shared="true"> <return-type type="GType" /> @@ -27580,6 +27743,23 @@ <field cname="y" access="public" writeable="true" readable="true" is_callback="false" name="Y" type="guint" /> <field cname="w" access="public" writeable="true" readable="true" is_callback="false" name="W" type="guint" /> <field cname="h" access="public" writeable="true" readable="true" is_callback="false" name="H" type="guint" /> + <field cname="params" access="public" writeable="true" readable="true" is_callback="false" name="Params" type="GList*" element_type="gpointer" /> + <method name="AddParam" cname="gst_video_region_of_interest_meta_add_param" version="1.14"> + <return-type type="void" /> + <parameters> + <parameter name="s" type="GstStructure*" owned="true"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> + <method name="GetParam" cname="gst_video_region_of_interest_meta_get_param" version="1.14"> + <return-type type="GstStructure*"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="name" type="const-gchar*" /> + </parameters> + </method> <method name="GetInfo" cname="gst_video_region_of_interest_meta_get_info" shared="true"> <return-type type="GstMetaInfo*"> <warning>missing glib:type-name</warning> @@ -28656,6 +28836,26 @@ <warning>missing glib:type-name</warning> </return-type> </method> + <method name="VideoOverlayInstallProperties" cname="gst_video_overlay_install_properties" shared="true" hidden="true"> + <return-type type="void" /> + <parameters> + <parameter name="oclass" type="GObjectClass*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="last_prop_id" type="gint" /> + </parameters> + </method> + <method name="VideoOverlaySetProperty" cname="gst_video_overlay_set_property" shared="true"> + <return-type type="gboolean" /> + <parameters> + <parameter name="_object" type="GObject*" /> + <parameter name="last_prop_id" type="gint" /> + <parameter name="property_id" type="guint" /> + <parameter name="value" type="GValue*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> <method name="VideoRegionOfInterestMetaApiGetType" cname="gst_video_region_of_interest_meta_api_get_type" shared="true"> <return-type type="GType" /> </method> @@ -28737,7 +28937,7 @@ <constant value="src" ctype="gchar*" gtype="gchar*" name="VIDEO_DECODER_SRC_NAME" /> <constant value="sink" ctype="gchar*" gtype="gchar*" name="VIDEO_ENCODER_SINK_NAME" /> <constant value="src" ctype="gchar*" gtype="gchar*" name="VIDEO_ENCODER_SRC_NAME" /> - <constant value="{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE }" ctype="gchar*" gtype="gchar*" name="VIDEO_FORMATS_ALL" /> + <constant value="{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32 }" ctype="gchar*" gtype="gchar*" name="VIDEO_FORMATS_ALL" /> <constant value="(fraction) [ 0, max ]" ctype="gchar*" gtype="gchar*" name="VIDEO_FPS_RANGE" /> <constant value="4" ctype="gint" gtype="gint" name="VIDEO_MAX_COMPONENTS" /> <constant value="4" ctype="gint" gtype="gint" name="VIDEO_MAX_PLANES" /> diff --git a/sources/generated/meson.build b/sources/generated/meson.build index 9daf025..c736459 100644 --- a/sources/generated/meson.build +++ b/sources/generated/meson.build @@ -721,6 +721,7 @@ generated_sources = [ 'Gst.Rtsp_RTSPConnectionAcceptCertificateFunc.cs', 'Gst.Rtsp_Gst.RtspSharp.RTSPConnectionAcceptCertificateFuncNative.cs', 'Gst.Audio_AudioStreamAlign.cs', + 'Gst.Video_VideoOverlayProperties.cs', ] run_target('update_gstreamer_code', diff --git a/sources/gstreamer-sharp-api.raw b/sources/gstreamer-sharp-api.raw index af7a41f..a29d9ed 100644 --- a/sources/gstreamer-sharp-api.raw +++ b/sources/gstreamer-sharp-api.raw @@ -197,7 +197,7 @@ <member cname="GST_PROGRESS_TYPE_CANCELED" name="Canceled" value="3"/> <member cname="GST_PROGRESS_TYPE_ERROR" name="Error" value="4"/> </enum> - <enum name="PromiseResult" cname="GstPromiseResult" type="enum" gtype="gst_promise_result_get_type"> + <enum name="PromiseResult" cname="GstPromiseResult" type="enum" gtype="gst_promise_result_get_type" version="1.14"> <member cname="GST_PROMISE_RESULT_PENDING" name="Pending" value="0"/> <member cname="GST_PROMISE_RESULT_INTERRUPTED" name="Interrupted" value="1"/> <member cname="GST_PROMISE_RESULT_REPLIED" name="Replied" value="2"/> @@ -418,6 +418,7 @@ <member cname="GST_BUFFER_FLAG_DELTA_UNIT" name="DeltaUnit" value="8192"/> <member cname="GST_BUFFER_FLAG_TAG_MEMORY" name="TagMemory" value="16384"/> <member cname="GST_BUFFER_FLAG_SYNC_AFTER" name="SyncAfter" value="32768"/> + <member cname="GST_BUFFER_FLAG_NON_DROPPABLE" name="NonDroppable" value="65536"/> <member cname="GST_BUFFER_FLAG_LAST" name="Last" value="1048576"/> </enum> <enum name="BufferPoolAcquireFlags" cname="GstBufferPoolAcquireFlags" type="flags" gtype="gst_buffer_pool_acquire_flags_get_type"> @@ -1222,7 +1223,7 @@ <parameter name="plugin" type="GstPlugin*"/> </parameters> </callback> - <callback name="PromiseChangeFunc" cname="GstPromiseChangeFunc"> + <callback name="PromiseChangeFunc" cname="GstPromiseChangeFunc" version="1.14"> <return-type type="void"/> <parameters> <parameter name="promise" type="GstPromise*"> @@ -1464,12 +1465,12 @@ <return-type type="GType"/> </method> <method name="GetAppDir" cname="gst_preset_get_app_dir" shared="true"> - <return-type type="const-gchar*"/> + <return-type type="const-gfilename*"/> </method> <method name="SetAppDir" cname="gst_preset_set_app_dir" shared="true"> <return-type type="gboolean"/> <parameters> - <parameter name="app_dir" type="const-gchar*"/> + <parameter name="app_dir" type="const-gfilename*"/> </parameters> </method> <virtual_method name="DeletePreset" cname="delete_preset"> @@ -6319,7 +6320,7 @@ <method name="GetNMeta" cname="gst_buffer_get_n_meta" version="1.14"> <return-type type="guint"/> <parameters> - <parameter name="api" type="GType"/> + <parameter name="api_type" type="GType"/> </parameters> </method> <method name="GetReferenceTimestampMeta" cname="gst_buffer_get_reference_timestamp_meta" version="1.14"> @@ -7478,7 +7479,7 @@ <parameter allow-none="1" name="data" type="GstBuffer**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> - <parameter allow-none="1" name="origin" type="const-gchar*"/> + <parameter allow-none="1" name="origin" type="const-gchar*" pass_as="out"/> </parameters> </method> <method name="ParseQos" cname="gst_event_parse_qos"> @@ -7782,8 +7783,8 @@ <method name="GetSizes" cname="gst_memory_get_sizes"> <return-type type="gsize"/> <parameters> - <parameter name="offset" type="gsize"/> - <parameter name="maxsize" type="gsize"/> + <parameter allow-none="1" name="offset" type="gsize*" owned="true" pass_as="out"/> + <parameter allow-none="1" name="maxsize" type="gsize*" owned="true" pass_as="out"/> </parameters> </method> <method name="IsSpan" cname="gst_memory_is_span"> @@ -7792,7 +7793,7 @@ <parameter name="mem2" type="GstMemory*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="offset" type="gsize"/> + <parameter name="offset" type="gsize*" owned="true" pass_as="out"/> </parameters> </method> <method name="IsType" cname="gst_memory_is_type" version="1.2"> @@ -8251,7 +8252,7 @@ <method name="ParseContextType" cname="gst_message_parse_context_type" version="1.2"> <return-type type="gboolean"/> <parameters> - <parameter allow-none="1" name="context_type" type="gchar*" owned="true" pass_as="out"/> + <parameter allow-none="1" name="context_type" type="const-gchar*" pass_as="out"/> </parameters> </method> <method name="ParseDeviceAdded" cname="gst_message_parse_device_added" version="1.4"> @@ -8278,7 +8279,7 @@ <method name="ParseErrorDetails" cname="gst_message_parse_error_details" version="1.10"> <return-type type="void"/> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8309,7 +8310,7 @@ <method name="ParseInfoDetails" cname="gst_message_parse_info_details" version="1.10"> <return-type type="void"/> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8332,8 +8333,8 @@ <return-type type="void"/> <parameters> <parameter allow-none="1" name="_object" type="GstObject*" pass_as="out"/> - <parameter allow-none="1" name="property_name" type="gchar*" owned="true" pass_as="out"/> - <parameter allow-none="1" name="property_value" type="GValue**" owned="true" pass_as="out"> + <parameter allow-none="1" name="property_name" type="const-gchar*" pass_as="out"/> + <parameter allow-none="1" name="property_value" type="GValue**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8490,7 +8491,7 @@ <method name="ParseWarningDetails" cname="gst_message_parse_warning_details" version="1.10"> <return-type type="void"/> <parameters> - <parameter name="structure" type="GstStructure**" owned="true" pass_as="out"> + <parameter name="structure" type="GstStructure**" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -8917,36 +8918,36 @@ <parameters/> </method> </struct> - <boxed name="Promise" cname="GstPromise" opaque="false" hidden="false"> + <boxed name="Promise" cname="GstPromise" opaque="false" hidden="false" version="1.14"> <method name="GetType" cname="gst_promise_get_type" shared="true"> <return-type type="GType"/> </method> <field cname="parent" access="public" writeable="true" readable="true" is_callback="false" name="Parent" type="GstMiniObject"> <warning>missing glib:type-name</warning> </field> - <constructor cname="gst_promise_new" disable_void_ctor=""/> - <constructor cname="gst_promise_new_with_change_func"> + <constructor cname="gst_promise_new" disable_void_ctor="" version="1.14"/> + <constructor cname="gst_promise_new_with_change_func" version="1.14"> <parameters> <parameter name="func" type="GstPromiseChangeFunc"/> <parameter name="user_data" type="gpointer"/> <parameter name="notify" type="GDestroyNotify"/> </parameters> </constructor> - <method name="Expire" cname="gst_promise_expire"> + <method name="Expire" cname="gst_promise_expire" version="1.14"> <return-type type="void"/> <parameters/> </method> - <method name="GetReply" cname="gst_promise_get_reply"> + <method name="GetReply" cname="gst_promise_get_reply" version="1.14"> <return-type type="GstStructure*"> <warning>missing glib:type-name</warning> </return-type> <parameters/> </method> - <method name="Interrupt" cname="gst_promise_interrupt"> + <method name="Interrupt" cname="gst_promise_interrupt" version="1.14"> <return-type type="void"/> <parameters/> </method> - <method name="Reply" cname="gst_promise_reply"> + <method name="Reply" cname="gst_promise_reply" version="1.14"> <return-type type="void"/> <parameters> <parameter name="s" type="GstStructure*" owned="true"> @@ -8954,7 +8955,7 @@ </parameter> </parameters> </method> - <method name="Wait" cname="gst_promise_wait"> + <method name="Wait" cname="gst_promise_wait" version="1.14"> <return-type type="GstPromiseResult"/> <parameters/> </method> @@ -9150,7 +9151,7 @@ <method name="ParseAcceptCapsResult" cname="gst_query_parse_accept_caps_result"> <return-type type="void"/> <parameters> - <parameter name="_result" type="gboolean"/> + <parameter allow-none="1" name="_result" type="gboolean*" owned="true" pass_as="out"/> </parameters> </method> <method name="ParseAllocation" cname="gst_query_parse_allocation"> @@ -9287,7 +9288,7 @@ <method name="ParseNthFormat" cname="gst_query_parse_nth_format"> <return-type type="void"/> <parameters> - <parameter name="nth" type="guint*" owned="true" pass_as="out"/> + <parameter name="nth" type="guint"/> <parameter allow-none="1" name="format" type="GstFormat" owned="true" pass_as="out"/> </parameters> </method> @@ -9715,7 +9716,7 @@ <parameter name="running_time" type="guint64"/> </parameters> </method> - <method name="ToPosition" cname="gst_segment_to_position"> + <method name="ToPosition" cname="gst_segment_to_position" deprecated="true"> <return-type type="guint64"/> <parameters> <parameter name="format" type="GstFormat"/> @@ -10324,7 +10325,7 @@ <return-type type="gboolean"/> <parameters> <parameter name="tag" type="const-gchar*"/> - <parameter name="value" type="gint64"/> + <parameter name="value" type="gint64*" owned="true" pass_as="out"/> </parameters> </method> <method name="GetInt64Index" cname="gst_tag_list_get_int64_index"> @@ -10957,7 +10958,7 @@ <return-type type="gchar*" owned="true"/> <parameters/> </method> - <method name="Construct" cname="gst_uri_construct" shared="true"> + <method name="Construct" cname="gst_uri_construct" shared="true" deprecated="true"> <return-type type="gchar*" owned="true"/> <parameters> <parameter name="protocol" type="const-gchar*"/> @@ -11075,7 +11076,7 @@ <parameters> <parameter name="bin" type="GstBin*"/> <parameter name="details" type="GstDebugGraphDetails"/> - <parameter name="file_name" type="const-gchar*"/> + <parameter name="file_name" type="const-gfilename*"/> </parameters> </method> <method name="DebugBinToDotFileWithTs" cname="gst_debug_bin_to_dot_file_with_ts" shared="true"> @@ -11083,7 +11084,7 @@ <parameters> <parameter name="bin" type="GstBin*"/> <parameter name="details" type="GstDebugGraphDetails"/> - <parameter name="file_name" type="const-gchar*"/> + <parameter name="file_name" type="const-gfilename*"/> </parameters> </method> <method name="DebugConstructTermColor" cname="gst_debug_construct_term_color" shared="true"> @@ -11253,7 +11254,7 @@ <method name="FilenameToUri" cname="gst_filename_to_uri" shared="true"> <return-type type="gchar*" owned="true"/> <parameters throws="1"> - <parameter name="filename" type="const-gchar*"/> + <parameter name="filename" type="const-gfilename*"/> <parameter name="error" type="GError**"/> </parameters> </method> @@ -11521,12 +11522,12 @@ <return-type type="guint32"/> </method> <method name="PresetGetAppDir" cname="gst_preset_get_app_dir" shared="true"> - <return-type type="const-gchar*"/> + <return-type type="const-gfilename*"/> </method> <method name="PresetSetAppDir" cname="gst_preset_set_app_dir" shared="true"> <return-type type="gboolean"/> <parameters> - <parameter name="app_dir" type="const-gchar*"/> + <parameter name="app_dir" type="const-gfilename*"/> </parameters> </method> <method name="ProtectionFilterSystemsByAvailableDecryptors" cname="gst_protection_filter_systems_by_available_decryptors" shared="true" version="1.14"> @@ -11736,7 +11737,7 @@ <method name="UpdateRegistry" cname="gst_update_registry" shared="true"> <return-type type="gboolean"/> </method> - <method name="UriConstruct" cname="gst_uri_construct" shared="true"> + <method name="UriConstruct" cname="gst_uri_construct" shared="true" deprecated="true"> <return-type type="gchar*" owned="true"/> <parameters> <parameter name="protocol" type="const-gchar*"/> @@ -12677,9 +12678,9 @@ <constant value="-1" ctype="gint" gtype="gint" name="VALUE_LESS_THAN"/> <constant value="2" ctype="gint" gtype="gint" name="VALUE_UNORDERED"/> <constant value="1" ctype="gint" gtype="gint" name="VERSION_MAJOR"/> - <constant value="0" ctype="gint" gtype="gint" name="VERSION_MICRO"/> + <constant value="90" ctype="gint" gtype="gint" name="VERSION_MICRO"/> <constant value="13" ctype="gint" gtype="gint" name="VERSION_MINOR"/> - <constant value="1" ctype="gint" gtype="gint" name="VERSION_NANO"/> + <constant value="0" ctype="gint" gtype="gint" name="VERSION_NANO"/> </object> </namespace> <namespace name="GstApp" library="gstapp-1.0"> @@ -13374,6 +13375,116 @@ <property name="Mute" cname="mute" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/> <property name="Volume" cname="volume" type="gdouble" readable="true" writeable="true" construct="false" construct-only="false"/> </interface> + <object name="AudioAggregator" cname="GstAudioAggregator" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstBase.Aggregator"> + <class_struct cname="GstAudioAggregatorClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorClass"/> + <method vm="create_output_buffer"/> + <method vm="aggregate_one_buffer"/> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20"/> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_get_type" shared="true"> + <return-type type="GType"/> + </method> + <virtual_method name="AggregateOneBuffer" cname="aggregate_one_buffer"> + <return-type type="gboolean"/> + <parameters> + <parameter name="pad" type="GstAudioAggregatorPad*"/> + <parameter name="inbuf" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="in_offset" type="guint"/> + <parameter name="outbuf" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_offset" type="guint"/> + <parameter name="num_frames" type="guint"/> + </parameters> + </virtual_method> + <virtual_method name="CreateOutputBuffer" cname="create_output_buffer"> + <return-type type="GstBuffer*" owned="true"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="num_frames" type="guint"/> + </parameters> + </virtual_method> + <method name="SetSinkCaps" cname="gst_audio_aggregator_set_sink_caps"> + <return-type type="void"/> + <parameters> + <parameter name="pad" type="GstAudioAggregatorPad*"/> + <parameter name="caps" type="GstCaps*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> + <property name="AlignmentThreshold" cname="alignment-threshold" type="guint64" readable="true" writeable="true" construct="false" construct-only="false"/> + <property name="DiscontWait" cname="discont-wait" type="guint64" readable="true" writeable="true" construct="false" construct-only="false"/> + <property name="OutputBufferDuration" cname="output-buffer-duration" type="guint64" readable="true" writeable="true" construct="false" construct-only="false"/> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstBase.Aggregator"/> + <field cname="current_caps" access="public" writeable="false" readable="true" is_callback="false" name="CurrentCaps" type="GstCaps*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/> + </object> + <object name="AudioAggregatorConvertPad" cname="GstAudioAggregatorConvertPad" opaque="false" hidden="false" parent="GstAudioAggregatorPad"> + <class_struct cname="GstAudioAggregatorConvertPadClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstAudioAggregatorPadClass"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_convert_pad_get_type" shared="true"> + <return-type type="GType"/> + </method> + <property name="ConverterConfig" cname="converter-config" type="GstStructure*" readable="true" writeable="true" construct="false" construct-only="false"/> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstAudioAggregatorPad*"/> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorConvertPadPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/> + </object> + <object name="AudioAggregatorPad" cname="GstAudioAggregatorPad" opaque="false" hidden="false" parent="GstBase.AggregatorPad"> + <class_struct cname="GstAudioAggregatorPadClass"> + <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorPadClass"/> + <method vm="convert_buffer"/> + <method vm="update_conversion_info"/> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20"/> + </class_struct> + <method name="GetType" cname="gst_audio_aggregator_pad_get_type" shared="true"> + <return-type type="GType"/> + </method> + <virtual_method name="ConvertBuffer" cname="convert_buffer"> + <return-type type="GstBuffer*" owned="true"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="in_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="buffer" type="GstBuffer*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </virtual_method> + <virtual_method name="UpdateConversionInfo" cname="update_conversion_info"> + <return-type type="void"/> + <parameters/> + </virtual_method> + <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstBase.AggregatorPad"/> + <field cname="info" access="public" writeable="false" readable="true" is_callback="false" name="Info" type="GstAudioInfo"> + <warning>missing glib:type-name</warning> + </field> + <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAudioAggregatorPadPrivate*"> + <warning>missing glib:type-name</warning> + </field> + <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/> + </object> <object name="AudioBaseSink" cname="GstAudioBaseSink" opaque="false" hidden="false" parent="GstBaseSink"> <class_struct cname="GstAudioBaseSinkClass"> <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBaseSinkClass"> @@ -14813,6 +14924,9 @@ </field> <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="4"/> </object> + <struct name="AudioAggregatorConvertPadPrivate" cname="GstAudioAggregatorConvertPadPrivate" opaque="true" hidden="true"/> + <struct name="AudioAggregatorPadPrivate" cname="GstAudioAggregatorPadPrivate" opaque="true" hidden="true"/> + <struct name="AudioAggregatorPrivate" cname="GstAudioAggregatorPrivate" opaque="true" hidden="true"/> <struct name="AudioBaseSinkPrivate" cname="GstAudioBaseSinkPrivate" opaque="true" hidden="true"/> <struct name="AudioBaseSrcPrivate" cname="GstAudioBaseSrcPrivate" opaque="true" hidden="true"/> <struct name="AudioCdSrcPrivate" cname="GstAudioCdSrcPrivate" opaque="true" hidden="true"/> @@ -14858,7 +14972,34 @@ </return-type> </method> </struct> - <struct name="AudioConverter" cname="GstAudioConverter" opaque="true" hidden="false"> + <boxed name="AudioConverter" cname="GstAudioConverter" opaque="false" hidden="false"> + <method name="GetType" cname="gst_audio_converter_get_type" shared="true"> + <return-type type="GType"/> + </method> + <constructor cname="gst_audio_converter_new"> + <parameters> + <parameter name="flags" type="GstAudioConverterFlags"/> + <parameter name="in_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="out_info" type="GstAudioInfo*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="config" type="GstStructure*" owned="true"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </constructor> + <method name="Convert" cname="gst_audio_converter_convert" version="1.14"> + <return-type type="gboolean"/> + <parameters> + <parameter name="flags" type="GstAudioConverterFlags"/> + <parameter name="in" type="gpointer" array="true" array_length_param_index="2"/> + <parameter name="in_size" type="gsize" array_index="1"/> + <parameter name="out" type="gpointer**" owned="true" pass_as="out" array="true" array_length_param_index="4"/> + <parameter name="out_size" type="gsize*" owned="true" pass_as="out" array_index="3"/> + </parameters> + </method> <method name="Free" cname="gst_audio_converter_free"> <return-type type="void"/> <parameters/> @@ -14916,7 +15057,7 @@ </parameter> </parameters> </method> - </struct> + </boxed> <struct name="AudioDecoderPrivate" cname="GstAudioDecoderPrivate" opaque="true" hidden="true"/> <struct name="AudioDownmixMeta" cname="GstAudioDownmixMeta" opaque="false" hidden="false"> <field cname="meta" access="public" writeable="true" readable="true" is_callback="false" name="Meta" type="GstMeta"> @@ -15008,7 +15149,7 @@ <parameter name="format" type="GstAudioFormat"/> <parameter name="rate" type="gint"/> <parameter name="channels" type="gint"/> - <parameter name="position" type="GstAudioChannelPosition"/> + <parameter allow-none="1" name="position" type="GstAudioChannelPosition*" array="true" array_len="64"/> </parameters> </method> <method name="ToCaps" cname="gst_audio_info_to_caps"> @@ -16035,9 +16176,6 @@ <property name="StartTime" cname="start-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false"/> <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstElement*"/> <field cname="srcpad" access="public" writeable="false" readable="true" is_callback="false" name="Srcpad" type="GstPad*"/> - <field cname="segment" access="public" writeable="false" readable="true" is_callback="false" name="Segment" type="GstSegment"> - <warning>missing glib:type-name</warning> - </field> <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAggregatorPrivate*"> <warning>missing glib:type-name</warning> </field> @@ -17118,7 +17256,7 @@ <virtual_method name="GenerateOutput" cname="generate_output"> <return-type type="GstFlowReturn"/> <parameters> - <parameter name="outbuf" type="GstBuffer**"> + <parameter name="outbuf" type="GstBuffer**" owned="true" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -17129,7 +17267,7 @@ <parameter name="caps" type="GstCaps*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="size" type="gsize"/> + <parameter name="size" type="gsize*" owned="true" pass_as="out"/> </parameters> </virtual_method> <virtual_method name="PrepareOutputBuffer" cname="prepare_output_buffer"> @@ -17138,7 +17276,7 @@ <parameter name="input" type="GstBuffer*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="outbuf" type="GstBuffer**"> + <parameter name="outbuf" type="GstBuffer**" owned="true" pass_as="out"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -17265,7 +17403,7 @@ <parameter name="othercaps" type="GstCaps*"> <warning>missing glib:type-name</warning> </parameter> - <parameter name="othersize" type="gsize"/> + <parameter name="othersize" type="gsize*" owned="true" pass_as="out"/> </parameters> </virtual_method> <method name="GetAllocator" cname="gst_base_transform_get_allocator"> @@ -19520,7 +19658,7 @@ <return-type type="void"/> <parameters> <parameter name="info" type="GstDiscovererInfo*"/> - <parameter name="error" type="GError*"> + <parameter allow-none="1" name="error" type="GError*"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -19930,7 +20068,7 @@ <method name="SetDescription" cname="gst_encoding_profile_set_description"> <return-type type="void"/> <parameters> - <parameter name="description" type="const-gchar*"/> + <parameter allow-none="1" name="description" type="const-gchar*"/> </parameters> </method> <method name="SetEnabled" cname="gst_encoding_profile_set_enabled"> @@ -19950,7 +20088,7 @@ <method name="SetName" cname="gst_encoding_profile_set_name"> <return-type type="void"/> <parameters> - <parameter name="name" type="const-gchar*"/> + <parameter allow-none="1" name="name" type="const-gchar*"/> </parameters> </method> <method name="SetPresence" cname="gst_encoding_profile_set_presence"> @@ -19968,13 +20106,13 @@ <method name="SetPresetName" cname="gst_encoding_profile_set_preset_name"> <return-type type="void"/> <parameters> - <parameter name="preset_name" type="const-gchar*"/> + <parameter allow-none="1" name="preset_name" type="const-gchar*"/> </parameters> </method> <method name="SetRestriction" cname="gst_encoding_profile_set_restriction"> <return-type type="void"/> <parameters> - <parameter name="restriction" type="GstCaps*" owned="true"> + <parameter allow-none="1" name="restriction" type="GstCaps*" owned="true"> <warning>missing glib:type-name</warning> </parameter> </parameters> @@ -20004,7 +20142,7 @@ <method name="LoadFromFile" cname="gst_encoding_target_load_from_file" shared="true"> <return-type type="GstEncodingTarget*" owned="true"/> <parameters throws="1"> - <parameter name="filepath" type="const-gchar*"/> + <parameter name="filepath" type="const-gfilename*"/> <parameter name="error" type="GError**"/> </parameters> </method> @@ -20045,7 +20183,7 @@ <method name="SaveToFile" cname="gst_encoding_target_save_to_file"> <return-type type="gboolean"/> <parameters throws="1"> - <parameter name="filepath" type="const-gchar*"/> + <parameter name="filepath" type="const-gfilename*"/> <parameter name="error" type="GError**"/> </parameters> </method> @@ -20568,9 +20706,9 @@ <constant value="online-service" ctype="gchar*" gtype="gchar*" name="ENCODING_CATEGORY_ONLINE_SERVICE"/> <constant value="storage-editing" ctype="gchar*" gtype="gchar*" name="ENCODING_CATEGORY_STORAGE_EDITING"/> <constant value="1" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MAJOR"/> - <constant value="0" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MICRO"/> + <constant value="90" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MICRO"/> <constant value="13" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_MINOR"/> - <constant value="1" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_NANO"/> + <constant value="0" ctype="gint" gtype="gint" name="PLUGINS_BASE_VERSION_NANO"/> </object> </namespace> <namespace name="GstRtp" library="gstrtp-1.0"> @@ -20649,6 +20787,7 @@ </enum> <enum name="RTPBufferFlags" cname="GstRTPBufferFlags" type="flags" gtype="gst_rtp_buffer_flags_get_type" version="1.10"> <member cname="GST_RTP_BUFFER_FLAG_RETRANSMISSION" name="Retransmission" value="1048576"/> + <member cname="GST_RTP_BUFFER_FLAG_REDUNDANT" name="Redundant" value="2097152"/> <member cname="GST_RTP_BUFFER_FLAG_LAST" name="Last" value="268435456"/> </enum> <enum name="RTPBufferMapFlags" cname="GstRTPBufferMapFlags" type="flags" gtype="gst_rtp_buffer_map_flags_get_type" version="1.6.1"> @@ -25631,6 +25770,9 @@ <member cname="GST_VIDEO_FORMAT_I422_12LE" name="I42212le" value="75"/> <member cname="GST_VIDEO_FORMAT_Y444_12BE" name="Y44412be" value="76"/> <member cname="GST_VIDEO_FORMAT_Y444_12LE" name="Y44412le" value="77"/> + <member cname="GST_VIDEO_FORMAT_GRAY10_LE32" name="Gray10Le32" value="78"/> + <member cname="GST_VIDEO_FORMAT_NV12_10LE32" name="Nv1210le32" value="79"/> + <member cname="GST_VIDEO_FORMAT_NV16_10LE32" name="Nv1610le32" value="80"/> </enum> <enum name="VideoGLTextureOrientation" cname="GstVideoGLTextureOrientation" type="enum"> <member cname="GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL" name="NormalYNormal" value="0"/> @@ -26344,6 +26486,26 @@ <method name="GetType" cname="gst_video_overlay_get_type" shared="true"> <return-type type="GType"/> </method> + <method name="InstallProperties" cname="gst_video_overlay_install_properties" shared="true"> + <return-type type="void"/> + <parameters> + <parameter name="oclass" type="GObjectClass*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="last_prop_id" type="gint"/> + </parameters> + </method> + <method name="SetProperty" cname="gst_video_overlay_set_property" shared="true"> + <return-type type="gboolean"/> + <parameters> + <parameter name="_object" type="GObject*"/> + <parameter name="last_prop_id" type="gint"/> + <parameter name="property_id" type="guint"/> + <parameter name="value" type="GValue*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> <virtual_method name="Expose" cname="expose"> <return-type type="void"/> <parameters/> @@ -26468,7 +26630,7 @@ <method vm="getcaps"/> <method vm="drain"/> <method vm="transform_meta"/> - <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="void" array="true" array_len="14"/> + <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="gpointer" array="true" array_len="14"/> </class_struct> <method name="GetType" cname="gst_video_decoder_get_type" shared="true"> <return-type type="GType"/> @@ -26834,7 +26996,7 @@ <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstVideoDecoderPrivate*"> <warning>missing glib:type-name</warning> </field> - <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="void" array="true" array_len="20"/> + <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="gpointer" array="true" array_len="20"/> </object> <object name="VideoEncoder" cname="GstVideoEncoder" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstElement"> <implements> @@ -27156,7 +27318,7 @@ <field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstVideoEncoderPrivate*"> <warning>missing glib:type-name</warning> </field> - <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="void" array="true" array_len="20"/> + <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="gpointer" array="true" array_len="20"/> </object> <object name="VideoFilter" cname="GstVideoFilter" defaultconstructoraccess="protected" opaque="false" hidden="false" parent="GstBaseTransform"> <class_struct cname="GstVideoFilterClass"> @@ -27342,7 +27504,7 @@ <field cname="ts" access="public" writeable="true" readable="true" is_callback="false" name="Ts" type="guint64"/> <field cname="ts2" access="public" writeable="true" readable="true" is_callback="false" name="Ts2" type="guint64"/> </struct> - <field cname="padding" access="public" writeable="true" readable="true" is_callback="false" name="Padding" type="void" array="true" array_len="20"/> + <field cname="padding" access="public" writeable="true" readable="true" is_callback="false" name="Padding" type="gpointer" array="true" array_len="20"/> </union> <method name="GetUserData" cname="gst_video_codec_frame_get_user_data"> <return-type type="gpointer"/> @@ -27383,7 +27545,7 @@ <field cname="allocation_caps" access="public" writeable="true" readable="true" is_callback="false" name="AllocationCaps" type="GstCaps*"> <warning>missing glib:type-name</warning> </field> - <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="void" array="true" array_len="19"/> + <field cname="padding" access="private" writeable="false" readable="false" is_callback="false" name="Padding" type="gpointer" array="true" array_len="19"/> <method name="Ref" cname="gst_video_codec_state_ref"> <return-type type="GstVideoCodecState*" owned="true"> <warning>missing glib:type-name</warning> @@ -27826,6 +27988,7 @@ </return-type> </method> </struct> + <struct name="VideoOverlayProperties" cname="GstVideoOverlayProperties" opaque="true" hidden="false"/> <boxed name="VideoOverlayRectangle" cname="GstVideoOverlayRectangle" opaque="true" hidden="false"> <method name="GetType" cname="gst_video_overlay_rectangle_get_type" shared="true"> <return-type type="GType"/> @@ -27950,6 +28113,23 @@ <field cname="y" access="public" writeable="true" readable="true" is_callback="false" name="Y" type="guint"/> <field cname="w" access="public" writeable="true" readable="true" is_callback="false" name="W" type="guint"/> <field cname="h" access="public" writeable="true" readable="true" is_callback="false" name="H" type="guint"/> + <field cname="params" access="public" writeable="true" readable="true" is_callback="false" name="Params" type="GList*" element_type="gpointer"/> + <method name="AddParam" cname="gst_video_region_of_interest_meta_add_param" version="1.14"> + <return-type type="void"/> + <parameters> + <parameter name="s" type="GstStructure*" owned="true"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> + <method name="GetParam" cname="gst_video_region_of_interest_meta_get_param" version="1.14"> + <return-type type="GstStructure*"> + <warning>missing glib:type-name</warning> + </return-type> + <parameters> + <parameter name="name" type="const-gchar*"/> + </parameters> + </method> <method name="GetInfo" cname="gst_video_region_of_interest_meta_get_info" shared="true"> <return-type type="GstMetaInfo*"> <warning>missing glib:type-name</warning> @@ -29026,6 +29206,26 @@ <warning>missing glib:type-name</warning> </return-type> </method> + <method name="VideoOverlayInstallProperties" cname="gst_video_overlay_install_properties" shared="true"> + <return-type type="void"/> + <parameters> + <parameter name="oclass" type="GObjectClass*"> + <warning>missing glib:type-name</warning> + </parameter> + <parameter name="last_prop_id" type="gint"/> + </parameters> + </method> + <method name="VideoOverlaySetProperty" cname="gst_video_overlay_set_property" shared="true"> + <return-type type="gboolean"/> + <parameters> + <parameter name="_object" type="GObject*"/> + <parameter name="last_prop_id" type="gint"/> + <parameter name="property_id" type="guint"/> + <parameter name="value" type="GValue*"> + <warning>missing glib:type-name</warning> + </parameter> + </parameters> + </method> <method name="VideoRegionOfInterestMetaApiGetType" cname="gst_video_region_of_interest_meta_api_get_type" shared="true"> <return-type type="GType"/> </method> @@ -29107,7 +29307,7 @@ <constant value="src" ctype="gchar*" gtype="gchar*" name="VIDEO_DECODER_SRC_NAME"/> <constant value="sink" ctype="gchar*" gtype="gchar*" name="VIDEO_ENCODER_SINK_NAME"/> <constant value="src" ctype="gchar*" gtype="gchar*" name="VIDEO_ENCODER_SRC_NAME"/> - <constant value="{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE }" ctype="gchar*" gtype="gchar*" name="VIDEO_FORMATS_ALL"/> + <constant value="{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32 }" ctype="gchar*" gtype="gchar*" name="VIDEO_FORMATS_ALL"/> <constant value="(fraction) [ 0, max ]" ctype="gchar*" gtype="gchar*" name="VIDEO_FPS_RANGE"/> <constant value="4" ctype="gint" gtype="gint" name="VIDEO_MAX_COMPONENTS"/> <constant value="4" ctype="gint" gtype="gint" name="VIDEO_MAX_PLANES"/> diff --git a/sources/gstreamer-sharp.metadata b/sources/gstreamer-sharp.metadata index ca1c583..ab376ad 100644 --- a/sources/gstreamer-sharp.metadata +++ b/sources/gstreamer-sharp.metadata @@ -199,6 +199,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA <attr path="/api/namespace//struct[@cname='GstAudioDownmixMeta']" name="parent">GstMeta</attr> <attr path="/api/namespace//struct[@cname='GstAudioDownmixMeta']/field[@cname='from_position']" name="type">GstAudioChannelPosition*</attr> <attr path="/api/namespace//struct[@cname='GstAudioDownmixMeta']/field[@cname='to_position']" name="type">GstAudioChannelPosition*</attr> + <attr path="/api/namespace/boxed/method[@cname='gst_audio_converter_convert']" name="hidden">true</attr> + <remove-attr path="/api/namespace/boxed/method[@cname='gst_audio_info_set_format']/parameters/parameter[@name='position']" name="array_len"/> + <!-- FIXME Make GstAudioAggregator working --> + <attr path="/api/namespace/object[@cname='GstAudioAggregator']" name="hidden">true</attr> + <attr path="/api/namespace/object[@cname='GstAudioAggregatorPad']" name="hidden">true</attr> + <attr path="/api/namespace/object[@cname='GstAudioAggregatorConvertPad']" name="hidden">true</attr> <!-- Name clashes --> <attr path="//method[@cname='gst_buffer_foreach_meta']" name="hidden">true</attr> <!-- FIXME This should probably be usable --> |