Update code with latest GIR fixes.

Hide the following method that were previously totally broken and
now are wrongly auto generated (and fail to build):

    gst_rtsp_message_parse_auth_credentials
    gst_audio_ring_buffer_prepare_read
This commit is contained in:
Thibault Saunier 2018-05-17 15:38:32 -04:00
parent ff453e5f0d
commit 741cb333df
35 changed files with 440 additions and 509 deletions

View file

@ -43,12 +43,12 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [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); static extern IntPtr gst_audio_converter_get_config(IntPtr raw, out int in_rate, out int out_rate);
public Gst.Structure GetConfig(int in_rate, int out_rate) { public Gst.Structure GetConfig(out int in_rate, out int out_rate) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); 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); IntPtr raw_ret = gst_audio_converter_get_config(this_as_native, out in_rate, out out_rate);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false); 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); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);

View file

@ -1459,10 +1459,10 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_audio_decoder_get_parse_state(IntPtr raw, bool sync, bool eos); static extern void gst_audio_decoder_get_parse_state(IntPtr raw, out bool sync, out bool eos);
public void GetParseState(bool sync, bool eos) { public void GetParseState(out bool sync, out bool eos) {
gst_audio_decoder_get_parse_state(Handle, sync, eos); gst_audio_decoder_get_parse_state(Handle, out sync, out eos);
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]

View file

@ -113,10 +113,10 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_audio_info_convert(IntPtr raw, int src_fmt, long src_val, int dest_fmt, long dest_val); static extern bool gst_audio_info_convert(IntPtr raw, int src_fmt, long src_val, int dest_fmt, out long dest_val);
public bool Convert(Gst.Format src_fmt, long src_val, Gst.Format dest_fmt, long dest_val) { public bool Convert(Gst.Format src_fmt, long src_val, Gst.Format dest_fmt, out long dest_val) {
bool raw_ret = gst_audio_info_convert(Handle, (int) src_fmt, src_val, (int) dest_fmt, dest_val); bool raw_ret = gst_audio_info_convert(Handle, (int) src_fmt, src_val, (int) dest_fmt, out dest_val);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -747,14 +747,14 @@ namespace Gst.Audio {
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate uint CommitNativeDelegate (IntPtr inst, ulong sample, byte data, int in_samples, int out_samples, int accum); delegate uint CommitNativeDelegate (IntPtr inst, ulong sample, byte[] data, int in_samples, int out_samples, ref int accum);
static uint Commit_cb (IntPtr inst, ulong sample, byte data, int in_samples, int out_samples, int accum) static uint Commit_cb (IntPtr inst, ulong sample, byte[] data, int in_samples, int out_samples, ref int accum)
{ {
try { try {
AudioRingBuffer __obj = GLib.Object.GetObject (inst, false) as AudioRingBuffer; AudioRingBuffer __obj = GLib.Object.GetObject (inst, false) as AudioRingBuffer;
uint __result; uint __result;
__result = __obj.OnCommit (sample, data, in_samples, out_samples, accum); __result = __obj.OnCommit (sample, data, in_samples, out_samples, ref accum);
return __result; return __result;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
@ -764,12 +764,12 @@ namespace Gst.Audio {
} }
[GLib.DefaultSignalHandler(Type=typeof(Gst.Audio.AudioRingBuffer), ConnectionMethod="OverrideCommit")] [GLib.DefaultSignalHandler(Type=typeof(Gst.Audio.AudioRingBuffer), ConnectionMethod="OverrideCommit")]
protected virtual uint OnCommit (ulong sample, byte data, int in_samples, int out_samples, int accum) protected virtual uint OnCommit (ulong sample, byte[] data, int in_samples, int out_samples, ref int accum)
{ {
return InternalCommit (sample, data, in_samples, out_samples, accum); return InternalCommit (sample, data, in_samples, out_samples, ref accum);
} }
private uint InternalCommit (ulong sample, byte data, int in_samples, int out_samples, int accum) private uint InternalCommit (ulong sample, byte[] data, int in_samples, int out_samples, ref int accum)
{ {
CommitNativeDelegate unmanaged = null; CommitNativeDelegate unmanaged = null;
unsafe { unsafe {
@ -778,7 +778,7 @@ namespace Gst.Audio {
} }
if (unmanaged == null) return 0; if (unmanaged == null) return 0;
uint __result = unmanaged (this.Handle, sample, data, in_samples, out_samples, accum); uint __result = unmanaged (this.Handle, sample, data, in_samples, out_samples, ref accum);
return __result; return __result;
} }
@ -1038,19 +1038,19 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_audio_ring_buffer_commit(IntPtr raw, ulong sample, byte data, int in_samples, int out_samples, int accum); static extern uint gst_audio_ring_buffer_commit(IntPtr raw, ulong sample, byte[] data, int in_samples, int out_samples, ref int accum);
public uint Commit(ulong sample, byte data, int in_samples, int out_samples, int accum) { public uint Commit(ulong sample, byte[] data, int in_samples, int out_samples, ref int accum) {
uint raw_ret = gst_audio_ring_buffer_commit(Handle, sample, data, in_samples, out_samples, accum); uint raw_ret = gst_audio_ring_buffer_commit(Handle, sample, data, in_samples, out_samples, ref accum);
uint ret = raw_ret; uint ret = raw_ret;
return ret; return ret;
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_audio_ring_buffer_convert(IntPtr raw, int src_fmt, long src_val, int dest_fmt, long dest_val); static extern bool gst_audio_ring_buffer_convert(IntPtr raw, int src_fmt, long src_val, int dest_fmt, out long dest_val);
public bool Convert(Gst.Format src_fmt, long src_val, Gst.Format dest_fmt, long dest_val) { public bool Convert(Gst.Format src_fmt, long src_val, Gst.Format dest_fmt, out long dest_val) {
bool raw_ret = gst_audio_ring_buffer_convert(Handle, (int) src_fmt, src_val, (int) dest_fmt, dest_val); bool raw_ret = gst_audio_ring_buffer_convert(Handle, (int) src_fmt, src_val, (int) dest_fmt, out dest_val);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
@ -1132,19 +1132,10 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_audio_ring_buffer_prepare_read(IntPtr raw, int segment, byte readptr, int len); static extern uint gst_audio_ring_buffer_read(IntPtr raw, ulong sample, byte[] data, uint len, out ulong timestamp);
public bool PrepareRead(int segment, byte readptr, int len) { public uint Read(ulong sample, byte[] data, uint len, out ulong timestamp) {
bool raw_ret = gst_audio_ring_buffer_prepare_read(Handle, segment, readptr, len); uint raw_ret = gst_audio_ring_buffer_read(Handle, sample, data, len, out timestamp);
bool ret = raw_ret;
return ret;
}
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_audio_ring_buffer_read(IntPtr raw, ulong sample, byte data, uint len, ulong timestamp);
public uint Read(ulong sample, byte data, uint len, ulong timestamp) {
uint raw_ret = gst_audio_ring_buffer_read(Handle, sample, data, len, timestamp);
uint ret = raw_ret; uint ret = raw_ret;
return ret; return ret;
} }
@ -1187,11 +1178,15 @@ namespace Gst.Audio {
} }
[DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_audio_ring_buffer_set_channel_positions(IntPtr raw, int position); static extern void gst_audio_ring_buffer_set_channel_positions(IntPtr raw, int[] position);
public Gst.Audio.AudioChannelPosition ChannelPositions { public Gst.Audio.AudioChannelPosition[] ChannelPositions {
set { set {
gst_audio_ring_buffer_set_channel_positions(Handle, (int) value); int cnt_value = value == null ? 0 : value.Length;
int[] native_value = new int [cnt_value];
for (int i = 0; i < cnt_value; i++)
native_value [i] = (int) value[i];
gst_audio_ring_buffer_set_channel_positions(Handle, native_value);
} }
} }

View file

@ -203,6 +203,17 @@ namespace Gst.Base {
return ret; return ret;
} }
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_aggregator_pad_has_buffer(IntPtr raw);
public bool HasBuffer {
get {
bool raw_ret = gst_aggregator_pad_has_buffer(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_aggregator_pad_is_eos(IntPtr raw); static extern bool gst_aggregator_pad_is_eos(IntPtr raw);

View file

@ -910,10 +910,10 @@ namespace Gst.Base {
} }
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_base_parse_convert_default(IntPtr raw, int src_format, long src_value, int dest_format, long dest_value); static extern bool gst_base_parse_convert_default(IntPtr raw, int src_format, long src_value, int dest_format, out long dest_value);
public bool ConvertDefault(Gst.Format src_format, long src_value, Gst.Format dest_format, long dest_value) { public bool ConvertDefault(Gst.Format src_format, long src_value, Gst.Format dest_format, out long dest_value) {
bool raw_ret = gst_base_parse_convert_default(Handle, (int) src_format, src_value, (int) dest_format, dest_value); bool raw_ret = gst_base_parse_convert_default(Handle, (int) src_format, src_value, (int) dest_format, out dest_value);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -368,24 +368,17 @@ namespace Gst.Base {
} }
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_byte_writer_put_string_utf8(IntPtr raw, IntPtr[] data); static extern bool gst_byte_writer_put_string_utf8(IntPtr raw, IntPtr data);
public bool PutStringUtf8(string[] data) { public bool PutStringUtf8(string data) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
int cnt_data = data == null ? 0 : data.Length; IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
IntPtr[] native_data = new IntPtr [cnt_data + 1];
for (int i = 0; i < cnt_data; i++)
native_data [i] = GLib.Marshaller.StringToPtrGStrdup (data[i]);
native_data [cnt_data] = IntPtr.Zero;
bool raw_ret = gst_byte_writer_put_string_utf8(this_as_native, native_data); bool raw_ret = gst_byte_writer_put_string_utf8(this_as_native, native_data);
bool ret = raw_ret; bool ret = raw_ret;
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
for (int i = 0; i < native_data.Length - 1; i++) { GLib.Marshaller.Free (native_data);
data [i] = GLib.Marshaller.Utf8PtrToString (native_data[i]);
GLib.Marshaller.Free (native_data[i]);
}
return ret; return ret;
} }

View file

@ -90,20 +90,18 @@ namespace Gst.Base {
} }
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_collect_pads_clip_running_time(IntPtr raw, IntPtr cdata, IntPtr buf, IntPtr outbuf, IntPtr user_data); static extern int gst_collect_pads_clip_running_time(IntPtr raw, IntPtr cdata, IntPtr buf, out IntPtr outbuf, IntPtr user_data);
public Gst.FlowReturn ClipRunningTime(Gst.Base.CollectData cdata, Gst.Buffer buf, Gst.Buffer outbuf, IntPtr user_data) { public Gst.FlowReturn ClipRunningTime(Gst.Base.CollectData cdata, Gst.Buffer buf, out Gst.Buffer outbuf, IntPtr user_data) {
IntPtr native_cdata = GLib.Marshaller.StructureToPtrAlloc (cdata); IntPtr native_cdata = GLib.Marshaller.StructureToPtrAlloc (cdata);
int raw_ret = gst_collect_pads_clip_running_time(Handle, native_cdata, buf == null ? IntPtr.Zero : buf.Handle, outbuf == null ? IntPtr.Zero : outbuf.Handle, user_data); IntPtr native_outbuf;
int raw_ret = gst_collect_pads_clip_running_time(Handle, native_cdata, buf == null ? IntPtr.Zero : buf.Handle, out native_outbuf, user_data);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret; Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
Marshal.FreeHGlobal (native_cdata); Marshal.FreeHGlobal (native_cdata);
outbuf = native_outbuf == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_outbuf, typeof (Gst.Buffer), true);
return ret; return ret;
} }
public Gst.FlowReturn ClipRunningTime(Gst.Base.CollectData cdata, Gst.Buffer buf) {
return ClipRunningTime (cdata, buf, null, IntPtr.Zero);
}
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_collect_pads_event_default(IntPtr raw, IntPtr data, IntPtr evnt, bool discard); static extern bool gst_collect_pads_event_default(IntPtr raw, IntPtr data, IntPtr evnt, bool discard);

View file

@ -5,6 +5,6 @@ namespace Gst.Base {
using System; using System;
public delegate Gst.FlowReturn CollectPadsClipFunction(Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer inbuffer, Gst.Buffer outbuffer); public delegate Gst.FlowReturn CollectPadsClipFunction(Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer inbuffer, out Gst.Buffer outbuffer);
} }

View file

@ -36,9 +36,9 @@ namespace Gst.Base {
} }
[DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_type_find_helper_for_data(IntPtr obj, byte data, UIntPtr size, out int prob); static extern IntPtr gst_type_find_helper_for_data(IntPtr obj, byte[] data, UIntPtr size, out int prob);
public static Gst.Caps TypeFindHelperForData(Gst.Object obj, byte data, ulong size, out Gst.TypeFindProbability prob) { public static Gst.Caps TypeFindHelperForData(Gst.Object obj, byte[] data, ulong size, out Gst.TypeFindProbability prob) {
int native_prob; int native_prob;
IntPtr raw_ret = gst_type_find_helper_for_data(obj == null ? IntPtr.Zero : obj.Handle, data, new UIntPtr (size), out native_prob); IntPtr raw_ret = gst_type_find_helper_for_data(obj == null ? IntPtr.Zero : obj.Handle, data, new UIntPtr (size), out native_prob);
Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true); Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
@ -46,7 +46,7 @@ namespace Gst.Base {
return ret; return ret;
} }
public static Gst.Caps TypeFindHelperForData(byte data, ulong size, out Gst.TypeFindProbability prob) { public static Gst.Caps TypeFindHelperForData(byte[] data, ulong size, out Gst.TypeFindProbability prob) {
return TypeFindHelperForData (null, data, size, out prob); return TypeFindHelperForData (null, data, size, out prob);
} }

View file

@ -8,7 +8,7 @@ namespace Gst.BaseSharp {
#region Autogenerated code #region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int CollectPadsClipFunctionNative(IntPtr pads, IntPtr data, IntPtr inbuffer, IntPtr outbuffer, IntPtr user_data); internal delegate int CollectPadsClipFunctionNative(IntPtr pads, IntPtr data, IntPtr inbuffer, out IntPtr outbuffer, IntPtr user_data);
internal class CollectPadsClipFunctionInvoker { internal class CollectPadsClipFunctionInvoker {
@ -40,22 +40,28 @@ namespace Gst.BaseSharp {
} }
} }
Gst.FlowReturn InvokeNative (Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer inbuffer, Gst.Buffer outbuffer) Gst.FlowReturn InvokeNative (Gst.Base.CollectPads pads, Gst.Base.CollectData data, Gst.Buffer inbuffer, out Gst.Buffer outbuffer)
{ {
IntPtr native_data = GLib.Marshaller.StructureToPtrAlloc (data); IntPtr native_data = GLib.Marshaller.StructureToPtrAlloc (data);
inbuffer.Owned = false; inbuffer.Owned = false;
Gst.FlowReturn __result = (Gst.FlowReturn) native_cb (pads == null ? IntPtr.Zero : pads.Handle, native_data, inbuffer == null ? IntPtr.Zero : inbuffer.Handle, outbuffer == null ? IntPtr.Zero : outbuffer.Handle, __data); IntPtr native_outbuffer;
Gst.FlowReturn __result = (Gst.FlowReturn) native_cb (pads == null ? IntPtr.Zero : pads.Handle, native_data, inbuffer == null ? IntPtr.Zero : inbuffer.Handle, out native_outbuffer, __data);
Marshal.FreeHGlobal (native_data); Marshal.FreeHGlobal (native_data);
outbuffer = native_outbuffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_outbuffer, typeof (Gst.Buffer), true);
return __result; return __result;
} }
} }
internal class CollectPadsClipFunctionWrapper { internal class CollectPadsClipFunctionWrapper {
public int NativeCallback (IntPtr pads, IntPtr data, IntPtr inbuffer, IntPtr outbuffer, IntPtr user_data) public int NativeCallback (IntPtr pads, IntPtr data, IntPtr inbuffer, out IntPtr outbuffer, IntPtr user_data)
{ {
try { try {
Gst.FlowReturn __ret = managed (GLib.Object.GetObject(pads) as Gst.Base.CollectPads, Gst.Base.CollectData.New (data), inbuffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (inbuffer, typeof (Gst.Buffer), true), outbuffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (outbuffer, typeof (Gst.Buffer), false)); Gst.Buffer myoutbuffer;
Gst.FlowReturn __ret = managed (GLib.Object.GetObject(pads) as Gst.Base.CollectPads, Gst.Base.CollectData.New (data), inbuffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (inbuffer, typeof (Gst.Buffer), true), out myoutbuffer);
outbuffer = myoutbuffer == null ? IntPtr.Zero : myoutbuffer.Handle;
if (release_on_call) if (release_on_call)
gch.Free (); gch.Free ();
return (int) __ret; return (int) __ret;

View file

@ -8,7 +8,7 @@ namespace Gst.BaseSharp {
#region Autogenerated code #region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int TypeFindHelperGetRangeFunctionNative(IntPtr obj, IntPtr parent, ulong offset, uint length, IntPtr buffer); internal delegate int TypeFindHelperGetRangeFunctionNative(IntPtr obj, IntPtr parent, ulong offset, uint length, out IntPtr buffer);
internal class TypeFindHelperGetRangeFunctionInvoker { internal class TypeFindHelperGetRangeFunctionInvoker {
@ -40,19 +40,25 @@ namespace Gst.BaseSharp {
} }
} }
Gst.FlowReturn InvokeNative (Gst.Object obj, Gst.Object parent, ulong offset, uint length, Gst.Buffer buffer) Gst.FlowReturn InvokeNative (Gst.Object obj, Gst.Object parent, ulong offset, uint length, out Gst.Buffer buffer)
{ {
Gst.FlowReturn __result = (Gst.FlowReturn) native_cb (obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, length, buffer == null ? IntPtr.Zero : buffer.Handle); IntPtr native_buffer;
Gst.FlowReturn __result = (Gst.FlowReturn) native_cb (obj == null ? IntPtr.Zero : obj.Handle, parent == null ? IntPtr.Zero : parent.Handle, offset, length, out native_buffer);
buffer = native_buffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (native_buffer, typeof (Gst.Buffer), true);
return __result; return __result;
} }
} }
internal class TypeFindHelperGetRangeFunctionWrapper { internal class TypeFindHelperGetRangeFunctionWrapper {
public int NativeCallback (IntPtr obj, IntPtr parent, ulong offset, uint length, IntPtr buffer) public int NativeCallback (IntPtr obj, IntPtr parent, ulong offset, uint length, out IntPtr buffer)
{ {
try { try {
Gst.FlowReturn __ret = managed (GLib.Object.GetObject(obj) as Gst.Object, GLib.Object.GetObject(parent) as Gst.Object, offset, length, buffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (buffer, typeof (Gst.Buffer), false)); Gst.Buffer mybuffer;
Gst.FlowReturn __ret = managed (GLib.Object.GetObject(obj) as Gst.Object, GLib.Object.GetObject(parent) as Gst.Object, offset, length, out mybuffer);
buffer = mybuffer == null ? IntPtr.Zero : mybuffer.Handle;
if (release_on_call) if (release_on_call)
gch.Free (); gch.Free ();
return (int) __ret; return (int) __ret;

View file

@ -5,6 +5,6 @@ namespace Gst.Base {
using System; using System;
public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction(Gst.Object obj, Gst.Object parent, ulong offset, uint length, Gst.Buffer buffer); public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction(Gst.Object obj, Gst.Object parent, ulong offset, uint length, out Gst.Buffer buffer);
} }

View file

@ -17,7 +17,7 @@ namespace Gst.Rtp {
public const int RTCP_MAX_SDES_ITEM_COUNT = 31; public const int RTCP_MAX_SDES_ITEM_COUNT = 31;
public const int RTCP_REDUCED_SIZE_VALID_MASK = 57592; public const int RTCP_REDUCED_SIZE_VALID_MASK = 57592;
public const int RTCP_VALID_MASK = 57598; public const int RTCP_VALID_MASK = 57598;
public const int RTCP_VALID_VALUE = 0; public const int RTCP_VALID_VALUE = 200;
public const int RTCP_VERSION = 2; public const int RTCP_VERSION = 2;
public const string RTP_HDREXT_BASE = @"urn:ietf:params:rtp-hdrext:"; public const string RTP_HDREXT_BASE = @"urn:ietf:params:rtp-hdrext:";
public const string RTP_HDREXT_NTP_56 = @"ntp-56"; public const string RTP_HDREXT_NTP_56 = @"ntp-56";

View file

@ -176,10 +176,10 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_rtp_buffer_ext_timestamp(ulong exttimestamp, uint timestamp); static extern ulong gst_rtp_buffer_ext_timestamp(ref ulong exttimestamp, uint timestamp);
public static ulong RtpBufferExtTimestamp(ulong exttimestamp, uint timestamp) { public static ulong RtpBufferExtTimestamp(ref ulong exttimestamp, uint timestamp) {
ulong raw_ret = gst_rtp_buffer_ext_timestamp(exttimestamp, timestamp); ulong raw_ret = gst_rtp_buffer_ext_timestamp(ref exttimestamp, timestamp);
ulong ret = raw_ret; ulong ret = raw_ret;
return ret; return ret;
} }
@ -233,19 +233,19 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtp_hdrext_get_ntp_56(IntPtr data, uint size, ulong ntptime); static extern bool gst_rtp_hdrext_get_ntp_56(IntPtr[] data, uint size, out ulong ntptime);
public static bool RtpHdrextGetNtp56(IntPtr data, uint size, ulong ntptime) { public static bool RtpHdrextGetNtp56(IntPtr[] data, uint size, out ulong ntptime) {
bool raw_ret = gst_rtp_hdrext_get_ntp_56(data, size, ntptime); bool raw_ret = gst_rtp_hdrext_get_ntp_56(data, size, out ntptime);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtp_hdrext_get_ntp_64(IntPtr data, uint size, ulong ntptime); static extern bool gst_rtp_hdrext_get_ntp_64(IntPtr[] data, uint size, out ulong ntptime);
public static bool RtpHdrextGetNtp64(IntPtr data, uint size, ulong ntptime) { public static bool RtpHdrextGetNtp64(IntPtr[] data, uint size, out ulong ntptime) {
bool raw_ret = gst_rtp_hdrext_get_ntp_64(data, size, ntptime); bool raw_ret = gst_rtp_hdrext_get_ntp_64(data, size, out ntptime);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -35,9 +35,9 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtcp_packet_add_profile_specific_ext(IntPtr raw, byte data, uint len); static extern bool gst_rtcp_packet_add_profile_specific_ext(IntPtr raw, byte[] data, uint len);
public bool AddProfileSpecificExt(byte data, uint len) { public bool AddProfileSpecificExt(byte[] data, uint len) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_rtcp_packet_add_profile_specific_ext(this_as_native, data, len); bool raw_ret = gst_rtcp_packet_add_profile_specific_ext(this_as_native, data, len);
@ -187,9 +187,9 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtcp_packet_bye_add_ssrcs(IntPtr raw, uint ssrc, uint len); static extern bool gst_rtcp_packet_bye_add_ssrcs(IntPtr raw, uint[] ssrc, uint len);
public bool ByeAddSsrcs(uint ssrc, uint len) { public bool ByeAddSsrcs(uint[] ssrc, uint len) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_rtcp_packet_bye_add_ssrcs(this_as_native, ssrc, len); bool raw_ret = gst_rtcp_packet_bye_add_ssrcs(this_as_native, ssrc, len);
@ -419,12 +419,12 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtcp_packet_get_rb(IntPtr raw, uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr); static extern void gst_rtcp_packet_get_rb(IntPtr raw, uint nth, out uint ssrc, out byte fractionlost, out int packetslost, out uint exthighestseq, out uint jitter, out uint lsr, out uint dlsr);
public void GetRb(uint nth, uint ssrc, byte fractionlost, int packetslost, uint exthighestseq, uint jitter, uint lsr, uint dlsr) { public void GetRb(uint nth, out uint ssrc, out byte fractionlost, out int packetslost, out uint exthighestseq, out uint jitter, out uint lsr, out uint dlsr) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_rtcp_packet_get_rb(this_as_native, nth, ssrc, fractionlost, packetslost, exthighestseq, jitter, lsr, dlsr); gst_rtcp_packet_get_rb(this_as_native, nth, out ssrc, out fractionlost, out packetslost, out exthighestseq, out jitter, out lsr, out dlsr);
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
} }
@ -625,12 +625,12 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtcp_packet_sr_get_sender_info(IntPtr raw, uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count); static extern void gst_rtcp_packet_sr_get_sender_info(IntPtr raw, out uint ssrc, out ulong ntptime, out uint rtptime, out uint packet_count, out uint octet_count);
public void SrGetSenderInfo(uint ssrc, ulong ntptime, uint rtptime, uint packet_count, uint octet_count) { public void SrGetSenderInfo(out uint ssrc, out ulong ntptime, out uint rtptime, out uint packet_count, out uint octet_count) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_rtcp_packet_sr_get_sender_info(this_as_native, ssrc, ntptime, rtptime, packet_count, octet_count); gst_rtcp_packet_sr_get_sender_info(this_as_native, out ssrc, out ntptime, out rtptime, out packet_count, out octet_count);
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
} }

View file

@ -125,9 +125,9 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtp_base_audio_payload_push(IntPtr raw, byte data, uint payload_len, ulong timestamp); static extern int gst_rtp_base_audio_payload_push(IntPtr raw, byte[] data, uint payload_len, ulong timestamp);
public Gst.FlowReturn Push(byte data, uint payload_len, ulong timestamp) { public Gst.FlowReturn Push(byte[] data, uint payload_len, ulong timestamp) {
int raw_ret = gst_rtp_base_audio_payload_push(Handle, data, payload_len, timestamp); int raw_ret = gst_rtp_base_audio_payload_push(Handle, data, payload_len, timestamp);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret; Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
return ret; return ret;

View file

@ -501,10 +501,10 @@ namespace Gst.Rtp {
} }
[DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_rtp_buffer_ext_timestamp(ulong exttimestamp, uint timestamp); static extern ulong gst_rtp_buffer_ext_timestamp(ref ulong exttimestamp, uint timestamp);
public static ulong ExtTimestamp(ulong exttimestamp, uint timestamp) { public static ulong ExtTimestamp(ref ulong exttimestamp, uint timestamp) {
ulong raw_ret = gst_rtp_buffer_ext_timestamp(exttimestamp, timestamp); ulong raw_ret = gst_rtp_buffer_ext_timestamp(ref exttimestamp, timestamp);
ulong ret = raw_ret; ulong ret = raw_ret;
return ret; return ret;
} }

View file

@ -238,11 +238,11 @@ namespace Gst.Rtsp {
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_range_get_times(IntPtr range, ulong min, ulong max); static extern bool gst_rtsp_range_get_times(IntPtr range, out ulong min, out ulong max);
public static bool RtspRangeGetTimes(Gst.Rtsp.RTSPTimeRange range, ulong min, ulong max) { public static bool RtspRangeGetTimes(Gst.Rtsp.RTSPTimeRange range, out ulong min, out ulong max) {
IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range); IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range);
bool raw_ret = gst_rtsp_range_get_times(native_range, min, max); bool raw_ret = gst_rtsp_range_get_times(native_range, out min, out max);
bool ret = raw_ret; bool ret = raw_ret;
Marshal.FreeHGlobal (native_range); Marshal.FreeHGlobal (native_range);
return ret; return ret;
@ -251,12 +251,13 @@ namespace Gst.Rtsp {
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_range_parse(IntPtr rangestr, IntPtr range); static extern int gst_rtsp_range_parse(IntPtr rangestr, IntPtr range);
public static Gst.Rtsp.RTSPResult RtspRangeParse(string rangestr, Gst.Rtsp.RTSPTimeRange range) { public static Gst.Rtsp.RTSPResult RtspRangeParse(string rangestr, out Gst.Rtsp.RTSPTimeRange range) {
IntPtr native_rangestr = GLib.Marshaller.StringToPtrGStrdup (rangestr); IntPtr native_rangestr = GLib.Marshaller.StringToPtrGStrdup (rangestr);
IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range); IntPtr native_range = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Rtsp.RTSPTimeRange)));
int raw_ret = gst_rtsp_range_parse(native_rangestr, native_range); int raw_ret = gst_rtsp_range_parse(native_rangestr, native_range);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret; Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
GLib.Marshaller.Free (native_rangestr); GLib.Marshaller.Free (native_rangestr);
range = Gst.Rtsp.RTSPTimeRange.New (native_range);
Marshal.FreeHGlobal (native_range); Marshal.FreeHGlobal (native_range);
return ret; return ret;
} }
@ -291,13 +292,13 @@ namespace Gst.Rtsp {
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_transport_get_manager(int trans, IntPtr manager, uint option); static extern int gst_rtsp_transport_get_manager(int trans, out IntPtr manager, uint option);
public static Gst.Rtsp.RTSPResult RtspTransportGetManager(Gst.Rtsp.RTSPTransMode trans, string manager, uint option) { public static Gst.Rtsp.RTSPResult RtspTransportGetManager(Gst.Rtsp.RTSPTransMode trans, out string manager, uint option) {
IntPtr native_manager = GLib.Marshaller.StringToPtrGStrdup (manager); IntPtr native_manager;
int raw_ret = gst_rtsp_transport_get_manager((int) trans, native_manager, option); int raw_ret = gst_rtsp_transport_get_manager((int) trans, out native_manager, option);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret; Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
GLib.Marshaller.Free (native_manager); manager = GLib.Marshaller.Utf8PtrToString (native_manager);
return ret; return ret;
} }

View file

@ -205,19 +205,6 @@ namespace Gst.Rtsp {
return InitResponse (code, null, Gst.Rtsp.RTSPMessage.Zero); return InitResponse (code, null, Gst.Rtsp.RTSPMessage.Zero);
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_message_parse_auth_credentials(IntPtr raw, int field);
public Gst.Rtsp.RTSPAuthCredential ParseAuthCredentials(Gst.Rtsp.RTSPHeaderField field) {
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_rtsp_message_parse_auth_credentials(this_as_native, (int) field);
Gst.Rtsp.RTSPAuthCredential ret = Gst.Rtsp.RTSPAuthCredential.New (raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_message_parse_data(IntPtr raw, out byte channel); static extern int gst_rtsp_message_parse_data(IntPtr raw, out byte channel);
@ -245,7 +232,7 @@ namespace Gst.Rtsp {
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
method = (Gst.Rtsp.RTSPMethod) native_method; method = (Gst.Rtsp.RTSPMethod) native_method;
uri = GLib.Marshaller.PtrToStringGFree(native_uri); uri = GLib.Marshaller.Utf8PtrToString (native_uri);
version = (Gst.Rtsp.RTSPVersion) native_version; version = (Gst.Rtsp.RTSPVersion) native_version;
return ret; return ret;
} }
@ -264,7 +251,7 @@ namespace Gst.Rtsp {
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
code = (Gst.Rtsp.RTSPStatusCode) native_code; code = (Gst.Rtsp.RTSPStatusCode) native_code;
reason = GLib.Marshaller.PtrToStringGFree(native_reason); reason = GLib.Marshaller.Utf8PtrToString (native_reason);
version = (Gst.Rtsp.RTSPVersion) native_version; version = (Gst.Rtsp.RTSPVersion) native_version;
return ret; return ret;
} }

View file

@ -44,11 +44,11 @@ namespace Gst.Rtsp {
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_range_get_times(IntPtr range, ulong min, ulong max); static extern bool gst_rtsp_range_get_times(IntPtr range, out ulong min, out ulong max);
public static bool GetTimes(Gst.Rtsp.RTSPTimeRange range, ulong min, ulong max) { public static bool GetTimes(Gst.Rtsp.RTSPTimeRange range, out ulong min, out ulong max) {
IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range); IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range);
bool raw_ret = gst_rtsp_range_get_times(native_range, min, max); bool raw_ret = gst_rtsp_range_get_times(native_range, out min, out max);
bool ret = raw_ret; bool ret = raw_ret;
Marshal.FreeHGlobal (native_range); Marshal.FreeHGlobal (native_range);
return ret; return ret;
@ -57,12 +57,13 @@ namespace Gst.Rtsp {
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_range_parse(IntPtr rangestr, IntPtr range); static extern int gst_rtsp_range_parse(IntPtr rangestr, IntPtr range);
public static Gst.Rtsp.RTSPResult Parse(string rangestr, Gst.Rtsp.RTSPTimeRange range) { public static Gst.Rtsp.RTSPResult Parse(string rangestr, out Gst.Rtsp.RTSPTimeRange range) {
IntPtr native_rangestr = GLib.Marshaller.StringToPtrGStrdup (rangestr); IntPtr native_rangestr = GLib.Marshaller.StringToPtrGStrdup (rangestr);
IntPtr native_range = GLib.Marshaller.StructureToPtrAlloc (range); IntPtr native_range = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Rtsp.RTSPTimeRange)));
int raw_ret = gst_rtsp_range_parse(native_rangestr, native_range); int raw_ret = gst_rtsp_range_parse(native_rangestr, native_range);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret; Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
GLib.Marshaller.Free (native_rangestr); GLib.Marshaller.Free (native_rangestr);
range = Gst.Rtsp.RTSPTimeRange.New (native_range);
Marshal.FreeHGlobal (native_range); Marshal.FreeHGlobal (native_range);
return ret; return ret;
} }

View file

@ -93,13 +93,13 @@ namespace Gst.Rtsp {
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_transport_get_manager(int trans, IntPtr manager, uint option); static extern int gst_rtsp_transport_get_manager(int trans, out IntPtr manager, uint option);
public static Gst.Rtsp.RTSPResult GetManager(Gst.Rtsp.RTSPTransMode trans, string manager, uint option) { public static Gst.Rtsp.RTSPResult GetManager(Gst.Rtsp.RTSPTransMode trans, out string manager, uint option) {
IntPtr native_manager = GLib.Marshaller.StringToPtrGStrdup (manager); IntPtr native_manager;
int raw_ret = gst_rtsp_transport_get_manager((int) trans, native_manager, option); int raw_ret = gst_rtsp_transport_get_manager((int) trans, out native_manager, option);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret; Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
GLib.Marshaller.Free (native_manager); manager = GLib.Marshaller.Utf8PtrToString (native_manager);
return ret; return ret;
} }

View file

@ -54,12 +54,12 @@ namespace Gst.Rtsp {
} }
[DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_url_get_port(IntPtr raw, ushort port); static extern int gst_rtsp_url_get_port(IntPtr raw, out ushort port);
public Gst.Rtsp.RTSPResult GetPort(ushort port) { public Gst.Rtsp.RTSPResult GetPort(out ushort port) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
int raw_ret = gst_rtsp_url_get_port(this_as_native, port); int raw_ret = gst_rtsp_url_get_port(this_as_native, out port);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret; Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);

View file

@ -77,9 +77,9 @@ namespace Gst.Video {
public const string VIDEO_RESAMPLER_OPT_SHARPNESS = @"GstVideoResampler.sharpness"; public const string VIDEO_RESAMPLER_OPT_SHARPNESS = @"GstVideoResampler.sharpness";
public const string VIDEO_SCALER_OPT_DITHER_METHOD = @"GstVideoScaler.dither-method"; public const string VIDEO_SCALER_OPT_DITHER_METHOD = @"GstVideoScaler.dither-method";
public const string VIDEO_SIZE_RANGE = @"(int) [ 1, max ]"; public const string VIDEO_SIZE_RANGE = @"(int) [ 1, max ]";
public const int VIDEO_TILE_TYPE_MASK = 0; public const int VIDEO_TILE_TYPE_MASK = 65535;
public const int VIDEO_TILE_TYPE_SHIFT = 16; public const int VIDEO_TILE_TYPE_SHIFT = 16;
public const int VIDEO_TILE_X_TILES_MASK = 0; public const int VIDEO_TILE_X_TILES_MASK = 65535;
public const int VIDEO_TILE_Y_TILES_SHIFT = 16; public const int VIDEO_TILE_Y_TILES_SHIFT = 16;
#endregion #endregion
} }

View file

@ -439,10 +439,10 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_color_matrix_get_Kr_Kb(int matrix, double Kr, double Kb); static extern bool gst_video_color_matrix_get_Kr_Kb(int matrix, out double Kr, out double Kb);
public static bool VideoColorMatrixGetKrKb(Gst.Video.VideoColorMatrix matrix, double Kr, double Kb) { public static bool VideoColorMatrixGetKrKb(Gst.Video.VideoColorMatrix matrix, out double Kr, out double Kb) {
bool raw_ret = gst_video_color_matrix_get_Kr_Kb((int) matrix, Kr, Kb); bool raw_ret = gst_video_color_matrix_get_Kr_Kb((int) matrix, out Kr, out Kb);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
@ -457,10 +457,12 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_color_range_offsets(int range, IntPtr info, out int offset, out int scale); static extern void gst_video_color_range_offsets(int range, IntPtr info, out int[] offset, out int[] scale);
public static void VideoColorRangeOffsets(Gst.Video.VideoColorRange range, Gst.Video.VideoFormatInfo info, out int offset, out int scale) { public static void VideoColorRangeOffsets(Gst.Video.VideoColorRange range, Gst.Video.VideoFormatInfo info, out int[] offset, out int[] scale) {
IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info); IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info);
offset = new int[4];
scale = new int[4];
gst_video_color_range_offsets((int) range, native_info, out offset, out scale); gst_video_color_range_offsets((int) range, native_info, out offset, out scale);
Marshal.FreeHGlobal (native_info); Marshal.FreeHGlobal (native_info);
} }
@ -575,10 +577,10 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_event_parse_still_frame(IntPtr evnt, bool in_still); static extern bool gst_video_event_parse_still_frame(IntPtr evnt, out bool in_still);
public static bool VideoEventParseStillFrame(Gst.Event evnt, bool in_still) { public static bool VideoEventParseStillFrame(Gst.Event evnt, out bool in_still) {
bool raw_ret = gst_video_event_parse_still_frame(evnt == null ? IntPtr.Zero : evnt.Handle, in_still); bool raw_ret = gst_video_event_parse_still_frame(evnt == null ? IntPtr.Zero : evnt.Handle, out in_still);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -8,10 +8,10 @@ namespace Gst.Video {
#region Autogenerated code #region Autogenerated code
public partial interface IVideoOrientation : GLib.IWrapper { public partial interface IVideoOrientation : GLib.IWrapper {
bool GetHcenter(int center); bool GetHcenter(out int center);
bool GetHflip(bool flip); bool GetHflip(out bool flip);
bool GetVcenter(int center); bool GetVcenter(out int center);
bool GetVflip(bool flip); bool GetVflip(out bool flip);
bool SetHcenter(int center); bool SetHcenter(int center);
bool SetHflip(bool flip); bool SetHflip(bool flip);
bool SetVcenter(int center); bool SetVcenter(int center);
@ -21,10 +21,10 @@ namespace Gst.Video {
[GLib.GInterface (typeof (VideoOrientationAdapter))] [GLib.GInterface (typeof (VideoOrientationAdapter))]
public partial interface IVideoOrientationImplementor : GLib.IWrapper { public partial interface IVideoOrientationImplementor : GLib.IWrapper {
bool GetHflip (bool flip); bool GetHflip (out bool flip);
bool GetVflip (bool flip); bool GetVflip (out bool flip);
bool GetHcenter (int center); bool GetHcenter (out int center);
bool GetVcenter (int center); bool GetVcenter (out int center);
bool SetHflip (bool flip); bool SetHflip (bool flip);
bool SetVflip (bool flip); bool SetVflip (bool flip);
bool SetHcenter (int center); bool SetHcenter (int center);

View file

@ -229,10 +229,10 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_info_convert(IntPtr raw, int src_format, long src_value, int dest_format, long dest_value); static extern bool gst_video_info_convert(IntPtr raw, int src_format, long src_value, int dest_format, out long dest_value);
public bool Convert(Gst.Format src_format, long src_value, Gst.Format dest_format, long dest_value) { public bool Convert(Gst.Format src_format, long src_value, Gst.Format dest_format, out long dest_value) {
bool raw_ret = gst_video_info_convert(Handle, (int) src_format, src_value, (int) dest_format, dest_value); bool raw_ret = gst_video_info_convert(Handle, (int) src_format, src_value, (int) dest_format, out dest_value);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -44,13 +44,13 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_map(IntPtr raw, uint plane, IntPtr info, IntPtr data, int stride, int flags); static extern bool gst_video_meta_map(IntPtr raw, uint plane, IntPtr info, out IntPtr data, out int stride, int flags);
public bool Map(uint plane, Gst.MapInfo info, IntPtr data, int stride, Gst.MapFlags flags) { public bool Map(uint plane, Gst.MapInfo info, out IntPtr data, out int stride, Gst.MapFlags flags) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); 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); System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info); IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info);
bool raw_ret = gst_video_meta_map(this_as_native, plane, native_info, data, stride, (int) flags); bool raw_ret = gst_video_meta_map(this_as_native, plane, native_info, out data, out stride, (int) flags);
bool ret = raw_ret; bool ret = raw_ret;
ReadNative (this_as_native, ref this); ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);

View file

@ -37,14 +37,14 @@ namespace Gst.Video {
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetHflipNativeDelegate (IntPtr inst, bool flip); delegate bool GetHflipNativeDelegate (IntPtr inst, out bool flip);
static bool GetHflip_cb (IntPtr inst, bool flip) static bool GetHflip_cb (IntPtr inst, out bool flip)
{ {
try { try {
IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor; IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor;
bool __result; bool __result;
__result = __obj.GetHflip (flip); __result = __obj.GetHflip (out flip);
return __result; return __result;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
@ -54,14 +54,14 @@ namespace Gst.Video {
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetVflipNativeDelegate (IntPtr inst, bool flip); delegate bool GetVflipNativeDelegate (IntPtr inst, out bool flip);
static bool GetVflip_cb (IntPtr inst, bool flip) static bool GetVflip_cb (IntPtr inst, out bool flip)
{ {
try { try {
IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor; IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor;
bool __result; bool __result;
__result = __obj.GetVflip (flip); __result = __obj.GetVflip (out flip);
return __result; return __result;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
@ -71,14 +71,14 @@ namespace Gst.Video {
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetHcenterNativeDelegate (IntPtr inst, int center); delegate bool GetHcenterNativeDelegate (IntPtr inst, out int center);
static bool GetHcenter_cb (IntPtr inst, int center) static bool GetHcenter_cb (IntPtr inst, out int center)
{ {
try { try {
IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor; IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor;
bool __result; bool __result;
__result = __obj.GetHcenter (center); __result = __obj.GetHcenter (out center);
return __result; return __result;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
@ -88,14 +88,14 @@ namespace Gst.Video {
} }
[UnmanagedFunctionPointer (CallingConvention.Cdecl)] [UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool GetVcenterNativeDelegate (IntPtr inst, int center); delegate bool GetVcenterNativeDelegate (IntPtr inst, out int center);
static bool GetVcenter_cb (IntPtr inst, int center) static bool GetVcenter_cb (IntPtr inst, out int center)
{ {
try { try {
IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor; IVideoOrientationImplementor __obj = GLib.Object.GetObject (inst, false) as IVideoOrientationImplementor;
bool __result; bool __result;
__result = __obj.GetVcenter (center); __result = __obj.GetVcenter (out center);
return __result; return __result;
} catch (Exception e) { } catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true); GLib.ExceptionManager.RaiseUnhandledException (e, true);
@ -266,37 +266,37 @@ namespace Gst.Video {
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_orientation_get_hcenter(IntPtr raw, int center); static extern bool gst_video_orientation_get_hcenter(IntPtr raw, out int center);
public bool GetHcenter(int center) { public bool GetHcenter(out int center) {
bool raw_ret = gst_video_orientation_get_hcenter(Handle, center); bool raw_ret = gst_video_orientation_get_hcenter(Handle, out center);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_orientation_get_hflip(IntPtr raw, bool flip); static extern bool gst_video_orientation_get_hflip(IntPtr raw, out bool flip);
public bool GetHflip(bool flip) { public bool GetHflip(out bool flip) {
bool raw_ret = gst_video_orientation_get_hflip(Handle, flip); bool raw_ret = gst_video_orientation_get_hflip(Handle, out flip);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_orientation_get_vcenter(IntPtr raw, int center); static extern bool gst_video_orientation_get_vcenter(IntPtr raw, out int center);
public bool GetVcenter(int center) { public bool GetVcenter(out int center) {
bool raw_ret = gst_video_orientation_get_vcenter(Handle, center); bool raw_ret = gst_video_orientation_get_vcenter(Handle, out center);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }
[DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_orientation_get_vflip(IntPtr raw, bool flip); static extern bool gst_video_orientation_get_vflip(IntPtr raw, out bool flip);
public bool GetVflip(bool flip) { public bool GetVflip(out bool flip) {
bool raw_ret = gst_video_orientation_get_vflip(Handle, flip); bool raw_ret = gst_video_orientation_get_vflip(Handle, out flip);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
} }

View file

@ -57,11 +57,11 @@ namespace Gst {
public const int MAP_READWRITE = 3; public const int MAP_READWRITE = 3;
public const string META_TAG_MEMORY_STR = @"memory"; public const string META_TAG_MEMORY_STR = @"memory";
public const long MSECOND = 1000000; public const long MSECOND = 1000000;
public const int PARAM_CONTROLLABLE = 2; public const int PARAM_CONTROLLABLE = 512;
public const int PARAM_MUTABLE_PAUSED = 8; public const int PARAM_MUTABLE_PAUSED = 2048;
public const int PARAM_MUTABLE_PLAYING = 16; public const int PARAM_MUTABLE_PLAYING = 4096;
public const int PARAM_MUTABLE_READY = 4; public const int PARAM_MUTABLE_READY = 1024;
public const int PARAM_USER_SHIFT = 256; public const int PARAM_USER_SHIFT = 65536;
public const string PROTECTION_SYSTEM_ID_CAPS_FIELD = @"protection-system"; public const string PROTECTION_SYSTEM_ID_CAPS_FIELD = @"protection-system";
public const string PTR_FORMAT = @"paA"; public const string PTR_FORMAT = @"paA";
public const int QUERY_NUM_SHIFT = 8; public const int QUERY_NUM_SHIFT = 8;

View file

@ -170,6 +170,51 @@ namespace Gst {
public MiniObject(IntPtr raw) : base(raw) {} public MiniObject(IntPtr raw) : base(raw) {}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_mini_object_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_mini_object_ref (raw);
Owned = true;
}
}
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_mini_object_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_mini_object_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_mini_object_unref (handle);
return false;
}
}
~MiniObject ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI. // Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null; static GLib.AbiStruct _abi_info = null;

View file

@ -165,15 +165,28 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_freeform_string_to_utf8(IntPtr data, int size, IntPtr env_vars); static extern IntPtr gst_tag_freeform_string_to_utf8(IntPtr[] data, int size, IntPtr[] env_vars);
public static string FreeformStringToUtf8(string data, int size, string env_vars) { public static string FreeformStringToUtf8(string[] data, int size, string[] env_vars) {
IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data); int cnt_data = data == null ? 0 : data.Length;
IntPtr native_env_vars = GLib.Marshaller.StringToPtrGStrdup (env_vars); IntPtr[] native_data = new IntPtr [cnt_data];
for (int i = 0; i < cnt_data; i++)
native_data [i] = GLib.Marshaller.StringToPtrGStrdup (data[i]);
int cnt_env_vars = env_vars == null ? 0 : env_vars.Length;
IntPtr[] native_env_vars = new IntPtr [cnt_env_vars + 1];
for (int i = 0; i < cnt_env_vars; i++)
native_env_vars [i] = GLib.Marshaller.StringToPtrGStrdup (env_vars[i]);
native_env_vars [cnt_env_vars] = IntPtr.Zero;
IntPtr raw_ret = gst_tag_freeform_string_to_utf8(native_data, size, native_env_vars); IntPtr raw_ret = gst_tag_freeform_string_to_utf8(native_data, size, native_env_vars);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_data); for (int i = 0; i < native_data.Length; i++) {
GLib.Marshaller.Free (native_env_vars); data [i] = GLib.Marshaller.Utf8PtrToString (native_data[i]);
GLib.Marshaller.Free (native_data[i]);
}
for (int i = 0; i < native_env_vars.Length - 1; i++) {
env_vars [i] = GLib.Marshaller.Utf8PtrToString (native_env_vars[i]);
GLib.Marshaller.Free (native_env_vars[i]);
}
return ret; return ret;
} }
@ -368,18 +381,18 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_image_data_to_image_sample(byte image_data, uint image_data_len, int image_type); static extern IntPtr gst_tag_image_data_to_image_sample(byte[] image_data, uint image_data_len, int image_type);
public static Gst.Sample ImageDataToImageSample(byte image_data, uint image_data_len, Gst.Tags.TagImageType image_type) { public static Gst.Sample ImageDataToImageSample(byte[] image_data, uint image_data_len, Gst.Tags.TagImageType image_type) {
IntPtr raw_ret = gst_tag_image_data_to_image_sample(image_data, image_data_len, (int) image_type); IntPtr raw_ret = gst_tag_image_data_to_image_sample(image_data, image_data_len, (int) image_type);
Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true); Gst.Sample ret = raw_ret == IntPtr.Zero ? null : (Gst.Sample) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Sample), true);
return ret; return ret;
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_tag_list_add_id3_image(IntPtr tag_list, byte image_data, uint image_data_len, uint id3_picture_type); static extern bool gst_tag_list_add_id3_image(IntPtr tag_list, byte[] image_data, uint image_data_len, uint id3_picture_type);
public static bool ListAddId3Image(Gst.TagList tag_list, byte image_data, uint image_data_len, uint id3_picture_type) { public static bool ListAddId3Image(Gst.TagList tag_list, byte[] image_data, uint image_data_len, uint id3_picture_type) {
bool raw_ret = gst_tag_list_add_id3_image(tag_list == null ? IntPtr.Zero : tag_list.Handle, image_data, image_data_len, id3_picture_type); bool raw_ret = gst_tag_list_add_id3_image(tag_list == null ? IntPtr.Zero : tag_list.Handle, image_data, image_data_len, id3_picture_type);
bool ret = raw_ret; bool ret = raw_ret;
return ret; return ret;
@ -413,24 +426,24 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_list_from_vorbiscomment(byte data, UIntPtr size, byte id_data, uint id_data_length, IntPtr vendor_string); static extern IntPtr gst_tag_list_from_vorbiscomment(byte[] data, UIntPtr size, byte[] id_data, uint id_data_length, out IntPtr vendor_string);
public static Gst.TagList ListFromVorbiscomment(byte data, ulong size, byte id_data, uint id_data_length, string vendor_string) { public static Gst.TagList ListFromVorbiscomment(byte[] data, ulong size, byte[] id_data, uint id_data_length, out string vendor_string) {
IntPtr native_vendor_string = GLib.Marshaller.StringToPtrGStrdup (vendor_string); IntPtr native_vendor_string;
IntPtr raw_ret = gst_tag_list_from_vorbiscomment(data, new UIntPtr (size), id_data, id_data_length, native_vendor_string); IntPtr raw_ret = gst_tag_list_from_vorbiscomment(data, new UIntPtr (size), id_data, id_data_length, out native_vendor_string);
Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true); Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true);
GLib.Marshaller.Free (native_vendor_string); vendor_string = GLib.Marshaller.PtrToStringGFree(native_vendor_string);
return ret; return ret;
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_list_from_vorbiscomment_buffer(IntPtr buffer, byte id_data, uint id_data_length, IntPtr vendor_string); static extern IntPtr gst_tag_list_from_vorbiscomment_buffer(IntPtr buffer, byte[] id_data, uint id_data_length, out IntPtr vendor_string);
public static Gst.TagList ListFromVorbiscommentBuffer(Gst.Buffer buffer, byte id_data, uint id_data_length, string vendor_string) { public static Gst.TagList ListFromVorbiscommentBuffer(Gst.Buffer buffer, byte[] id_data, uint id_data_length, out string vendor_string) {
IntPtr native_vendor_string = GLib.Marshaller.StringToPtrGStrdup (vendor_string); IntPtr native_vendor_string;
IntPtr raw_ret = gst_tag_list_from_vorbiscomment_buffer(buffer == null ? IntPtr.Zero : buffer.Handle, id_data, id_data_length, native_vendor_string); IntPtr raw_ret = gst_tag_list_from_vorbiscomment_buffer(buffer == null ? IntPtr.Zero : buffer.Handle, id_data, id_data_length, out native_vendor_string);
Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true); Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true);
GLib.Marshaller.Free (native_vendor_string); vendor_string = GLib.Marshaller.PtrToStringGFree(native_vendor_string);
return ret; return ret;
} }
@ -444,9 +457,10 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_list_new_from_id3v1(byte data); static extern IntPtr gst_tag_list_new_from_id3v1(byte[] data);
public static Gst.TagList ListNewFromId3v1(byte data) { public static Gst.TagList ListNewFromId3v1(byte[] data) {
data = new byte[128];
IntPtr raw_ret = gst_tag_list_new_from_id3v1(data); IntPtr raw_ret = gst_tag_list_new_from_id3v1(data);
Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true); Gst.TagList ret = raw_ret == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TagList), true);
return ret; return ret;
@ -471,9 +485,9 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_list_to_vorbiscomment_buffer(IntPtr list, byte id_data, uint id_data_length, IntPtr vendor_string); static extern IntPtr gst_tag_list_to_vorbiscomment_buffer(IntPtr list, byte[] id_data, uint id_data_length, IntPtr vendor_string);
public static Gst.Buffer ListToVorbiscommentBuffer(Gst.TagList list, byte id_data, uint id_data_length, string vendor_string) { public static Gst.Buffer ListToVorbiscommentBuffer(Gst.TagList list, byte[] id_data, uint id_data_length, string vendor_string) {
IntPtr native_vendor_string = GLib.Marshaller.StringToPtrGStrdup (vendor_string); IntPtr native_vendor_string = GLib.Marshaller.StringToPtrGStrdup (vendor_string);
IntPtr raw_ret = gst_tag_list_to_vorbiscomment_buffer(list == null ? IntPtr.Zero : list.Handle, id_data, id_data_length, native_vendor_string); IntPtr raw_ret = gst_tag_list_to_vorbiscomment_buffer(list == null ? IntPtr.Zero : list.Handle, id_data, id_data_length, native_vendor_string);
Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true); Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
@ -481,31 +495,42 @@ namespace Gst {
return ret; return ret;
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] public static Gst.Buffer ListToVorbiscommentBuffer(Gst.TagList list, byte[] id_data, uint id_data_length) {
static extern IntPtr gst_tag_list_to_xmp_buffer(IntPtr list, bool read_only, IntPtr schemas); return ListToVorbiscommentBuffer (list, id_data, id_data_length, null);
}
public static Gst.Buffer ListToXmpBuffer(Gst.TagList list, bool read_only, string schemas) { [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
IntPtr native_schemas = GLib.Marshaller.StringToPtrGStrdup (schemas); static extern IntPtr gst_tag_list_to_xmp_buffer(IntPtr list, bool read_only, IntPtr[] schemas);
public static Gst.Buffer ListToXmpBuffer(Gst.TagList list, bool read_only, string[] schemas) {
int cnt_schemas = schemas == null ? 0 : schemas.Length;
IntPtr[] native_schemas = new IntPtr [cnt_schemas + 1];
for (int i = 0; i < cnt_schemas; i++)
native_schemas [i] = GLib.Marshaller.StringToPtrGStrdup (schemas[i]);
native_schemas [cnt_schemas] = IntPtr.Zero;
IntPtr raw_ret = gst_tag_list_to_xmp_buffer(list == null ? IntPtr.Zero : list.Handle, read_only, native_schemas); IntPtr raw_ret = gst_tag_list_to_xmp_buffer(list == null ? IntPtr.Zero : list.Handle, read_only, native_schemas);
Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true); Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
GLib.Marshaller.Free (native_schemas); for (int i = 0; i < native_schemas.Length - 1; i++) {
schemas [i] = GLib.Marshaller.Utf8PtrToString (native_schemas[i]);
GLib.Marshaller.Free (native_schemas[i]);
}
return ret; return ret;
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_tag_parse_extended_comment(IntPtr ext_comment, IntPtr key, IntPtr lang, IntPtr value, bool fail_if_no_key); static extern bool gst_tag_parse_extended_comment(IntPtr ext_comment, out IntPtr key, out IntPtr lang, out IntPtr value, bool fail_if_no_key);
public static bool ParseExtendedComment(string ext_comment, string key, string lang, string value, bool fail_if_no_key) { public static bool ParseExtendedComment(string ext_comment, out string key, out string lang, out string value, bool fail_if_no_key) {
IntPtr native_ext_comment = GLib.Marshaller.StringToPtrGStrdup (ext_comment); IntPtr native_ext_comment = GLib.Marshaller.StringToPtrGStrdup (ext_comment);
IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key); IntPtr native_key;
IntPtr native_lang = GLib.Marshaller.StringToPtrGStrdup (lang); IntPtr native_lang;
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value); IntPtr native_value;
bool raw_ret = gst_tag_parse_extended_comment(native_ext_comment, native_key, native_lang, native_value, fail_if_no_key); bool raw_ret = gst_tag_parse_extended_comment(native_ext_comment, out native_key, out native_lang, out native_value, fail_if_no_key);
bool ret = raw_ret; bool ret = raw_ret;
GLib.Marshaller.Free (native_ext_comment); GLib.Marshaller.Free (native_ext_comment);
GLib.Marshaller.Free (native_key); key = GLib.Marshaller.PtrToStringGFree(native_key);
GLib.Marshaller.Free (native_lang); lang = GLib.Marshaller.PtrToStringGFree(native_lang);
GLib.Marshaller.Free (native_value); value = GLib.Marshaller.PtrToStringGFree(native_value);
return ret; return ret;
} }

View file

@ -212,9 +212,9 @@ namespace Gst {
} }
[DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_util_dump_mem(byte mem, uint size); static extern void gst_util_dump_mem(byte[] mem, uint size);
public static void DumpMem(byte mem, uint size) { public static void DumpMem(byte[] mem, uint size) {
gst_util_dump_mem(mem, size); gst_util_dump_mem(mem, size);
} }

View file

@ -6112,7 +6112,7 @@
<field cname="mini_object" access="public" writeable="true" readable="true" is_callback="false" name="MiniObject" type="GstMiniObject" hidden="true"> <field cname="mini_object" access="public" writeable="true" readable="true" is_callback="false" name="MiniObject" type="GstMiniObject" hidden="true">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</field> </field>
<field cname="pool" access="public" writeable="true" readable="true" is_callback="false" name="Pool" type="GstBufferPool*" array_index="2" /> <field cname="pool" access="public" writeable="true" readable="true" is_callback="false" name="Pool" type="GstBufferPool*" array_index="3" />
<field cname="pts" access="public" writeable="true" readable="true" is_callback="false" name="Pts" type="guint64" array_index="2" /> <field cname="pts" access="public" writeable="true" readable="true" is_callback="false" name="Pts" type="guint64" array_index="2" />
<field cname="dts" access="public" writeable="true" readable="true" is_callback="false" name="Dts" type="guint64" array_index="1" /> <field cname="dts" access="public" writeable="true" readable="true" is_callback="false" name="Dts" type="guint64" array_index="1" />
<field cname="duration" access="public" writeable="true" readable="true" is_callback="false" name="Duration" type="guint64" /> <field cname="duration" access="public" writeable="true" readable="true" is_callback="false" name="Duration" type="guint64" />
@ -6249,8 +6249,8 @@
<return-type type="gsize" /> <return-type type="gsize" />
<parameters> <parameters>
<parameter name="offset" type="gsize" /> <parameter name="offset" type="gsize" />
<parameter allow-none="1" name="dest" type="gpointer" /> <parameter name="dest" type="gpointer" pass_as="out" array="true" array_length_param_index="2" />
<parameter name="size" type="gsize" /> <parameter name="size" type="gsize*" owned="true" pass_as="out" array_index="1" />
</parameters> </parameters>
</method> </method>
<method name="ExtractDup" cname="gst_buffer_extract_dup" version="1.0.10" hidden="true"> <method name="ExtractDup" cname="gst_buffer_extract_dup" version="1.0.10" hidden="true">
@ -8658,6 +8658,12 @@
<parameter name="flags" type="GstLockFlags" /> <parameter name="flags" type="GstLockFlags" />
</parameters> </parameters>
</method> </method>
<method name="Ref" cname="gst_mini_object_ref">
<return-type type="GstMiniObject*" owned="true">
<warning>missing glib:type-name</warning>
</return-type>
<parameters />
</method>
<method name="SetQdata" cname="gst_mini_object_set_qdata"> <method name="SetQdata" cname="gst_mini_object_set_qdata">
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
@ -8678,6 +8684,10 @@
<parameter name="flags" type="GstLockFlags" /> <parameter name="flags" type="GstLockFlags" />
</parameters> </parameters>
</method> </method>
<method name="Unref" cname="gst_mini_object_unref">
<return-type type="void" />
<parameters />
</method>
<method name="Replace" cname="gst_mini_object_replace" shared="true" hidden="true"> <method name="Replace" cname="gst_mini_object_replace" shared="true" hidden="true">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
@ -11383,7 +11393,7 @@
<constant value="562949953421311" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_ANY" /> <constant value="562949953421311" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_ANY" />
<constant value="3940649673949188" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS" /> <constant value="3940649673949188" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS" />
<constant value="1125899906842626" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_AUDIO_ENCODER" /> <constant value="1125899906842626" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_AUDIO_ENCODER" />
<constant value="353" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECODABLE" /> <constant value="1377" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECODABLE" />
<constant value="1" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECODER" /> <constant value="1" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECODER" />
<constant value="1024" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECRYPTOR" /> <constant value="1024" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DECRYPTOR" />
<constant value="32" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DEMUXER" /> <constant value="32" ctype="GstElementFactoryListType" gtype="GstElementFactoryListType" name="ELEMENT_FACTORY_TYPE_DEMUXER" />
@ -11424,11 +11434,11 @@
<constant value="memory" ctype="gchar*" gtype="gchar*" name="META_TAG_MEMORY_STR" version="1.2" /> <constant value="memory" ctype="gchar*" gtype="gchar*" name="META_TAG_MEMORY_STR" version="1.2" />
<constant value="1000000" ctype="gint64" gtype="GstClockTimeDiff" name="MSECOND" /> <constant value="1000000" ctype="gint64" gtype="GstClockTimeDiff" name="MSECOND" />
<constant value="1" ctype="GstClockTimeDiff" gtype="GstClockTimeDiff" name="NSECOND" /> <constant value="1" ctype="GstClockTimeDiff" gtype="GstClockTimeDiff" name="NSECOND" />
<constant value="2" ctype="gint" gtype="gint" name="PARAM_CONTROLLABLE" /> <constant value="512" ctype="gint" gtype="gint" name="PARAM_CONTROLLABLE" />
<constant value="8" ctype="gint" gtype="gint" name="PARAM_MUTABLE_PAUSED" /> <constant value="2048" ctype="gint" gtype="gint" name="PARAM_MUTABLE_PAUSED" />
<constant value="16" ctype="gint" gtype="gint" name="PARAM_MUTABLE_PLAYING" /> <constant value="4096" ctype="gint" gtype="gint" name="PARAM_MUTABLE_PLAYING" />
<constant value="4" ctype="gint" gtype="gint" name="PARAM_MUTABLE_READY" /> <constant value="1024" ctype="gint" gtype="gint" name="PARAM_MUTABLE_READY" />
<constant value="256" ctype="gint" gtype="gint" name="PARAM_USER_SHIFT" /> <constant value="65536" ctype="gint" gtype="gint" name="PARAM_USER_SHIFT" />
<constant value="protection-system" ctype="gchar*" gtype="gchar*" name="PROTECTION_SYSTEM_ID_CAPS_FIELD" version="1.6" /> <constant value="protection-system" ctype="gchar*" gtype="gchar*" name="PROTECTION_SYSTEM_ID_CAPS_FIELD" version="1.6" />
<constant value="paA" ctype="gchar*" gtype="gchar*" name="PTR_FORMAT" /> <constant value="paA" ctype="gchar*" gtype="gchar*" name="PTR_FORMAT" />
<constant value="8" ctype="gint" gtype="gint" name="QUERY_NUM_SHIFT" /> <constant value="8" ctype="gint" gtype="gint" name="QUERY_NUM_SHIFT" />
@ -12383,9 +12393,9 @@
<method name="TagFreeformStringToUtf8" cname="gst_tag_freeform_string_to_utf8" shared="true"> <method name="TagFreeformStringToUtf8" cname="gst_tag_freeform_string_to_utf8" shared="true">
<return-type type="gchar*" owned="true" /> <return-type type="gchar*" owned="true" />
<parameters> <parameters>
<parameter name="data" type="const-gchar*" /> <parameter name="data" type="const-gchar*" array="true" array_length_param_index="1" />
<parameter name="size" type="gint" /> <parameter name="size" type="gint" />
<parameter name="env_vars" type="const-gchar*" /> <parameter name="env_vars" type="const-gchar**" array="true" null_term_array="true" />
</parameters> </parameters>
</method> </method>
<method name="TagFromId3Tag" cname="gst_tag_from_id3_tag" shared="true"> <method name="TagFromId3Tag" cname="gst_tag_from_id3_tag" shared="true">
@ -12495,7 +12505,7 @@
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</return-type> </return-type>
<parameters> <parameters>
<parameter name="image_data" type="guint8" /> <parameter name="image_data" type="guint8*" array="true" array_length_param_index="1" />
<parameter name="image_data_len" type="guint" /> <parameter name="image_data_len" type="guint" />
<parameter name="image_type" type="GstTagImageType" /> <parameter name="image_type" type="GstTagImageType" />
</parameters> </parameters>
@ -12506,8 +12516,8 @@
<parameter name="tag_list" type="GstTagList*"> <parameter name="tag_list" type="GstTagList*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="image_data" type="guint8" /> <parameter name="image_data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="image_data_len" type="guint" /> <parameter name="image_data_len" type="guint" array_index="1" />
<parameter name="id3_picture_type" type="guint" /> <parameter name="id3_picture_type" type="guint" />
</parameters> </parameters>
</method> </method>
@ -12548,11 +12558,11 @@
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</return-type> </return-type>
<parameters> <parameters>
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="1" />
<parameter name="size" type="gsize" /> <parameter name="size" type="gsize" />
<parameter name="id_data" type="guint8" /> <parameter name="id_data" type="guint8*" array="true" array_length_param_index="3" />
<parameter name="id_data_length" type="guint" /> <parameter name="id_data_length" type="guint" array_index="2" />
<parameter name="vendor_string" type="const-gchar*" /> <parameter allow-none="1" name="vendor_string" type="gchar*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="TagListFromVorbiscommentBuffer" cname="gst_tag_list_from_vorbiscomment_buffer" shared="true"> <method name="TagListFromVorbiscommentBuffer" cname="gst_tag_list_from_vorbiscomment_buffer" shared="true">
@ -12563,9 +12573,9 @@
<parameter name="buffer" type="GstBuffer*"> <parameter name="buffer" type="GstBuffer*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="id_data" type="guint8" /> <parameter name="id_data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="id_data_length" type="guint" /> <parameter name="id_data_length" type="guint" array_index="1" />
<parameter name="vendor_string" type="const-gchar*" /> <parameter allow-none="1" name="vendor_string" type="gchar*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="TagListFromXmpBuffer" cname="gst_tag_list_from_xmp_buffer" shared="true"> <method name="TagListFromXmpBuffer" cname="gst_tag_list_from_xmp_buffer" shared="true">
@ -12583,7 +12593,7 @@
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</return-type> </return-type>
<parameters> <parameters>
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_len="128" />
</parameters> </parameters>
</method> </method>
<method name="TagListToExifBuffer" cname="gst_tag_list_to_exif_buffer" shared="true"> <method name="TagListToExifBuffer" cname="gst_tag_list_to_exif_buffer" shared="true">
@ -12616,9 +12626,9 @@
<parameter name="list" type="GstTagList*"> <parameter name="list" type="GstTagList*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="id_data" type="guint8" /> <parameter name="id_data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="id_data_length" type="guint" /> <parameter name="id_data_length" type="guint" array_index="1" />
<parameter name="vendor_string" type="const-gchar*" /> <parameter allow-none="1" name="vendor_string" type="const-gchar*" />
</parameters> </parameters>
</method> </method>
<method name="TagListToXmpBuffer" cname="gst_tag_list_to_xmp_buffer" shared="true"> <method name="TagListToXmpBuffer" cname="gst_tag_list_to_xmp_buffer" shared="true">
@ -12630,16 +12640,16 @@
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="read_only" type="gboolean" /> <parameter name="read_only" type="gboolean" />
<parameter name="schemas" type="const-gchar*" /> <parameter name="schemas" type="const-gchar**" array="true" null_term_array="true" />
</parameters> </parameters>
</method> </method>
<method name="TagParseExtendedComment" cname="gst_tag_parse_extended_comment" shared="true"> <method name="TagParseExtendedComment" cname="gst_tag_parse_extended_comment" shared="true">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="ext_comment" type="const-gchar*" /> <parameter name="ext_comment" type="const-gchar*" />
<parameter name="key" type="const-gchar*" /> <parameter name="key" type="gchar*" owned="true" pass_as="out" />
<parameter name="lang" type="const-gchar*" /> <parameter name="lang" type="gchar*" owned="true" pass_as="out" />
<parameter name="value" type="const-gchar*" /> <parameter name="value" type="gchar*" owned="true" pass_as="out" />
<parameter name="fail_if_no_key" type="gboolean" /> <parameter name="fail_if_no_key" type="gboolean" />
</parameters> </parameters>
</method> </method>
@ -12818,7 +12828,7 @@
<method name="UtilDumpMem" cname="gst_util_dump_mem" shared="true"> <method name="UtilDumpMem" cname="gst_util_dump_mem" shared="true">
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
<parameter name="mem" type="guint8" /> <parameter name="mem" type="guchar*" array="true" array_length_param_index="1" />
<parameter name="size" type="guint" /> <parameter name="size" type="guint" />
</parameters> </parameters>
</method> </method>
@ -13682,9 +13692,11 @@
<property name="Mute" cname="mute" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" /> <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" /> <property name="Volume" cname="volume" type="gdouble" readable="true" writeable="true" construct="false" construct-only="false" hidden="1" />
</interface> </interface>
<object name="AudioAggregator" cname="GstAudioAggregator" defaultconstructoraccess="protected" opaque="false" hidden="true" parent="GstBase.Aggregator"> <object name="AudioAggregator" cname="GstAudioAggregator" defaultconstructoraccess="protected" opaque="false" hidden="true" parent="GstAggregator">
<class_struct cname="GstAudioAggregatorClass"> <class_struct cname="GstAudioAggregatorClass">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorClass" /> <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstAggregatorClass">
<warning>missing glib:type-name</warning>
</field>
<method vm="create_output_buffer" /> <method vm="create_output_buffer" />
<method vm="aggregate_one_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" /> <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20" padding="true" />
@ -13727,7 +13739,7 @@
<property name="AlignmentThreshold" cname="alignment-threshold" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" /> <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="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" /> <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="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstAggregator*" hidden="true" />
<field cname="current_caps" access="public" writeable="false" readable="true" is_callback="false" name="CurrentCaps" type="GstCaps*"> <field cname="current_caps" access="public" writeable="false" readable="true" is_callback="false" name="CurrentCaps" type="GstCaps*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</field> </field>
@ -13753,9 +13765,11 @@
</field> </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" /> <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>
<object name="AudioAggregatorPad" cname="GstAudioAggregatorPad" opaque="false" hidden="true" parent="GstBase.AggregatorPad"> <object name="AudioAggregatorPad" cname="GstAudioAggregatorPad" opaque="false" hidden="true" parent="GstAggregatorPad">
<class_struct cname="GstAudioAggregatorPadClass"> <class_struct cname="GstAudioAggregatorPadClass">
<field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstBase.AggregatorPadClass" /> <field cname="parent_class" access="public" writeable="false" readable="true" is_callback="false" name="ParentClass" type="GstAggregatorPadClass">
<warning>missing glib:type-name</warning>
</field>
<method vm="convert_buffer" /> <method vm="convert_buffer" />
<method vm="update_conversion_info" /> <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" /> <field cname="_gst_reserved" access="private" writeable="false" readable="false" is_callback="false" name="_gstGstReserved" type="gpointer" array="true" array_len="20" padding="true" />
@ -13783,7 +13797,7 @@
<return-type type="void" /> <return-type type="void" />
<parameters /> <parameters />
</virtual_method> </virtual_method>
<field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstBase.AggregatorPad" hidden="true" /> <field cname="parent" access="public" writeable="false" readable="true" is_callback="false" name="Parent" type="GstAggregatorPad*" hidden="true" />
<field cname="info" access="public" writeable="false" readable="true" is_callback="false" name="Info" type="GstAudioInfo"> <field cname="info" access="public" writeable="false" readable="true" is_callback="false" name="Info" type="GstAudioInfo">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</field> </field>
@ -14285,8 +14299,8 @@
<method name="GetParseState" cname="gst_audio_decoder_get_parse_state"> <method name="GetParseState" cname="gst_audio_decoder_get_parse_state">
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
<parameter name="sync" type="gboolean" /> <parameter allow-none="1" name="sync" type="gboolean*" owned="true" pass_as="out" />
<parameter name="eos" type="gboolean" /> <parameter allow-none="1" name="eos" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetPlc" cname="gst_audio_decoder_get_plc"> <method name="GetPlc" cname="gst_audio_decoder_get_plc">
@ -14899,10 +14913,10 @@
<return-type type="guint" /> <return-type type="guint" />
<parameters> <parameters>
<parameter name="sample" type="guint64" /> <parameter name="sample" type="guint64" />
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="in_samples" type="gint" /> <parameter name="in_samples" type="gint" array_index="1" />
<parameter name="out_samples" type="gint" /> <parameter name="out_samples" type="gint" />
<parameter name="accum" type="gint" /> <parameter name="accum" type="gint*" owned="true" pass_as="ref" />
</parameters> </parameters>
</virtual_method> </virtual_method>
<virtual_method name="Delay" cname="delay"> <virtual_method name="Delay" cname="delay">
@ -14971,10 +14985,10 @@
<return-type type="guint" /> <return-type type="guint" />
<parameters> <parameters>
<parameter name="sample" type="guint64" /> <parameter name="sample" type="guint64" />
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="in_samples" type="gint" /> <parameter name="in_samples" type="gint" array_index="1" />
<parameter name="out_samples" type="gint" /> <parameter name="out_samples" type="gint" />
<parameter name="accum" type="gint" /> <parameter name="accum" type="gint*" owned="true" pass_as="ref" />
</parameters> </parameters>
</method> </method>
<method name="Convert" cname="gst_audio_ring_buffer_convert"> <method name="Convert" cname="gst_audio_ring_buffer_convert">
@ -14983,7 +14997,7 @@
<parameter name="src_fmt" type="GstFormat" /> <parameter name="src_fmt" type="GstFormat" />
<parameter name="src_val" type="gint64" /> <parameter name="src_val" type="gint64" />
<parameter name="dest_fmt" type="GstFormat" /> <parameter name="dest_fmt" type="GstFormat" />
<parameter name="dest_val" type="gint64" /> <parameter name="dest_val" type="gint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Delay" cname="gst_audio_ring_buffer_delay"> <method name="Delay" cname="gst_audio_ring_buffer_delay">
@ -15020,21 +15034,21 @@
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters /> <parameters />
</method> </method>
<method name="PrepareRead" cname="gst_audio_ring_buffer_prepare_read"> <method name="PrepareRead" cname="gst_audio_ring_buffer_prepare_read" hidden="true">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="segment" type="gint" /> <parameter name="segment" type="gint*" owned="true" pass_as="out" />
<parameter name="readptr" type="guint8" /> <parameter name="readptr" type="guint8***" owned="true" pass_as="out" array="true" array_length_param_index="2" />
<parameter name="len" type="gint" /> <parameter name="len" type="gint*" owned="true" pass_as="out" array_index="1" />
</parameters> </parameters>
</method> </method>
<method name="Read" cname="gst_audio_ring_buffer_read"> <method name="Read" cname="gst_audio_ring_buffer_read">
<return-type type="guint" /> <return-type type="guint" />
<parameters> <parameters>
<parameter name="sample" type="guint64" /> <parameter name="sample" type="guint64" />
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="len" type="guint" /> <parameter name="len" type="guint" array_index="1" />
<parameter name="timestamp" type="guint64" /> <parameter name="timestamp" type="guint64" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Release" cname="gst_audio_ring_buffer_release"> <method name="Release" cname="gst_audio_ring_buffer_release">
@ -15056,7 +15070,7 @@
<method name="SetChannelPositions" cname="gst_audio_ring_buffer_set_channel_positions"> <method name="SetChannelPositions" cname="gst_audio_ring_buffer_set_channel_positions">
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
<parameter name="position" type="GstAudioChannelPosition" /> <parameter name="position" type="GstAudioChannelPosition*" array="true" />
</parameters> </parameters>
</method> </method>
<method name="SetFlushing" cname="gst_audio_ring_buffer_set_flushing"> <method name="SetFlushing" cname="gst_audio_ring_buffer_set_flushing">
@ -15316,8 +15330,8 @@
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</return-type> </return-type>
<parameters> <parameters>
<parameter name="in_rate" type="gint" /> <parameter allow-none="1" name="in_rate" type="gint*" owned="true" pass_as="out" />
<parameter name="out_rate" type="gint" /> <parameter allow-none="1" name="out_rate" type="gint*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetInFrames" cname="gst_audio_converter_get_in_frames"> <method name="GetInFrames" cname="gst_audio_converter_get_in_frames">
@ -15417,7 +15431,7 @@
<parameter name="src_fmt" type="GstFormat" /> <parameter name="src_fmt" type="GstFormat" />
<parameter name="src_val" type="gint64" /> <parameter name="src_val" type="gint64" />
<parameter name="dest_fmt" type="GstFormat" /> <parameter name="dest_fmt" type="GstFormat" />
<parameter name="dest_val" type="gint64" /> <parameter name="dest_val" type="gint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Copy" cname="gst_audio_info_copy"> <method name="Copy" cname="gst_audio_info_copy">
@ -15984,7 +15998,7 @@
<parameter name="inbuffer" type="GstBuffer*" owned="true"> <parameter name="inbuffer" type="GstBuffer*" owned="true">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="outbuffer" type="GstBuffer**"> <parameter name="outbuffer" type="GstBuffer**" owned="true" pass_as="out">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter allow-none="1" closure="4" name="user_data" type="gpointer" /> <parameter allow-none="1" closure="4" name="user_data" type="gpointer" />
@ -16076,7 +16090,7 @@
<parameter allow-none="1" name="parent" type="GstObject*" /> <parameter allow-none="1" name="parent" type="GstObject*" />
<parameter name="offset" type="guint64" /> <parameter name="offset" type="guint64" />
<parameter name="length" type="guint" /> <parameter name="length" type="guint" />
<parameter name="buffer" type="GstBuffer**"> <parameter name="buffer" type="GstBuffer**" owned="true" pass_as="out">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
</parameters> </parameters>
@ -16519,6 +16533,10 @@
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters /> <parameters />
</method> </method>
<method name="HasBuffer" cname="gst_aggregator_pad_has_buffer" version="1.14.1">
<return-type type="gboolean" />
<parameters />
</method>
<method name="IsEos" cname="gst_aggregator_pad_is_eos"> <method name="IsEos" cname="gst_aggregator_pad_is_eos">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters /> <parameters />
@ -16673,7 +16691,7 @@
<parameter name="src_format" type="GstFormat" /> <parameter name="src_format" type="GstFormat" />
<parameter name="src_value" type="gint64" /> <parameter name="src_value" type="gint64" />
<parameter name="dest_format" type="GstFormat" /> <parameter name="dest_format" type="GstFormat" />
<parameter name="dest_value" type="gint64" /> <parameter name="dest_value" type="gint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Drain" cname="gst_base_parse_drain" version="1.12"> <method name="Drain" cname="gst_base_parse_drain" version="1.12">
@ -17843,7 +17861,7 @@
<parameter name="buf" type="GstBuffer*"> <parameter name="buf" type="GstBuffer*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter allow-none="1" name="outbuf" type="GstBuffer**"> <parameter allow-none="1" name="outbuf" type="GstBuffer**" owned="true" pass_as="out">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter allow-none="1" name="user_data" type="gpointer" /> <parameter allow-none="1" name="user_data" type="gpointer" />
@ -18415,7 +18433,7 @@
<method name="PutStringUtf8" cname="gst_byte_writer_put_string_utf8"> <method name="PutStringUtf8" cname="gst_byte_writer_put_string_utf8">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="data" type="const-gchar*" array="true" null_term_array="true" /> <parameter name="data" type="const-gchar*" />
</parameters> </parameters>
</method> </method>
<method name="PutUint16Be" cname="gst_byte_writer_put_uint16_be"> <method name="PutUint16Be" cname="gst_byte_writer_put_uint16_be">
@ -18615,8 +18633,8 @@
</return-type> </return-type>
<parameters> <parameters>
<parameter allow-none="1" name="obj" type="GstObject*" /> <parameter allow-none="1" name="obj" type="GstObject*" />
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="2" />
<parameter name="size" type="gsize" /> <parameter name="size" type="gsize" array_index="1" />
<parameter allow-none="1" name="prob" type="GstTypeFindProbability" owned="true" pass_as="out" /> <parameter allow-none="1" name="prob" type="GstTypeFindProbability" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
@ -18975,164 +18993,6 @@
</object> </object>
<object name="Constants" cname="GstControllerConstants" opaque="true" /> <object name="Constants" cname="GstControllerConstants" opaque="true" />
</namespace> </namespace>
<namespace name="Gst.FFT" library="libgstfft-1.0-0.dll">
<enum name="FFTWindow" cname="GstFFTWindow" type="enum">
<member cname="GST_FFT_WINDOW_RECTANGULAR" name="Rectangular" value="0" />
<member cname="GST_FFT_WINDOW_HAMMING" name="Hamming" value="1" />
<member cname="GST_FFT_WINDOW_HANN" name="Hann" value="2" />
<member cname="GST_FFT_WINDOW_BARTLETT" name="Bartlett" value="3" />
<member cname="GST_FFT_WINDOW_BLACKMAN" name="Blackman" value="4" />
</enum>
<struct name="FFTF32" cname="GstFFTF32" opaque="true" hidden="false">
<method name="Fft" cname="gst_fft_f32_fft" hidden="true">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gfloat" />
<parameter name="freqdata" type="GstFFTF32Complex*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
</method>
<method name="Free" cname="gst_fft_f32_free">
<return-type type="void" />
<parameters />
</method>
<method name="InverseFft" cname="gst_fft_f32_inverse_fft">
<return-type type="void" />
<parameters>
<parameter name="freqdata" type="GstFFTF32Complex*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="timedata" type="gfloat" />
</parameters>
</method>
<method name="Window" cname="gst_fft_f32_window" hidden="true">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gfloat" />
<parameter name="window" type="GstFFTWindow" />
</parameters>
</method>
</struct>
<struct name="FFTF32Complex" cname="GstFFTF32Complex" opaque="false" hidden="false">
<field cname="r" access="public" writeable="true" readable="true" is_callback="false" name="R" type="gfloat" />
<field cname="i" access="public" writeable="true" readable="true" is_callback="false" name="I" type="gfloat" />
</struct>
<struct name="FFTF64" cname="GstFFTF64" opaque="true" hidden="false">
<method name="Fft" cname="gst_fft_f64_fft">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gdouble" />
<parameter name="freqdata" type="GstFFTF64Complex*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
</method>
<method name="Free" cname="gst_fft_f64_free">
<return-type type="void" />
<parameters />
</method>
<method name="InverseFft" cname="gst_fft_f64_inverse_fft">
<return-type type="void" />
<parameters>
<parameter name="freqdata" type="GstFFTF64Complex*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="timedata" type="gdouble" />
</parameters>
</method>
<method name="Window" cname="gst_fft_f64_window">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gdouble" />
<parameter name="window" type="GstFFTWindow" />
</parameters>
</method>
</struct>
<struct name="FFTF64Complex" cname="GstFFTF64Complex" opaque="false" hidden="false">
<field cname="r" access="public" writeable="true" readable="true" is_callback="false" name="R" type="gdouble" />
<field cname="i" access="public" writeable="true" readable="true" is_callback="false" name="I" type="gdouble" />
</struct>
<struct name="FFTS16" cname="GstFFTS16" opaque="true" hidden="false">
<method name="Fft" cname="gst_fft_s16_fft">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gint16" />
<parameter name="freqdata" type="GstFFTS16Complex*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
</method>
<method name="Free" cname="gst_fft_s16_free">
<return-type type="void" />
<parameters />
</method>
<method name="InverseFft" cname="gst_fft_s16_inverse_fft">
<return-type type="void" />
<parameters>
<parameter name="freqdata" type="GstFFTS16Complex*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="timedata" type="gint16" />
</parameters>
</method>
<method name="Window" cname="gst_fft_s16_window">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gint16" />
<parameter name="window" type="GstFFTWindow" />
</parameters>
</method>
</struct>
<struct name="FFTS16Complex" cname="GstFFTS16Complex" opaque="false" hidden="false">
<field cname="r" access="public" writeable="true" readable="true" is_callback="false" name="R" type="gint16" />
<field cname="i" access="public" writeable="true" readable="true" is_callback="false" name="I" type="gint16" />
</struct>
<struct name="FFTS32" cname="GstFFTS32" opaque="true" hidden="false">
<method name="Fft" cname="gst_fft_s32_fft">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gint32" />
<parameter name="freqdata" type="GstFFTS32Complex*">
<warning>missing glib:type-name</warning>
</parameter>
</parameters>
</method>
<method name="Free" cname="gst_fft_s32_free">
<return-type type="void" />
<parameters />
</method>
<method name="InverseFft" cname="gst_fft_s32_inverse_fft">
<return-type type="void" />
<parameters>
<parameter name="freqdata" type="GstFFTS32Complex*">
<warning>missing glib:type-name</warning>
</parameter>
<parameter name="timedata" type="gint32" />
</parameters>
</method>
<method name="Window" cname="gst_fft_s32_window">
<return-type type="void" />
<parameters>
<parameter name="timedata" type="gint32" />
<parameter name="window" type="GstFFTWindow" />
</parameters>
</method>
</struct>
<struct name="FFTS32Complex" cname="GstFFTS32Complex" opaque="false" hidden="false">
<field cname="r" access="public" writeable="true" readable="true" is_callback="false" name="R" type="gint32" />
<field cname="i" access="public" writeable="true" readable="true" is_callback="false" name="I" type="gint32" />
</struct>
<object name="Global" cname="GstFftGlobal" opaque="true">
<method name="FftNextFastLength" cname="gst_fft_next_fast_length" shared="true">
<return-type type="gint" />
<parameters>
<parameter name="n" type="gint" />
</parameters>
</method>
</object>
<object name="Constants" cname="GstFftConstants" opaque="true" />
</namespace>
<namespace name="Gst.Net" library="libgstnet-1.0-0.dll"> <namespace name="Gst.Net" library="libgstnet-1.0-0.dll">
<callback name="PtpStatisticsCallback" cname="GstPtpStatisticsCallback"> <callback name="PtpStatisticsCallback" cname="GstPtpStatisticsCallback">
<return-type type="gboolean" /> <return-type type="gboolean" />
@ -20388,7 +20248,7 @@
<parameter name="channel_mapping_family" type="guint8*" owned="true" pass_as="out" /> <parameter name="channel_mapping_family" type="guint8*" owned="true" pass_as="out" />
<parameter name="stream_count" type="guint8*" owned="true" pass_as="out" /> <parameter name="stream_count" type="guint8*" owned="true" pass_as="out" />
<parameter name="coupled_count" type="guint8*" owned="true" pass_as="out" /> <parameter name="coupled_count" type="guint8*" owned="true" pass_as="out" />
<parameter name="channel_mapping" type="guint8*" owned="true" pass_as="out" array="true" /> <parameter name="channel_mapping" type="guint8*" owned="true" pass_as="out" array="true" array_len="256" />
</parameters> </parameters>
</method> </method>
<method name="CodecUtilsOpusParseHeader" cname="gst_codec_utils_opus_parse_header" shared="true" version="1.8" hidden="true"> <method name="CodecUtilsOpusParseHeader" cname="gst_codec_utils_opus_parse_header" shared="true" version="1.8" hidden="true">
@ -20402,7 +20262,7 @@
<parameter name="channel_mapping_family" type="guint8*" owned="true" pass_as="out" /> <parameter name="channel_mapping_family" type="guint8*" owned="true" pass_as="out" />
<parameter name="stream_count" type="guint8*" owned="true" pass_as="out" /> <parameter name="stream_count" type="guint8*" owned="true" pass_as="out" />
<parameter name="coupled_count" type="guint8*" owned="true" pass_as="out" /> <parameter name="coupled_count" type="guint8*" owned="true" pass_as="out" />
<parameter name="channel_mapping" type="guint8*" owned="true" pass_as="out" array="true" /> <parameter name="channel_mapping" type="guint8*" owned="true" pass_as="out" array="true" array_len="256" />
<parameter name="pre_skip" type="guint16*" owned="true" pass_as="out" /> <parameter name="pre_skip" type="guint16*" owned="true" pass_as="out" />
<parameter name="output_gain" type="gint16*" owned="true" pass_as="out" /> <parameter name="output_gain" type="gint16*" owned="true" pass_as="out" />
</parameters> </parameters>
@ -20744,7 +20604,7 @@
<method name="Push" cname="gst_rtp_base_audio_payload_push"> <method name="Push" cname="gst_rtp_base_audio_payload_push">
<return-type type="GstFlowReturn" /> <return-type type="GstFlowReturn" />
<parameters> <parameters>
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="1" />
<parameter name="payload_len" type="guint" /> <parameter name="payload_len" type="guint" />
<parameter name="timestamp" type="guint64" /> <parameter name="timestamp" type="guint64" />
</parameters> </parameters>
@ -21133,7 +20993,7 @@
<method name="AddProfileSpecificExt" cname="gst_rtcp_packet_add_profile_specific_ext"> <method name="AddProfileSpecificExt" cname="gst_rtcp_packet_add_profile_specific_ext">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="data" type="guint8" /> <parameter name="data" type="guint8*" array="true" array_length_param_index="1" />
<parameter name="len" type="guint" /> <parameter name="len" type="guint" />
</parameters> </parameters>
</method> </method>
@ -21202,7 +21062,7 @@
<method name="ByeAddSsrcs" cname="gst_rtcp_packet_bye_add_ssrcs"> <method name="ByeAddSsrcs" cname="gst_rtcp_packet_bye_add_ssrcs">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="ssrc" type="guint32" /> <parameter name="ssrc" type="guint32*" array="true" array_length_param_index="1" />
<parameter name="len" type="guint" /> <parameter name="len" type="guint" />
</parameters> </parameters>
</method> </method>
@ -21308,13 +21168,13 @@
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
<parameter name="nth" type="guint" /> <parameter name="nth" type="guint" />
<parameter name="ssrc" type="guint32" /> <parameter name="ssrc" type="guint32*" owned="true" pass_as="out" />
<parameter name="fractionlost" type="guint8" /> <parameter name="fractionlost" type="guint8*" owned="true" pass_as="out" />
<parameter name="packetslost" type="gint32" /> <parameter name="packetslost" type="gint32*" owned="true" pass_as="out" />
<parameter name="exthighestseq" type="guint32" /> <parameter name="exthighestseq" type="guint32*" owned="true" pass_as="out" />
<parameter name="jitter" type="guint32" /> <parameter name="jitter" type="guint32*" owned="true" pass_as="out" />
<parameter name="lsr" type="guint32" /> <parameter name="lsr" type="guint32*" owned="true" pass_as="out" />
<parameter name="dlsr" type="guint32" /> <parameter name="dlsr" type="guint32*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetRbCount" cname="gst_rtcp_packet_get_rb_count"> <method name="GetRbCount" cname="gst_rtcp_packet_get_rb_count">
@ -21413,11 +21273,11 @@
<method name="SrGetSenderInfo" cname="gst_rtcp_packet_sr_get_sender_info"> <method name="SrGetSenderInfo" cname="gst_rtcp_packet_sr_get_sender_info">
<return-type type="void" /> <return-type type="void" />
<parameters> <parameters>
<parameter name="ssrc" type="guint32" /> <parameter name="ssrc" type="guint32*" owned="true" pass_as="out" />
<parameter name="ntptime" type="guint64" /> <parameter name="ntptime" type="guint64*" owned="true" pass_as="out" />
<parameter name="rtptime" type="guint32" /> <parameter name="rtptime" type="guint32*" owned="true" pass_as="out" />
<parameter name="packet_count" type="guint32" /> <parameter name="packet_count" type="guint32*" owned="true" pass_as="out" />
<parameter name="octet_count" type="guint32" /> <parameter name="octet_count" type="guint32*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="SrSetSenderInfo" cname="gst_rtcp_packet_sr_set_sender_info"> <method name="SrSetSenderInfo" cname="gst_rtcp_packet_sr_set_sender_info">
@ -21688,7 +21548,7 @@
<method name="ExtTimestamp" cname="gst_rtp_buffer_ext_timestamp" shared="true"> <method name="ExtTimestamp" cname="gst_rtp_buffer_ext_timestamp" shared="true">
<return-type type="guint64" /> <return-type type="guint64" />
<parameters> <parameters>
<parameter name="exttimestamp" type="guint64" /> <parameter name="exttimestamp" type="guint64*" owned="true" pass_as="ref" />
<parameter name="timestamp" type="guint32" /> <parameter name="timestamp" type="guint32" />
</parameters> </parameters>
</method> </method>
@ -21911,7 +21771,7 @@
<method name="RtpBufferExtTimestamp" cname="gst_rtp_buffer_ext_timestamp" shared="true"> <method name="RtpBufferExtTimestamp" cname="gst_rtp_buffer_ext_timestamp" shared="true">
<return-type type="guint64" /> <return-type type="guint64" />
<parameters> <parameters>
<parameter name="exttimestamp" type="guint64" /> <parameter name="exttimestamp" type="guint64*" owned="true" pass_as="ref" />
<parameter name="timestamp" type="guint32" /> <parameter name="timestamp" type="guint32" />
</parameters> </parameters>
</method> </method>
@ -21968,17 +21828,17 @@
<method name="RtpHdrextGetNtp56" cname="gst_rtp_hdrext_get_ntp_56" shared="true"> <method name="RtpHdrextGetNtp56" cname="gst_rtp_hdrext_get_ntp_56" shared="true">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter allow-none="1" name="data" type="gpointer" /> <parameter name="data" type="gpointer" array="true" array_length_param_index="1" />
<parameter name="size" type="guint" /> <parameter name="size" type="guint" />
<parameter name="ntptime" type="guint64" /> <parameter name="ntptime" type="guint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="RtpHdrextGetNtp64" cname="gst_rtp_hdrext_get_ntp_64" shared="true"> <method name="RtpHdrextGetNtp64" cname="gst_rtp_hdrext_get_ntp_64" shared="true">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter allow-none="1" name="data" type="gpointer" /> <parameter name="data" type="gpointer" array="true" array_length_param_index="1" />
<parameter name="size" type="guint" /> <parameter name="size" type="guint" />
<parameter name="ntptime" type="guint64" /> <parameter name="ntptime" type="guint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="RtpHdrextSetNtp56" cname="gst_rtp_hdrext_set_ntp_56" shared="true"> <method name="RtpHdrextSetNtp56" cname="gst_rtp_hdrext_set_ntp_56" shared="true">
@ -22022,7 +21882,7 @@
<constant value="31" ctype="gint" gtype="gint" name="RTCP_MAX_SDES_ITEM_COUNT" /> <constant value="31" ctype="gint" gtype="gint" name="RTCP_MAX_SDES_ITEM_COUNT" />
<constant value="57592" ctype="gint" gtype="gint" name="RTCP_REDUCED_SIZE_VALID_MASK" /> <constant value="57592" ctype="gint" gtype="gint" name="RTCP_REDUCED_SIZE_VALID_MASK" />
<constant value="57598" ctype="gint" gtype="gint" name="RTCP_VALID_MASK" /> <constant value="57598" ctype="gint" gtype="gint" name="RTCP_VALID_MASK" />
<constant value="0" ctype="gint" gtype="gint" name="RTCP_VALID_VALUE" /> <constant value="200" ctype="gint" gtype="gint" name="RTCP_VALID_VALUE" />
<constant value="2" ctype="gint" gtype="gint" name="RTCP_VERSION" /> <constant value="2" ctype="gint" gtype="gint" name="RTCP_VERSION" />
<constant value="urn:ietf:params:rtp-hdrext:" ctype="gchar*" gtype="gchar*" name="RTP_HDREXT_BASE" /> <constant value="urn:ietf:params:rtp-hdrext:" ctype="gchar*" gtype="gchar*" name="RTP_HDREXT_BASE" />
<constant value="ntp-56" ctype="gchar*" gtype="gchar*" name="RTP_HDREXT_NTP_56" /> <constant value="ntp-56" ctype="gchar*" gtype="gchar*" name="RTP_HDREXT_NTP_56" />
@ -22928,10 +22788,8 @@
</parameter> </parameter>
</parameters> </parameters>
</method> </method>
<method name="ParseAuthCredentials" cname="gst_rtsp_message_parse_auth_credentials" version="1.12"> <method name="ParseAuthCredentials" cname="gst_rtsp_message_parse_auth_credentials" version="1.12" hidden="true">
<return-type type="GstRTSPAuthCredential**" owned="true"> <return-type type="GstRTSPAuthCredential***" owned="true" array="true" null_term_array="true" />
<warning>missing glib:type-name</warning>
</return-type>
<parameters> <parameters>
<parameter name="field" type="GstRTSPHeaderField" /> <parameter name="field" type="GstRTSPHeaderField" />
</parameters> </parameters>
@ -22946,16 +22804,16 @@
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter allow-none="1" name="method" type="GstRTSPMethod" owned="true" pass_as="out" /> <parameter allow-none="1" name="method" type="GstRTSPMethod" owned="true" pass_as="out" />
<parameter allow-none="1" name="uri" type="gchar*" owned="true" pass_as="out" /> <parameter allow-none="1" name="uri" type="const-gchar*" pass_as="out" />
<parameter allow-none="1" name="version" type="GstRTSPVersion" owned="true" pass_as="out" /> <parameter allow-none="1" name="version" type="GstRTSPVersion" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="ParseResponse" cname="gst_rtsp_message_parse_response"> <method name="ParseResponse" cname="gst_rtsp_message_parse_response">
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter allow-none="1" name="code" type="GstRTSPStatusCode" owned="true" pass_as="out" /> <parameter allow-none="1" name="code" type="GstRTSPStatusCode" owned="true" pass_as="out" />
<parameter allow-none="1" name="reason" type="gchar*" owned="true" pass_as="out" /> <parameter allow-none="1" name="reason" type="const-gchar*" pass_as="out" />
<parameter allow-none="1" name="version" type="GstRTSPVersion" owned="true" pass_as="out" /> <parameter allow-none="1" name="version" type="GstRTSPVersion" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="RemoveHeader" cname="gst_rtsp_message_remove_header"> <method name="RemoveHeader" cname="gst_rtsp_message_remove_header">
@ -23038,15 +22896,15 @@
<parameter name="range" type="GstRTSPTimeRange*"> <parameter name="range" type="GstRTSPTimeRange*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="min" type="guint64" /> <parameter name="min" type="guint64" owned="true" pass_as="out" />
<parameter name="max" type="guint64" /> <parameter name="max" type="guint64" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Parse" cname="gst_rtsp_range_parse" shared="true"> <method name="Parse" cname="gst_rtsp_range_parse" shared="true">
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter name="rangestr" type="const-gchar*" /> <parameter name="rangestr" type="const-gchar*" />
<parameter name="range" type="GstRTSPTimeRange**"> <parameter name="range" type="GstRTSPTimeRange**" owned="true" pass_as="out">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
</parameters> </parameters>
@ -23132,7 +22990,7 @@
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter name="trans" type="GstRTSPTransMode" /> <parameter name="trans" type="GstRTSPTransMode" />
<parameter name="manager" type="const-gchar*" /> <parameter name="manager" type="const-gchar*" pass_as="out" />
<parameter name="option" type="guint" /> <parameter name="option" type="guint" />
</parameters> </parameters>
</method> </method>
@ -23190,7 +23048,7 @@
<method name="GetPort" cname="gst_rtsp_url_get_port"> <method name="GetPort" cname="gst_rtsp_url_get_port">
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter name="port" type="guint16" /> <parameter name="port" type="guint16*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetRequestUri" cname="gst_rtsp_url_get_request_uri"> <method name="GetRequestUri" cname="gst_rtsp_url_get_request_uri">
@ -23447,15 +23305,15 @@
<parameter name="range" type="GstRTSPTimeRange*"> <parameter name="range" type="GstRTSPTimeRange*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="min" type="guint64" /> <parameter name="min" type="guint64" owned="true" pass_as="out" />
<parameter name="max" type="guint64" /> <parameter name="max" type="guint64" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="RtspRangeParse" cname="gst_rtsp_range_parse" shared="true"> <method name="RtspRangeParse" cname="gst_rtsp_range_parse" shared="true">
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter name="rangestr" type="const-gchar*" /> <parameter name="rangestr" type="const-gchar*" />
<parameter name="range" type="GstRTSPTimeRange**"> <parameter name="range" type="GstRTSPTimeRange**" owned="true" pass_as="out">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
</parameters> </parameters>
@ -23484,7 +23342,7 @@
<return-type type="GstRTSPResult" /> <return-type type="GstRTSPResult" />
<parameters> <parameters>
<parameter name="trans" type="GstRTSPTransMode" /> <parameter name="trans" type="GstRTSPTransMode" />
<parameter name="manager" type="const-gchar*" /> <parameter name="manager" type="const-gchar*" pass_as="out" />
<parameter name="option" type="guint" /> <parameter name="option" type="guint" />
</parameters> </parameters>
</method> </method>
@ -26009,25 +25867,25 @@
<virtual_method name="GetHcenter" cname="get_hcenter"> <virtual_method name="GetHcenter" cname="get_hcenter">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="center" type="gint" /> <parameter name="center" type="gint*" owned="true" pass_as="out" />
</parameters> </parameters>
</virtual_method> </virtual_method>
<virtual_method name="GetHflip" cname="get_hflip"> <virtual_method name="GetHflip" cname="get_hflip">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="flip" type="gboolean" /> <parameter name="flip" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</virtual_method> </virtual_method>
<virtual_method name="GetVcenter" cname="get_vcenter"> <virtual_method name="GetVcenter" cname="get_vcenter">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="center" type="gint" /> <parameter name="center" type="gint*" owned="true" pass_as="out" />
</parameters> </parameters>
</virtual_method> </virtual_method>
<virtual_method name="GetVflip" cname="get_vflip"> <virtual_method name="GetVflip" cname="get_vflip">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="flip" type="gboolean" /> <parameter name="flip" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</virtual_method> </virtual_method>
<virtual_method name="SetHcenter" cname="set_hcenter"> <virtual_method name="SetHcenter" cname="set_hcenter">
@ -26057,25 +25915,25 @@
<method name="GetHcenter" cname="gst_video_orientation_get_hcenter"> <method name="GetHcenter" cname="gst_video_orientation_get_hcenter">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="center" type="gint" /> <parameter name="center" type="gint*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetHflip" cname="gst_video_orientation_get_hflip"> <method name="GetHflip" cname="gst_video_orientation_get_hflip">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="flip" type="gboolean" /> <parameter name="flip" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetVcenter" cname="gst_video_orientation_get_vcenter"> <method name="GetVcenter" cname="gst_video_orientation_get_vcenter">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="center" type="gint" /> <parameter name="center" type="gint*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="GetVflip" cname="gst_video_orientation_get_vflip"> <method name="GetVflip" cname="gst_video_orientation_get_vflip">
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="flip" type="gboolean" /> <parameter name="flip" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="SetHcenter" cname="gst_video_orientation_set_hcenter"> <method name="SetHcenter" cname="gst_video_orientation_set_hcenter">
@ -27446,7 +27304,7 @@
<parameter name="src_format" type="GstFormat" /> <parameter name="src_format" type="GstFormat" />
<parameter name="src_value" type="gint64" /> <parameter name="src_value" type="gint64" />
<parameter name="dest_format" type="GstFormat" /> <parameter name="dest_format" type="GstFormat" />
<parameter name="dest_value" type="gint64" /> <parameter name="dest_value" type="gint64*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="Copy" cname="gst_video_info_copy" version="1.6"> <method name="Copy" cname="gst_video_info_copy" version="1.6">
@ -27518,8 +27376,8 @@
<parameter name="info" type="GstMapInfo*"> <parameter name="info" type="GstMapInfo*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter allow-none="1" name="data" type="gpointer" /> <parameter name="data" type="gpointer*" owned="true" pass_as="out" />
<parameter name="stride" type="gint" /> <parameter name="stride" type="gint*" owned="true" pass_as="out" />
<parameter name="flags" type="GstMapFlags" /> <parameter name="flags" type="GstMapFlags" />
</parameters> </parameters>
</method> </method>
@ -28523,8 +28381,8 @@
<return-type type="gboolean" /> <return-type type="gboolean" />
<parameters> <parameters>
<parameter name="matrix" type="GstVideoColorMatrix" /> <parameter name="matrix" type="GstVideoColorMatrix" />
<parameter name="Kr" type="gdouble" /> <parameter name="Kr" type="gdouble*" owned="true" pass_as="out" />
<parameter name="Kb" type="gdouble" /> <parameter name="Kb" type="gdouble*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="VideoColorPrimariesGetInfo" cname="gst_video_color_primaries_get_info" shared="true" version="1.6"> <method name="VideoColorPrimariesGetInfo" cname="gst_video_color_primaries_get_info" shared="true" version="1.6">
@ -28542,8 +28400,8 @@
<parameter name="info" type="GstVideoFormatInfo*"> <parameter name="info" type="GstVideoFormatInfo*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="offset" type="gint*" owned="true" pass_as="out" /> <parameter name="offset" type="gint*" owned="true" pass_as="out" array="true" array_len="4" />
<parameter name="scale" type="gint*" owned="true" pass_as="out" /> <parameter name="scale" type="gint*" owned="true" pass_as="out" array="true" array_len="4" />
</parameters> </parameters>
</method> </method>
<method name="VideoColorTransferDecode" cname="gst_video_color_transfer_decode" shared="true" version="1.6"> <method name="VideoColorTransferDecode" cname="gst_video_color_transfer_decode" shared="true" version="1.6">
@ -28655,7 +28513,7 @@
<parameter name="event" type="GstEvent*"> <parameter name="event" type="GstEvent*">
<warning>missing glib:type-name</warning> <warning>missing glib:type-name</warning>
</parameter> </parameter>
<parameter name="in_still" type="gboolean" /> <parameter name="in_still" type="gboolean*" owned="true" pass_as="out" />
</parameters> </parameters>
</method> </method>
<method name="VideoEventParseUpstreamForceKeyUnit" cname="gst_video_event_parse_upstream_force_key_unit" shared="true"> <method name="VideoEventParseUpstreamForceKeyUnit" cname="gst_video_event_parse_upstream_force_key_unit" shared="true">
@ -28950,9 +28808,9 @@
<constant value="GstVideoResampler.sharpness" ctype="gchar*" gtype="gchar*" name="VIDEO_RESAMPLER_OPT_SHARPNESS" /> <constant value="GstVideoResampler.sharpness" ctype="gchar*" gtype="gchar*" name="VIDEO_RESAMPLER_OPT_SHARPNESS" />
<constant value="GstVideoScaler.dither-method" ctype="gchar*" gtype="gchar*" name="VIDEO_SCALER_OPT_DITHER_METHOD" /> <constant value="GstVideoScaler.dither-method" ctype="gchar*" gtype="gchar*" name="VIDEO_SCALER_OPT_DITHER_METHOD" />
<constant value="(int) [ 1, max ]" ctype="gchar*" gtype="gchar*" name="VIDEO_SIZE_RANGE" /> <constant value="(int) [ 1, max ]" ctype="gchar*" gtype="gchar*" name="VIDEO_SIZE_RANGE" />
<constant value="0" ctype="gint" gtype="gint" name="VIDEO_TILE_TYPE_MASK" /> <constant value="65535" ctype="gint" gtype="gint" name="VIDEO_TILE_TYPE_MASK" />
<constant value="16" ctype="gint" gtype="gint" name="VIDEO_TILE_TYPE_SHIFT" /> <constant value="16" ctype="gint" gtype="gint" name="VIDEO_TILE_TYPE_SHIFT" />
<constant value="0" ctype="gint" gtype="gint" name="VIDEO_TILE_X_TILES_MASK" /> <constant value="65535" ctype="gint" gtype="gint" name="VIDEO_TILE_X_TILES_MASK" />
<constant value="16" ctype="gint" gtype="gint" name="VIDEO_TILE_Y_TILES_SHIFT" /> <constant value="16" ctype="gint" gtype="gint" name="VIDEO_TILE_Y_TILES_SHIFT" />
</object> </object>
</namespace> </namespace>

View file

@ -47,6 +47,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
<!-- <attr path="/api/namespace/boxed[@cname='GstRTSPMessage']" name="noequals">true</attr> <!-- <attr path="/api/namespace/boxed[@cname='GstRTSPMessage']" name="noequals">true</attr>
<attr path="/api/namespace/boxed[@cname='GstRTSPMessage']" name="nohash">true</attr> --> <attr path="/api/namespace/boxed[@cname='GstRTSPMessage']" name="nohash">true</attr> -->
<attr path="/api/namespace/boxed[@cname='GstRTSPMessage']/field[@cname='body']" name="type">guint8*</attr> <attr path="/api/namespace/boxed[@cname='GstRTSPMessage']/field[@cname='body']" name="type">guint8*</attr>
<attr path="/api/namespace//method[@cname='gst_rtsp_message_parse_auth_credentials']" name="hidden">true</attr>
<!-- GstCaps fixes --> <!-- GstCaps fixes -->
<remove-node path="/api/namespace/boxed[@cname='GstCaps']/constructor[@cname='gst_caps_new_any']"/> <remove-node path="/api/namespace/boxed[@cname='GstCaps']/constructor[@cname='gst_caps_new_any']"/>
@ -212,7 +213,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
<attr path="/api/namespace//struct[@cname='GstAudioDownmixMeta']/field[@cname='from_position']" name="type">GstAudioChannelPosition*</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//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> <attr path="/api/namespace/boxed/method[@cname='gst_audio_converter_convert']" name="hidden">true</attr>
<attr path="/api/namespace/object/method[@cname='gst_audio_ring_buffer_prepare_read']" name="hidden">true</attr>
<remove-attr path="/api/namespace/boxed/method[@cname='gst_audio_info_set_format']/parameters/parameter[@name='position']" name="array_len"/> <remove-attr path="/api/namespace/boxed/method[@cname='gst_audio_info_set_format']/parameters/parameter[@name='position']" name="array_len"/>
<!-- FIXME Make GstAudioAggregator working --> <!-- FIXME Make GstAudioAggregator working -->
<attr path="/api/namespace/object[@cname='GstAudioAggregator']" name="hidden">true</attr> <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='GstAudioAggregatorPad']" name="hidden">true</attr>