From 6ad219d5f9571621cf78643c854717170027cbec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 19 Apr 2019 02:00:33 +0100 Subject: [PATCH] Release 1.16.0 --- ges/generated/GES/Constants.cs | 1 + ges/generated/GES/Global.cs | 9 + ges/generated/GES/TimelineElement.cs | 81 +++++- ges/generated/GES/TitleSource.cs | 6 +- ges/generated/GES/TrackElement.cs | 18 +- ges/generated/gst-editing-services-abi.c | 1 + ges/generated/gst-editing-services-abi.cs | 1 + ges/generated/gst-editing-services-api.xml | 38 ++- ges/gst-editing-services-api.raw | 38 ++- girs/Gst-1.0.gir | 121 +++++--- girs/GstAudio-1.0.gir | 93 +++++-- girs/GstBase-1.0.gir | 139 +++++++-- girs/GstNet-1.0.gir | 2 +- girs/GstPbutils-1.0.gir | 48 ++-- girs/GstRtp-1.0.gir | 14 +- girs/GstRtsp-1.0.gir | 16 +- girs/GstSdp-1.0.gir | 42 +-- girs/GstTag-1.0.gir | 20 +- girs/GstVideo-1.0.gir | 90 ++++-- meson.build | 2 +- sources/generated/Gst.Audio/AudioDecoder.cs | 9 + sources/generated/Gst.Audio/Global.cs | 13 + sources/generated/Gst.Base/AggregatorPad.cs | 76 +++++ sources/generated/Gst.Base/BitWriter.cs | 33 --- .../generated/Gst.Base/BufferConsumedHandler.cs | 18 ++ sources/generated/Gst.PbUtils/Constants.cs | 4 +- sources/generated/Gst.PbUtils/Global.cs | 50 ---- sources/generated/Gst.Rtp/RTPBasePayload.cs | 15 + sources/generated/Gst.Rtsp/RTSPHeaderField.cs | 4 +- sources/generated/Gst.Sdp/MIKEYEncAlg.cs | 1 + sources/generated/Gst.Sdp/MIKEYSecSRTP.cs | 1 + sources/generated/Gst.Sdp/SDPMessage.cs | 6 +- sources/generated/Gst.Sdp/SDPTime.cs | 6 +- sources/generated/Gst.Video/Constants.cs | 2 +- sources/generated/Gst.Video/VideoColorPrimaries.cs | 4 + sources/generated/Gst.Video/VideoFormat.cs | 2 + sources/generated/Gst/Constants.cs | 4 +- sources/generated/Gst/ElementFactory.cs | 11 - sources/generated/Gst/Event.cs | 18 ++ sources/generated/Gst/Global.cs | 27 +- sources/generated/Gst/Meta.cs | 15 +- sources/generated/Gst/Parse.cs | 12 +- sources/generated/Gst/Plugin.cs | 18 +- sources/generated/Gst/Tag.cs | 18 +- sources/generated/Gst/TypeFindFactory.cs | 11 - sources/generated/gstreamer-sharp-api.xml | 296 +++++++++++--------- sources/generated/meson.build | 3 +- sources/gstreamer-sharp-api.raw | 310 ++++++++++++--------- 48 files changed, 1086 insertions(+), 681 deletions(-) create mode 100644 sources/generated/Gst.Base/BufferConsumedHandler.cs diff --git a/ges/generated/GES/Constants.cs b/ges/generated/GES/Constants.cs index ca2f0cd..f5e3905 100644 --- a/ges/generated/GES/Constants.cs +++ b/ges/generated/GES/Constants.cs @@ -23,6 +23,7 @@ namespace GES { public const string MULTI_FILE_URI_PREFIX = @"multifile://"; public const int PADDING = 4; public const int PADDING_LARGE = 20; + public const uint TIMELINE_ELEMENT_NO_LAYER_PRIORITY = 4294967295; #endregion } } diff --git a/ges/generated/GES/Global.cs b/ges/generated/GES/Global.cs index 3c1d55d..bdcea33 100644 --- a/ges/generated/GES/Global.cs +++ b/ges/generated/GES/Global.cs @@ -30,6 +30,15 @@ namespace GES { } [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr ges_edge_name(int edge); + + public static string EdgeName(GES.Edge edge) { + IntPtr raw_ret = ges_edge_name((int) edge); + string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); + return ret; + } + + [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] static extern bool ges_init(); public static bool Init() { diff --git a/ges/generated/GES/TimelineElement.cs b/ges/generated/GES/TimelineElement.cs index f27ab6b..6a3166a 100644 --- a/ges/generated/GES/TimelineElement.cs +++ b/ges/generated/GES/TimelineElement.cs @@ -1163,6 +1163,64 @@ namespace GES { Marshal.FreeHGlobal (native_value); } + static GetLayerPriorityNativeDelegate GetLayerPriority_cb_delegate; + static GetLayerPriorityNativeDelegate GetLayerPriorityVMCallback { + get { + if (GetLayerPriority_cb_delegate == null) + GetLayerPriority_cb_delegate = new GetLayerPriorityNativeDelegate (GetLayerPriority_cb); + return GetLayerPriority_cb_delegate; + } + } + + static void OverrideGetLayerPriority (GLib.GType gtype) + { + OverrideGetLayerPriority (gtype, GetLayerPriorityVMCallback); + } + + static void OverrideGetLayerPriority (GLib.GType gtype, GetLayerPriorityNativeDelegate callback) + { + unsafe { + IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_layer_priority")); + *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback); + } + } + + [UnmanagedFunctionPointer (CallingConvention.Cdecl)] + delegate uint GetLayerPriorityNativeDelegate (IntPtr inst); + + static uint GetLayerPriority_cb (IntPtr inst) + { + try { + TimelineElement __obj = GLib.Object.GetObject (inst, false) as TimelineElement; + uint __result; + __result = __obj.OnGetLayerPriority (); + return __result; + } catch (Exception e) { + GLib.ExceptionManager.RaiseUnhandledException (e, true); + // NOTREACHED: above call does not return. + throw e; + } + } + + [GLib.DefaultSignalHandler(Type=typeof(GES.TimelineElement), ConnectionMethod="OverrideGetLayerPriority")] + protected virtual uint OnGetLayerPriority () + { + return InternalGetLayerPriority (); + } + + private uint InternalGetLayerPriority () + { + GetLayerPriorityNativeDelegate unmanaged = null; + unsafe { + IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_layer_priority")); + unmanaged = (GetLayerPriorityNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetLayerPriorityNativeDelegate)); + } + if (unmanaged == null) return 0; + + uint __result = unmanaged (this.Handle); + return __result; + } + // Internal representation of the wrapped structure ABI. static GLib.AbiStruct _class_abi = null; @@ -1302,14 +1360,22 @@ namespace GES { , -1 , (uint) Marshal.SizeOf(typeof(IntPtr)) // set_child_property , "get_track_types" + , "get_layer_priority" + , (uint) Marshal.SizeOf(typeof(IntPtr)) + , 0 + ), + new GLib.AbiField("get_layer_priority" + , -1 + , (uint) Marshal.SizeOf(typeof(IntPtr)) // get_layer_priority + , "set_child_property" , "_ges_reserved" , (uint) Marshal.SizeOf(typeof(IntPtr)) , 0 ), new GLib.AbiField("_ges_reserved" , -1 - , (uint) Marshal.SizeOf(typeof(IntPtr)) * 17 // _ges_reserved - , "set_child_property" + , (uint) Marshal.SizeOf(typeof(IntPtr)) * 16 // _ges_reserved + , "get_layer_priority" , null , (uint) Marshal.SizeOf(typeof(IntPtr)) , 0 @@ -1379,6 +1445,17 @@ namespace GES { } [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] + static extern uint ges_timeline_element_get_layer_priority(IntPtr raw); + + public uint LayerPriority { + get { + uint raw_ret = ges_timeline_element_get_layer_priority(Handle); + uint ret = raw_ret; + return ret; + } + } + + [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr ges_timeline_element_get_toplevel_parent(IntPtr raw); public GES.TimelineElement ToplevelParent { diff --git a/ges/generated/GES/TitleSource.cs b/ges/generated/GES/TitleSource.cs index 6e6da86..e2a36e2 100644 --- a/ges/generated/GES/TitleSource.cs +++ b/ges/generated/GES/TitleSource.cs @@ -76,10 +76,11 @@ namespace GES { [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] static extern void ges_title_source_set_font_desc(IntPtr raw, IntPtr font_desc); + [Obsolete] public string FontDesc { get { IntPtr raw_ret = ges_title_source_get_font_desc(Handle); - string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); + string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return ret; } set { @@ -112,10 +113,11 @@ namespace GES { [DllImport("ges-1.0", CallingConvention = CallingConvention.Cdecl)] static extern void ges_title_source_set_text(IntPtr raw, IntPtr text); + [Obsolete] public string Text { get { IntPtr raw_ret = ges_title_source_get_text(Handle); - string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); + string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); return ret; } set { diff --git a/ges/generated/GES/TrackElement.cs b/ges/generated/GES/TrackElement.cs index 6cd557d..15619ec 100644 --- a/ges/generated/GES/TrackElement.cs +++ b/ges/generated/GES/TrackElement.cs @@ -453,31 +453,19 @@ namespace GES { int cnt_wanted_categories = wanted_categories == null ? 0 : wanted_categories.Length; IntPtr[] native_wanted_categories = new IntPtr [cnt_wanted_categories + 1]; for (int i = 0; i < cnt_wanted_categories; i++) - native_wanted_categories [i] = GLib.Marshaller.StringToPtrGStrdup (wanted_categories[i]); + native_wanted_categories [i] = GLib.Marshaller.StringToPtrGStrdup(wanted_categories[i]); native_wanted_categories [cnt_wanted_categories] = IntPtr.Zero; int cnt_blacklist = blacklist == null ? 0 : blacklist.Length; IntPtr[] native_blacklist = new IntPtr [cnt_blacklist + 1]; for (int i = 0; i < cnt_blacklist; i++) - native_blacklist [i] = GLib.Marshaller.StringToPtrGStrdup (blacklist[i]); + native_blacklist [i] = GLib.Marshaller.StringToPtrGStrdup(blacklist[i]); native_blacklist [cnt_blacklist] = IntPtr.Zero; int cnt_whitelist = whitelist == null ? 0 : whitelist.Length; IntPtr[] native_whitelist = new IntPtr [cnt_whitelist + 1]; for (int i = 0; i < cnt_whitelist; i++) - native_whitelist [i] = GLib.Marshaller.StringToPtrGStrdup (whitelist[i]); + native_whitelist [i] = GLib.Marshaller.StringToPtrGStrdup(whitelist[i]); native_whitelist [cnt_whitelist] = IntPtr.Zero; ges_track_element_add_children_props(Handle, element == null ? IntPtr.Zero : element.Handle, native_wanted_categories, native_blacklist, native_whitelist); - for (int i = 0; i < native_wanted_categories.Length - 1; i++) { - wanted_categories [i] = GLib.Marshaller.Utf8PtrToString (native_wanted_categories[i]); - GLib.Marshaller.Free (native_wanted_categories[i]); - } - for (int i = 0; i < native_blacklist.Length - 1; i++) { - blacklist [i] = GLib.Marshaller.Utf8PtrToString (native_blacklist[i]); - GLib.Marshaller.Free (native_blacklist[i]); - } - for (int i = 0; i < native_whitelist.Length - 1; i++) { - whitelist [i] = GLib.Marshaller.Utf8PtrToString (native_whitelist[i]); - GLib.Marshaller.Free (native_whitelist[i]); - } } public void AddChildrenProps(Gst.Element element) { diff --git a/ges/generated/gst-editing-services-abi.c b/ges/generated/gst-editing-services-abi.c index e1aa6d4..68e2cd9 100644 --- a/ges/generated/gst-editing-services-abi.c +++ b/ges/generated/gst-editing-services-abi.c @@ -174,6 +174,7 @@ int main (int argc, char *argv[]) { g_print("\"GESTimelineElementClass.lookup_child\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, lookup_child)); g_print("\"GESTimelineElementClass.get_track_types\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_track_types)); g_print("\"GESTimelineElementClass.set_child_property\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, set_child_property)); + g_print("\"GESTimelineElementClass.get_layer_priority\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElementClass, get_layer_priority)); g_print("\"sizeof(GESTimelineElement)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GESTimelineElement)); g_print("\"GESTimelineElement.parent\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, parent)); g_print("\"GESTimelineElement.asset\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GESTimelineElement, asset)); diff --git a/ges/generated/gst-editing-services-abi.cs b/ges/generated/gst-editing-services-abi.cs index 91455c5..3b4f9a8 100644 --- a/ges/generated/gst-editing-services-abi.cs +++ b/ges/generated/gst-editing-services-abi.cs @@ -189,6 +189,7 @@ namespace AbiTester { Console.WriteLine("\"GESTimelineElementClass.lookup_child\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("lookup_child") + "\""); Console.WriteLine("\"GESTimelineElementClass.get_track_types\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_track_types") + "\""); Console.WriteLine("\"GESTimelineElementClass.set_child_property\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("set_child_property") + "\""); + Console.WriteLine("\"GESTimelineElementClass.get_layer_priority\": \"" + GES.TimelineElement.class_abi.GetFieldOffset("get_layer_priority") + "\""); Console.WriteLine("\"sizeof(GESTimelineElement)\": \"" + GES.TimelineElement.abi_info.Size + "\""); Console.WriteLine("\"GESTimelineElement.parent\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("parent") + "\""); Console.WriteLine("\"GESTimelineElement.asset\": \"" + GES.TimelineElement.abi_info.GetFieldOffset("asset") + "\""); diff --git a/ges/generated/gst-editing-services-api.xml b/ges/generated/gst-editing-services-api.xml index 382dc64..26d54c8 100644 --- a/ges/generated/gst-editing-services-api.xml +++ b/ges/generated/gst-editing-services-api.xml @@ -202,7 +202,7 @@ - + @@ -211,7 +211,7 @@ - + @@ -2508,7 +2508,8 @@ - + + @@ -2519,6 +2520,10 @@ + + + + @@ -2659,6 +2664,10 @@ + + + + @@ -2971,16 +2980,16 @@ - - + + - - + + @@ -3227,9 +3236,9 @@ - - - + + + @@ -3817,6 +3826,12 @@ + + + + + + @@ -3824,7 +3839,7 @@ - + @@ -3893,6 +3908,7 @@ + \ No newline at end of file diff --git a/ges/gst-editing-services-api.raw b/ges/gst-editing-services-api.raw index 2e42d66..051a4ea 100644 --- a/ges/gst-editing-services-api.raw +++ b/ges/gst-editing-services-api.raw @@ -202,7 +202,7 @@ - + @@ -211,7 +211,7 @@ - + @@ -2528,7 +2528,8 @@ - + + @@ -2539,6 +2540,10 @@ + + + + @@ -2679,6 +2684,10 @@ + + + + @@ -2991,16 +3000,16 @@ - - + + - - + + @@ -3247,9 +3256,9 @@ - - - + + + @@ -3841,6 +3850,12 @@ + + + + + + @@ -3848,7 +3863,7 @@ - + @@ -3917,6 +3932,7 @@ + diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 51746d9..f216946 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -3893,7 +3893,7 @@ gst_buffer_pool_config_add_option(). a %NULL terminated array of strings. - + @@ -4046,7 +4046,7 @@ gst_buffer_pool_config_add_option(). a %NULL terminated array of strings. - + @@ -4283,7 +4283,7 @@ return. a %NULL terminated array of strings. - + @@ -13586,9 +13586,9 @@ MT safe. Retrieves the factory that was used to create this element. - + the #GstElementFactory used for creating this - element. no refcounting is needed. + element or %NULL if element has not been registered (static element). no refcounting is needed. @@ -15990,7 +15990,7 @@ make a copy of the protocol string array if you need to. the supported protocols or %NULL - + @@ -17278,6 +17278,26 @@ gst_event_new_qos() for more information about the different QoS values. + + Retrieve the trickmode interval that may have been set on a +seek event with gst_event_set_seek_trickmode_interval(). + + + + + + + + + + + + Parses a segment @event and stores the result in the given @segment location. @segment remains valid only until the @event is freed. Don't modify the segment @@ -17653,6 +17673,24 @@ MT safe. + + Sets a trickmode interval on a (writable) seek event. Elements +that support TRICKMODE_KEY_UNITS seeks SHOULD use this as the minimal +interval between each frame they may output. + + + + + + + + + + + + Set the sequence number of a event. @@ -20547,8 +20585,11 @@ receiving this message should stop the pipeline. A debugging string. - - (allow-none): A GstStructure with details + + A GstStructure with details @@ -20629,8 +20670,11 @@ MT safe. A debugging string. - - (allow-none): A GstStructure with details + + A GstStructure with details @@ -21347,8 +21391,11 @@ MT safe. A debugging string. - - (allow-none): A GstStructure with details + + A GstStructure with details @@ -23464,7 +23511,7 @@ or a #GCompareDataFunc. version="1.2"> an array of tags as strings. - + @@ -23508,7 +23555,7 @@ or a #GCompareDataFunc. tags for @api - + @@ -30022,7 +30069,7 @@ codec libraries are currently installed. or %NULL. Environment variable names may be followed by a path component which will be added to the content of the environment variable, e.g. "HOME/.mystuff/plugins". - + @@ -30032,7 +30079,7 @@ codec libraries are currently installed. allow-none="1"> %NULL-terminated array of directories/paths where dependent files may be, or %NULL. - + @@ -30044,7 +30091,7 @@ codec libraries are currently installed. depending on @flags) to be used in combination with the paths from @paths and/or the paths extracted from the environment variables in @env_vars, or %NULL. - + @@ -34136,7 +34183,7 @@ in the @formats array must be equal to @n_formats. an array containing @n_formats @GstFormat values. - + @@ -43510,7 +43557,7 @@ returns and must not be freed. the requested data, or %NULL if that data is not available. - + @@ -43777,7 +43824,7 @@ a 0-length list. a %NULL-terminated array of extensions associated with this factory - + @@ -44348,9 +44395,9 @@ See more about Media Fragments URI 1.0 (W3C) at https://www.w3.org/TR/media-frag Extract the path string from the URI object. - - (nullable): The path from the URI. Once finished - with the string should be g_free()'d. + + The path from the URI. Once finished + with the string should be g_free()'d. @@ -45229,11 +45276,11 @@ determine a order for the two provided values. The major version of GStreamer at compile time: - + The micro version of GStreamer at compile time: - + The minor version of GStreamer at compile time: @@ -46577,7 +46624,7 @@ is unknown. The format array to search - + @@ -46727,8 +46774,8 @@ abort program execution. nullable="1" allow-none="1"> pointer to application's argv - - + + @@ -46761,8 +46808,8 @@ use gst_init() instead. nullable="1" allow-none="1"> pointer to application's argv - - + + @@ -46865,7 +46912,7 @@ or gst_init_check(). version="1.2"> an array of tags as strings. - + @@ -46911,7 +46958,7 @@ or gst_init_check(). tags for @api - + @@ -47321,7 +47368,7 @@ on failure. null-terminated array of arguments - + @@ -47344,7 +47391,7 @@ An error does not mean that the pipeline could not be constructed. null-terminated array of arguments - + @@ -47580,7 +47627,7 @@ the @system_identifiers supported by the set of available decryptors, or A null terminated array of strings that contains the UUID values of each protection system that is to be checked. - + @@ -47617,7 +47664,7 @@ element has been found. A null terminated array of strings that contains the UUID values of each protection system that is to be checked. - + @@ -48450,7 +48497,7 @@ the result. a pointer to the memory to dump - + diff --git a/girs/GstAudio-1.0.gir b/girs/GstAudio-1.0.gir index 79d0788..81348a6 100644 --- a/girs/GstAudio-1.0.gir +++ b/girs/GstAudio-1.0.gir @@ -1497,7 +1497,7 @@ positions and the same positions, only in a different order. The channel positions in the buffer. + c:type="const GstAudioChannelPosition*"> @@ -1506,7 +1506,7 @@ positions and the same positions, only in a different order. The channel positions to convert to. + c:type="const GstAudioChannelPosition*"> @@ -1865,14 +1865,14 @@ Perform channel mixing on @in_data and write the result to @out_data. nullable="1" allow-none="1"> input samples - + output samples - + number of samples @@ -2679,7 +2679,7 @@ are matching and @in and @out point to enough memory. nullable="1" allow-none="1"> input frames - + number of input frames @@ -2690,7 +2690,7 @@ are matching and @in and @out point to enough memory. nullable="1" allow-none="1"> output frames - + number of output frames @@ -3165,6 +3165,37 @@ invalidated by a call to this function. + + Collects decoded data and pushes it downstream. This function may be called +multiple times for a given input frame. + +@buf may be NULL in which case it is assumed that the current input frame is +finished. This is equivalent to calling gst_audio_decoder_finish_subframe() +with a NULL buffer and frames=1 after having pushed out all decoded audio +subframes using this function. + +When called with valid data in @buf the source pad caps must have been set +already. + +Note that a frame received in #GstAudioDecoderClass.handle_frame() may be +invalidated by a call to this function. + + a #GstFlowReturn that should be escalated to caller (of caller) + + + + + a #GstAudioDecoder + + + + decoded data + + + + Lets #GstAudioDecoder sub-classes to know the memory @allocator @@ -6234,7 +6265,7 @@ Note: This initializes @info first, no values are preserved. allow-none="1"> the channel positions @@ -6421,14 +6452,14 @@ modified in-place. nullable="1" allow-none="1"> input samples - + output samples - + number of samples @@ -6599,7 +6630,7 @@ are matching and @in and @out point to enough memory. nullable="1" allow-none="1"> input samples - + number of input frames @@ -6610,7 +6641,7 @@ are matching and @in and @out point to enough memory. nullable="1" allow-none="1"> output samples - + number of output frames @@ -7708,7 +7739,7 @@ be called in when the ringbuffer is acquired. the device channel positions - + @@ -9301,7 +9332,7 @@ positions and the same positions, only in a different order. The channel positions in the buffer. + c:type="const GstAudioChannelPosition*"> @@ -9310,7 +9341,7 @@ positions and the same positions, only in a different order. The channel positions to convert to. + c:type="const GstAudioChannelPosition*"> @@ -9498,7 +9529,7 @@ in the order required by GStreamer. The %GstAudioChannelPositions + c:type="const GstAudioChannelPosition*"> @@ -9537,7 +9568,7 @@ Since 1.10 to convert. + c:type="const GstAudioChannelPosition*"> @@ -9589,7 +9620,7 @@ checks if the channels are in the order required by GStreamer. to check. + c:type="const GstAudioChannelPosition*"> @@ -9756,7 +9787,7 @@ is possible. The channel positions to reorder from. + c:type="const GstAudioChannelPosition*"> @@ -9765,7 +9796,7 @@ is possible. The channel positions to reorder to. + c:type="const GstAudioChannelPosition*"> @@ -9808,7 +9839,7 @@ otherwise. a buffer containing the data to payload - + @@ -9929,7 +9960,7 @@ Note: this function assumes the audio data is in interleaved layout The channel positions in the buffer. + c:type="const GstAudioChannelPosition*"> @@ -9938,7 +9969,7 @@ Note: this function assumes the audio data is in interleaved layout The channel positions to convert to. + c:type="const GstAudioChannelPosition*"> @@ -10065,7 +10096,7 @@ of the results. of the source + c:type="const GstAudioChannelPosition*"> @@ -10079,7 +10110,7 @@ of the results. the destination + c:type="const GstAudioChannelPosition*"> @@ -10096,8 +10127,7 @@ of the results. + version="1.16"> Allocates and attaches a #GstAudioMeta on @buffer, which must be writable for that purpose. The fields of the #GstAudioMeta are directly populated from the arguments of this function. @@ -10116,7 +10146,7 @@ specified cause this restriction to be violated. It is, obviously, also not allowed to specify parameters that would cause out-of-bounds memory access on @buffer. This is also checked, which means that you must add enough memory on the @buffer before adding this meta. - + the #GstAudioMeta that was attached on the @buffer @@ -10133,11 +10163,14 @@ that you must add enough memory on the @buffer before adding this meta. the number of valid samples in the buffer - + the offsets (in bytes) where each channel plane starts in the buffer or %NULL to calculate it (see below); must be %NULL also when @info->layout is %GST_AUDIO_LAYOUT_INTERLEAVED - + @@ -10159,7 +10192,7 @@ channel positions. the destination + c:type="const GstAudioChannelPosition*"> diff --git a/girs/GstBase-1.0.gir b/girs/GstBase-1.0.gir index 3f0363d..e1856a5 100644 --- a/girs/GstBase-1.0.gir +++ b/girs/GstBase-1.0.gir @@ -1841,6 +1841,13 @@ usage. + + Enables the emission of signals such as #GstAggregatorPad::buffer-consumed + + @@ -1856,6 +1863,16 @@ usage. + + + + + + + + + + If @automatic_eos is %TRUE, @src will automatically go EOS if a buffer after the total size is returned. By default this is %TRUE but sources that can't return an authoritative size and only know that they're EOS -when trying to read more should set this to %FALSE. +when trying to read more should set this to %FALSE. + +When @src operates in %GST_FORMAT_TIME, #GstBaseSrc will send an EOS +when a buffer outside of the currently configured segment is pushed if +@automatic_eos is %TRUE. Since 1.16, if @automatic_eos is %FALSE an +EOS will be pushed only when the #GstBaseSrc.create implementation +returns %GST_FLOW_EOS. @@ -6923,7 +6946,7 @@ into 8, 16, 32 and 64 bit variables. Data from which the bit reader will read - + @@ -7109,7 +7132,7 @@ can be called on already initialized instances. data from which the bit reader should read - + @@ -7281,7 +7304,7 @@ Free-function: gst_bit_reader_free Data from which the #GstBitReader should read - + @@ -7422,7 +7445,9 @@ Free-function: g_free - + Initializes @bitwriter to an empty instance. @@ -7435,7 +7460,8 @@ Free-function: g_free + c:identifier="gst_bit_writer_init_with_data" + introspectable="0"> Initializes @bitwriter with the given memory area @data. IF @initialized is %TRUE it is possible to read @size bits from the #GstBitWriter from the beginning. @@ -7464,7 +7490,8 @@ Free-function: g_free + c:identifier="gst_bit_writer_init_with_size" + introspectable="0"> Initializes a #GstBitWriter instance and allocates the given data @size. @@ -7696,14 +7723,20 @@ Free-function: gst_bit_writer_free - + Creates a #GstBitWriter instance with the given initial data size. + +Free-function: gst_bit_writer_free + + a new #GstBitWriter instance + Initial size of data in bytes + If %TRUE the data can't be reallocated @@ -7719,7 +7752,7 @@ in various character encodings. Data from which the bit reader will read - + @@ -7917,7 +7950,7 @@ updates the current position. transfer-ownership="none"> address of a #guint8 pointer variable in which to store the result - + @@ -8265,7 +8298,7 @@ This function will fail if no NUL-terminator was found in in the data. transfer-ownership="none"> address of a #gchar pointer variable in which to store the result - + @@ -8511,7 +8544,7 @@ can be called on already initialized instances. data from which the #GstByteReader should read - + @@ -8655,7 +8688,7 @@ keeps the current position. transfer-ownership="none"> address of a #guint8 pointer variable in which to store the result - + @@ -8971,7 +9004,7 @@ This function will fail if no NUL-terminator was found in in the data. transfer-ownership="none"> address of a #gchar pointer variable in which to store the result - + @@ -9309,7 +9342,7 @@ Free-function: gst_byte_reader_free data from which the #GstByteReader should read - + @@ -9550,7 +9583,7 @@ read @size bytes from the #GstByteWriter from the beginning. Data to write - + @@ -9799,7 +9832,7 @@ read @size bytes from the #GstByteWriter from the beginning. UTF16 string to write - + @@ -9819,7 +9852,7 @@ read @size bytes from the #GstByteWriter from the beginning. UTF32 string to write - + @@ -12510,7 +12543,7 @@ Free-function: gst_bit_reader_free Data from which the #GstBitReader should read - + @@ -12520,6 +12553,68 @@ Free-function: gst_bit_reader_free + + Creates a new, empty #GstBitWriter instance. + +Free-function: gst_bit_writer_free + + a new, empty #GstByteWriter instance + + + + + Creates a new #GstBitWriter instance with the given memory area. If +@initialized is %TRUE it is possible to read @size bits from the +#GstBitWriter from the beginnig. + +Free-function: gst_bit_writer_free + + a new #GstBitWriter instance + + + + + Memory area for writing + + + + Size of @data in bytes + + + + if %TRUE the complete data can be read from the beginning + + + + + + Creates a #GstBitWriter instance with the given initial data size. + +Free-function: gst_bit_writer_free + + a new #GstBitWriter instance + + + + + Initial size of data in bytes + + + + If %TRUE the data can't be reallocated + + + + data from which the #GstByteReader should read - + @@ -12800,7 +12895,7 @@ Free-function: gst_caps_unref * a pointer with data to typefind - + @@ -12856,7 +12951,7 @@ Free-function: gst_caps_unref * a pointer with data to typefind - + diff --git a/girs/GstNet-1.0.gir b/girs/GstNet-1.0.gir index 5daf3ce..2356c34 100644 --- a/girs/GstNet-1.0.gir +++ b/girs/GstNet-1.0.gir @@ -214,7 +214,7 @@ MT safe. Caller owns return value (gst_net_time_packet_free to free). a buffer from which to construct the packet, or NULL - + diff --git a/girs/GstPbutils-1.0.gir b/girs/GstPbutils-1.0.gir index ca32958..5c70c88 100644 --- a/girs/GstPbutils-1.0.gir +++ b/girs/GstPbutils-1.0.gir @@ -837,7 +837,7 @@ gst_discoverer_stream_info_list_free(). containing informations about how to install the various missing elements for @info to be usable. If you wish to use the strings after the life-time of @info, you will need to copy them. - + @@ -2753,13 +2753,13 @@ in debugging. The micro version of GStreamer's gst-plugins-base libraries at compile time. The minor version of GStreamer's gst-plugins-base libraries at compile time. @@ -2791,7 +2791,7 @@ If mpegversion is 4, the "base-profile" field is also set in @caps. a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. (See below for more details) - + @@ -2815,7 +2815,7 @@ Since 1.10 a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. - + @@ -2865,7 +2865,7 @@ determined. a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. - + @@ -2890,7 +2890,7 @@ determined. a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. - + @@ -2915,7 +2915,7 @@ Since 1.10 a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. - + @@ -2957,7 +2957,7 @@ for more details on the parameters. Pointer to the sequence parameter set for the stream. - + @@ -2979,7 +2979,7 @@ same format as for gst_codec_utils_h264_get_profile(). Pointer to the sequence parameter set for the stream. - + @@ -3026,7 +3026,7 @@ byte. Pointer to the sequence parameter set for the stream. - + @@ -3056,7 +3056,7 @@ Since 1.4 Pointer to the profile_tier_level struct - + @@ -3081,7 +3081,7 @@ Since 1.4 Pointer to the profile_tier_level for the stream - + @@ -3135,7 +3135,7 @@ Since 1.4 Pointer to the profile_tier_level structure for the stream. - + @@ -3160,7 +3160,7 @@ Since 1.4 Pointer to the profile_tier_level for the stream. - + @@ -3188,7 +3188,7 @@ parameters. Pointer to the visual object sequence for the stream. - + @@ -3212,7 +3212,7 @@ object sequence start code. Only the first byte Pointer to the visual object sequence for the stream. - + @@ -3236,7 +3236,7 @@ object sequence start code. Only the first byte Pointer to the visual object sequence for the stream. - + @@ -3281,7 +3281,7 @@ invalid Opus caps. nullable="1" allow-none="1"> the mapping between the streams - + @@ -3344,7 +3344,7 @@ invalid Opus caps. nullable="1" allow-none="1"> the mapping between the streams - + @@ -3411,7 +3411,7 @@ invalid Opus caps. caller-allocates="0" transfer-ownership="full"> the mapping between the streams - + @@ -3470,7 +3470,7 @@ invalid Opus caps. caller-allocates="0" transfer-ownership="full"> the mapping between the streams - + @@ -3548,7 +3548,7 @@ installed but no suitable video decoder and no suitable audio decoder). NULL-terminated array of installer string details (see below) - + @@ -3633,7 +3633,7 @@ gst_install_plugins_async() instead of this function. NULL-terminated array of installer string details - + diff --git a/girs/GstRtp-1.0.gir b/girs/GstRtp-1.0.gir index ee94f7ca..bbfc42c 100644 --- a/girs/GstRtp-1.0.gir +++ b/girs/GstRtp-1.0.gir @@ -398,7 +398,7 @@ extension. profile-specific data - + @@ -1154,7 +1154,7 @@ reached. the data - + @@ -2341,7 +2341,7 @@ the buffer downstream. data to set as payload - + @@ -3092,6 +3092,14 @@ Variable arguments should be in the form field name, field type + + Make the payloader timestamp packets according to the Rate-Control=no +behaviour specified in the ONVIF replay spec. + + Try to use the offset fields to generate perfect RTP timestamps. When this option is disabled, RTP timestamps are generated from GST_BUFFER_PTS of diff --git a/girs/GstRtsp-1.0.gir b/girs/GstRtsp-1.0.gir index 6948385..1f2acf8 100644 --- a/girs/GstRtsp-1.0.gir +++ b/girs/GstRtsp-1.0.gir @@ -1967,8 +1967,18 @@ read from @socket which should be used before starting to read new data. c:identifier="GST_RTSP_HDR_ACCEPT_RANGES" glib:nick="accept-ranges"> - + + + + @@ -2620,7 +2630,7 @@ will be replaced by the new body. the data - + @@ -4326,7 +4336,7 @@ are reached. #GST_RTSP_EINTR when @watch was flushing. the data to queue - + diff --git a/girs/GstSdp-1.0.gir b/girs/GstSdp-1.0.gir index dc1324d..b3c7d00 100644 --- a/girs/GstSdp-1.0.gir +++ b/girs/GstSdp-1.0.gir @@ -44,6 +44,11 @@ and/or use gtk-doc annotations. --> c:identifier="GST_MIKEY_ENC_AES_KW_128"> AES Key Wrap using a 128-bit key + + AES-GCM using a 128-bit key (Since 1.16) + @@ -293,7 +298,7 @@ parameters to decrypt and verify the data. the encrypted envelope key - + @@ -318,7 +323,7 @@ parameters to decrypt and verify the data. random data - + @@ -362,7 +367,7 @@ parameters to decrypt and verify the data. The timestamp value of the specified @type - + @@ -858,7 +863,7 @@ payload. the Valid From data - + @@ -868,7 +873,7 @@ payload. the Valid To data - + @@ -898,7 +903,7 @@ payload. the key of type @key_type - + @@ -927,7 +932,7 @@ salt data will be removed. nullable="1" allow-none="1"> the salt - + @@ -952,7 +957,7 @@ salt data will be removed. the SPI/MKI data - + @@ -982,7 +987,7 @@ salt data will be removed. the encrypted envelope key - + @@ -1007,7 +1012,7 @@ salt data will be removed. random values - + @@ -1037,7 +1042,7 @@ and @val. @len bytes of data - + @@ -1142,7 +1147,7 @@ at @idx. the timestamp value - + @@ -1424,6 +1429,11 @@ specific security protocol c:identifier="GST_MIKEY_SP_SRTP_SRTP_PREFIX_LEN"> SRTP prefix length + + AEAD authentication tag length (Since 1.16) + Specifies the timestamp type. @@ -2798,7 +2808,7 @@ gst_sdp_media_init() before it can be used again. the repeat times - + @@ -3943,7 +3953,7 @@ stack and initialized with gst_sdp_message_init(). the start of the buffer - + @@ -4079,7 +4089,7 @@ a conference session. the repeat times - + @@ -4322,7 +4332,7 @@ a=rtcp-fb:(payload) (param1) [param2]... the start of the buffer - + diff --git a/girs/GstTag-1.0.gir b/girs/GstTag-1.0.gir index 4307b88..ebda563 100644 --- a/girs/GstTag-1.0.gir +++ b/girs/GstTag-1.0.gir @@ -1039,7 +1039,7 @@ WINDOWS-1252/ISO-8859-1 is assumed (which will almost always succeed). string data - + @@ -1050,7 +1050,7 @@ WINDOWS-1252/ISO-8859-1 is assumed (which will almost always succeed). a NULL-terminated string array of environment variable names, or NULL - + @@ -1391,7 +1391,7 @@ data (we can't trust the declared mime type). the (encoded) image - + @@ -1423,7 +1423,7 @@ more information on image tags in GStreamer. the (encoded) image - + @@ -1505,7 +1505,7 @@ vorbiscomment packet. data to convert - + @@ -1515,7 +1515,7 @@ vorbiscomment packet. identification data at start of stream - + @@ -1551,7 +1551,7 @@ vorbiscomment packet. identification data at start of stream - + @@ -1596,7 +1596,7 @@ parsed data. 128 bytes of data containing the ID3v1 tag - + @@ -1655,7 +1655,7 @@ is put in the beginning of the buffer. identification data at start of stream - + @@ -1693,7 +1693,7 @@ be used %NULL terminated array of schemas to be used on serialization - + diff --git a/girs/GstVideo-1.0.gir b/girs/GstVideo-1.0.gir index deb1fb3..761bbcf 100644 --- a/girs/GstVideo-1.0.gir +++ b/girs/GstVideo-1.0.gir @@ -1716,7 +1716,7 @@ of cores. @@ -1888,7 +1888,7 @@ Performs the multiplication, meta->matrix X matrix. a 4x4 transformation matrix to be applied - + @@ -2900,7 +2900,7 @@ type, or %GST_VIDEO_CAPTION_TYPE_UNKNOWN. nullable="1" allow-none="1"> pixel lines - + the number of pixels on one line @@ -3453,6 +3453,30 @@ the CIE XYZ colorspace. glib:nick="adobergb"> Adobe RGB primaries. Since: 1.8 + + SMPTE ST 428 primaries. Since: 1.16 + + + SMPTE RP 431 primaries. Since: 1.16 + + + SMPTE EG 432 primaries. Since: 1.16 + + + EBU 3213 primaries. Since: 1.16 + @@ -3563,7 +3587,7 @@ the component values in range [0.0 .. 1.0] back to their representation in caller-allocates="1" transfer-ownership="none"> output offsets - + @@ -3572,7 +3596,7 @@ the component values in range [0.0 .. 1.0] back to their representation in caller-allocates="1" transfer-ownership="none"> output scale - + @@ -5320,7 +5344,7 @@ performance is achived when @quantizer is a power of 2. quantizer - + the width of the lines @@ -7200,6 +7224,18 @@ for details about the layout and packing of these formats in memory. glib:nick="y410"> packed 4:4:4 YUV, 10 bits per channel(A-V-Y-U...) (Since: 1.16) + + packed 4:4:4 YUV with alpha channel (V0-U0-Y0-A0...) (Since: 1.16) + + + packed 4:4:4 RGB with alpha channel(B-G-R-A), 10 bits for R/G/B channel and MSB 2 bits for alpha channel (Since: 1.16) + Converts a FOURCC value into the corresponding #GstVideoFormat. If the FOURCC cannot be represented by #GstVideoFormat, @@ -7567,11 +7603,11 @@ formats this means that a complete pixel needs to be packed. nullable="1" allow-none="1"> pointers to the destination data planes - + strides of the destination planes - + the chroma siting of the target when subsampled (not used) @@ -7625,11 +7661,11 @@ separate step after unpacking. nullable="1" allow-none="1"> pointers to the data planes - + strides of the planes - + the x position in the image to start from @@ -8003,7 +8039,7 @@ All video planes of @buffer will be mapped and the pointers will be set in c:type="GstVideoGLTextureUploadMeta*"/> - + @@ -8064,7 +8100,7 @@ to upload something to an OpenGL texture. the texture IDs to upload to - + @@ -11346,7 +11382,7 @@ gst_video_scaler_get_info(). nullable="1" allow-none="1"> source pixels lines - + The user data content of the Ancillary packet. Does not contain the ADF, DID, SDID nor CS. - + @@ -12552,7 +12588,7 @@ to get the Ancillary data that might be present on that line. The line of data to parse - + @@ -12669,7 +12705,7 @@ parameters. The Closed Caption data - + @@ -12704,7 +12740,7 @@ parameters. array of #GstVideoGLTextureType - + offset of each plane - + stride of each plane - + @@ -12916,8 +12952,9 @@ parameters. version="1.10"> Attaches #GstVideoTimeCodeMeta metadata to @buffer with the given parameters. - - the #GstVideoTimeCodeMeta on @buffer. + + the #GstVideoTimeCodeMeta on @buffer, or +(since 1.16) %NULL if the timecode was invalid. @@ -12937,7 +12974,8 @@ parameters. Attaches #GstVideoTimeCodeMeta metadata to @buffer with the given parameters. - the #GstVideoTimeCodeMeta on @buffer. + the #GstVideoTimeCodeMeta on @buffer, or +(since 1.16) %NULL if the timecode was invalid. @@ -13832,7 +13870,7 @@ not contain a valid chroma description. nullable="1" allow-none="1"> pixel lines - + the number of pixels on one line @@ -13991,7 +14029,7 @@ the component values in range [0.0 .. 1.0] back to their representation in caller-allocates="1" transfer-ownership="none"> output offsets - + @@ -14000,7 +14038,7 @@ the component values in range [0.0 .. 1.0] back to their representation in caller-allocates="1" transfer-ownership="none"> output scale - + @@ -14219,7 +14257,7 @@ performance is achived when @quantizer is a power of 2. quantizer - + the width of the lines diff --git a/meson.build b/meson.build index 9d4b763..cfb3439 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('gstreamer-sharp', ['cs', 'c'], version: '1.15.90', +project('gstreamer-sharp', ['cs', 'c'], version: '1.16.0', meson_version: '>=0.48', license: 'LGPL') if host_machine.system() == 'osx' diff --git a/sources/generated/Gst.Audio/AudioDecoder.cs b/sources/generated/Gst.Audio/AudioDecoder.cs index fa9c917..a53e95c 100644 --- a/sources/generated/Gst.Audio/AudioDecoder.cs +++ b/sources/generated/Gst.Audio/AudioDecoder.cs @@ -1356,6 +1356,15 @@ namespace Gst.Audio { } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern int gst_audio_decoder_finish_subframe(IntPtr raw, IntPtr buf); + + public Gst.FlowReturn FinishSubframe(Gst.Buffer buf) { + int raw_ret = gst_audio_decoder_finish_subframe(Handle, buf == null ? IntPtr.Zero : buf.Handle); + Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret; + return ret; + } + + [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_audio_decoder_get_allocator(IntPtr raw, out IntPtr allocator, IntPtr parms); public void GetAllocator(out Gst.Allocator allocator, out Gst.AllocationParams parms) { diff --git a/sources/generated/Gst.Audio/Global.cs b/sources/generated/Gst.Audio/Global.cs index ef43c33..8a7886c 100644 --- a/sources/generated/Gst.Audio/Global.cs +++ b/sources/generated/Gst.Audio/Global.cs @@ -329,6 +329,19 @@ namespace Gst.Audio { } [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern IntPtr gst_buffer_add_audio_meta(IntPtr buffer, IntPtr info, UIntPtr samples, UIntPtr offsets); + + public static Gst.Audio.AudioMeta BufferAddAudioMeta(Gst.Buffer buffer, Gst.Audio.AudioInfo info, ulong samples, ulong offsets) { + IntPtr raw_ret = gst_buffer_add_audio_meta(buffer == null ? IntPtr.Zero : buffer.Handle, info == null ? IntPtr.Zero : info.Handle, new UIntPtr (samples), new UIntPtr (offsets)); + Gst.Audio.AudioMeta ret = Gst.Audio.AudioMeta.New (raw_ret); + return ret; + } + + public static Gst.Audio.AudioMeta BufferAddAudioMeta(Gst.Buffer buffer, Gst.Audio.AudioInfo info, ulong samples) { + return BufferAddAudioMeta (buffer, info, samples, 0); + } + + [DllImport("libgstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gst_buffer_get_audio_downmix_meta_for_channels(IntPtr buffer, int[] to_position, int to_channels); public static Gst.Audio.AudioDownmixMeta BufferGetAudioDownmixMetaForChannels(Gst.Buffer buffer, Gst.Audio.AudioChannelPosition[] to_position, int to_channels) { diff --git a/sources/generated/Gst.Base/AggregatorPad.cs b/sources/generated/Gst.Base/AggregatorPad.cs index bbc62c7..be49f6f 100644 --- a/sources/generated/Gst.Base/AggregatorPad.cs +++ b/sources/generated/Gst.Base/AggregatorPad.cs @@ -18,6 +18,21 @@ namespace Gst.Base { CreateNativeObject (new string [0], new GLib.Value [0]); } + [GLib.Property ("emit-signals")] + public bool EmitSignals { + get { + GLib.Value val = GetProperty ("emit-signals"); + bool ret = (bool) val; + val.Dispose (); + return ret; + } + set { + GLib.Value val = new GLib.Value(value); + SetProperty("emit-signals", val); + val.Dispose (); + } + } + public Gst.Segment Segment { get { unsafe { @@ -27,6 +42,67 @@ namespace Gst.Base { } } + [GLib.Signal("buffer-consumed")] + public event Gst.Base.BufferConsumedHandler BufferConsumed { + add { + this.AddSignalHandler ("buffer-consumed", value, typeof (Gst.Base.BufferConsumedArgs)); + } + remove { + this.RemoveSignalHandler ("buffer-consumed", value); + } + } + + static BufferConsumedNativeDelegate BufferConsumed_cb_delegate; + static BufferConsumedNativeDelegate BufferConsumedVMCallback { + get { + if (BufferConsumed_cb_delegate == null) + BufferConsumed_cb_delegate = new BufferConsumedNativeDelegate (BufferConsumed_cb); + return BufferConsumed_cb_delegate; + } + } + + static void OverrideBufferConsumed (GLib.GType gtype) + { + OverrideBufferConsumed (gtype, BufferConsumedVMCallback); + } + + static void OverrideBufferConsumed (GLib.GType gtype, BufferConsumedNativeDelegate callback) + { + OverrideVirtualMethod (gtype, "buffer-consumed", callback); + } + [UnmanagedFunctionPointer (CallingConvention.Cdecl)] + delegate void BufferConsumedNativeDelegate (IntPtr inst, IntPtr _object); + + static void BufferConsumed_cb (IntPtr inst, IntPtr _object) + { + try { + AggregatorPad __obj = GLib.Object.GetObject (inst, false) as AggregatorPad; + __obj.OnBufferConsumed (_object == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (_object, typeof (Gst.Buffer), false)); + } catch (Exception e) { + GLib.ExceptionManager.RaiseUnhandledException (e, false); + } + } + + [GLib.DefaultSignalHandler(Type=typeof(Gst.Base.AggregatorPad), ConnectionMethod="OverrideBufferConsumed")] + protected virtual void OnBufferConsumed (Gst.Buffer _object) + { + InternalBufferConsumed (_object); + } + + private void InternalBufferConsumed (Gst.Buffer _object) + { + GLib.Value ret = GLib.Value.Empty; + GLib.ValueArray inst_and_params = new GLib.ValueArray (2); + GLib.Value[] vals = new GLib.Value [2]; + vals [0] = new GLib.Value (this); + inst_and_params.Append (vals [0]); + vals [1] = new GLib.Value (_object); + inst_and_params.Append (vals [1]); + g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret); + foreach (GLib.Value v in vals) + v.Dispose (); + } + static FlushNativeDelegate Flush_cb_delegate; static FlushNativeDelegate FlushVMCallback { get { diff --git a/sources/generated/Gst.Base/BitWriter.cs b/sources/generated/Gst.Base/BitWriter.cs index c6aaebd..4785dfa 100644 --- a/sources/generated/Gst.Base/BitWriter.cs +++ b/sources/generated/Gst.Base/BitWriter.cs @@ -96,39 +96,6 @@ namespace Gst.Base { } [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_bit_writer_init(IntPtr raw); - - public void Init() { - IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); - System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); - gst_bit_writer_init(this_as_native); - ReadNative (this_as_native, ref this); - System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); - } - - [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_bit_writer_init_with_data(IntPtr raw, byte[] data, uint size, bool initialized); - - public void InitWithData(byte[] data, uint size, bool initialized) { - IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); - System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); - gst_bit_writer_init_with_data(this_as_native, data, size, initialized); - ReadNative (this_as_native, ref this); - System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); - } - - [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern void gst_bit_writer_init_with_size(IntPtr raw, uint size, bool mfixed); - - public void InitWithSize(uint size, bool mfixed) { - IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this)); - System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false); - gst_bit_writer_init_with_size(this_as_native, size, mfixed); - ReadNative (this_as_native, ref this); - System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); - } - - [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_bit_writer_put_bits_uint16(IntPtr raw, ushort value, uint nbits); public bool PutBitsUint16(ushort value, uint nbits) { diff --git a/sources/generated/Gst.Base/BufferConsumedHandler.cs b/sources/generated/Gst.Base/BufferConsumedHandler.cs new file mode 100644 index 0000000..a191a14 --- /dev/null +++ b/sources/generated/Gst.Base/BufferConsumedHandler.cs @@ -0,0 +1,18 @@ +// This file was generated by the Gtk# code generator. +// Any changes made will be lost if regenerated. + +namespace Gst.Base { + + using System; + + public delegate void BufferConsumedHandler(object o, BufferConsumedArgs args); + + public class BufferConsumedArgs : GLib.SignalArgs { + public Gst.Buffer Object{ + get { + return (Gst.Buffer) Args [0]; + } + } + + } +} diff --git a/sources/generated/Gst.PbUtils/Constants.cs b/sources/generated/Gst.PbUtils/Constants.cs index bfeef31..92240a6 100644 --- a/sources/generated/Gst.PbUtils/Constants.cs +++ b/sources/generated/Gst.PbUtils/Constants.cs @@ -17,8 +17,8 @@ namespace Gst.PbUtils { public const string ENCODING_CATEGORY_ONLINE_SERVICE = @"online-service"; public const string ENCODING_CATEGORY_STORAGE_EDITING = @"storage-editing"; public const int PLUGINS_BASE_VERSION_MAJOR = 1; - public const int PLUGINS_BASE_VERSION_MICRO = 90; - public const int PLUGINS_BASE_VERSION_MINOR = 15; + public const int PLUGINS_BASE_VERSION_MICRO = 0; + public const int PLUGINS_BASE_VERSION_MINOR = 16; public const int PLUGINS_BASE_VERSION_NANO = 0; #endregion } diff --git a/sources/generated/Gst.PbUtils/Global.cs b/sources/generated/Gst.PbUtils/Global.cs index 9a1df79..db2204c 100644 --- a/sources/generated/Gst.PbUtils/Global.cs +++ b/sources/generated/Gst.PbUtils/Global.cs @@ -250,32 +250,6 @@ namespace Gst.PbUtils { } [DllImport("libgstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern int gst_install_plugins_async(IntPtr[] details, IntPtr ctx, Gst.PbUtilsSharp.InstallPluginsResultFuncNative func, IntPtr user_data); - - public static Gst.PbUtils.InstallPluginsReturn InstallPluginsAsync(string[] details, Gst.PbUtils.InstallPluginsContext ctx, Gst.PbUtils.InstallPluginsResultFunc func) { - int cnt_details = details == null ? 0 : details.Length; - IntPtr[] native_details = new IntPtr [cnt_details + 1]; - for (int i = 0; i < cnt_details; i++) - native_details [i] = GLib.Marshaller.StringToPtrGStrdup (details[i]); - native_details [cnt_details] = IntPtr.Zero; - IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx); - Gst.PbUtilsSharp.InstallPluginsResultFuncWrapper func_wrapper = new Gst.PbUtilsSharp.InstallPluginsResultFuncWrapper (func); - func_wrapper.PersistUntilCalled (); - int raw_ret = gst_install_plugins_async(native_details, native_ctx, func_wrapper.NativeDelegate, IntPtr.Zero); - Gst.PbUtils.InstallPluginsReturn ret = (Gst.PbUtils.InstallPluginsReturn) raw_ret; - for (int i = 0; i < native_details.Length - 1; i++) { - details [i] = GLib.Marshaller.Utf8PtrToString (native_details[i]); - GLib.Marshaller.Free (native_details[i]); - } - Marshal.FreeHGlobal (native_ctx); - return ret; - } - - public static Gst.PbUtils.InstallPluginsReturn InstallPluginsAsync(string[] details, Gst.PbUtils.InstallPluginsResultFunc func) { - return InstallPluginsAsync (details, Gst.PbUtils.InstallPluginsContext.Zero, func); - } - - [DllImport("libgstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_install_plugins_installation_in_progress(); public static bool InstallPluginsInstallationInProgress() { @@ -303,30 +277,6 @@ namespace Gst.PbUtils { } [DllImport("libgstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern int gst_install_plugins_sync(IntPtr[] details, IntPtr ctx); - - public static Gst.PbUtils.InstallPluginsReturn InstallPluginsSync(string[] details, Gst.PbUtils.InstallPluginsContext ctx) { - int cnt_details = details == null ? 0 : details.Length; - IntPtr[] native_details = new IntPtr [cnt_details + 1]; - for (int i = 0; i < cnt_details; i++) - native_details [i] = GLib.Marshaller.StringToPtrGStrdup (details[i]); - native_details [cnt_details] = IntPtr.Zero; - IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx); - int raw_ret = gst_install_plugins_sync(native_details, native_ctx); - Gst.PbUtils.InstallPluginsReturn ret = (Gst.PbUtils.InstallPluginsReturn) raw_ret; - for (int i = 0; i < native_details.Length - 1; i++) { - details [i] = GLib.Marshaller.Utf8PtrToString (native_details[i]); - GLib.Marshaller.Free (native_details[i]); - } - Marshal.FreeHGlobal (native_ctx); - return ret; - } - - public static Gst.PbUtils.InstallPluginsReturn InstallPluginsSync(string[] details) { - return InstallPluginsSync (details, Gst.PbUtils.InstallPluginsContext.Zero); - } - - [DllImport("libgstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_is_missing_plugin_message(IntPtr msg); public static bool IsMissingPluginMessage(Gst.Message msg) { diff --git a/sources/generated/Gst.Rtp/RTPBasePayload.cs b/sources/generated/Gst.Rtp/RTPBasePayload.cs index 4dcd040..1135783 100644 --- a/sources/generated/Gst.Rtp/RTPBasePayload.cs +++ b/sources/generated/Gst.Rtp/RTPBasePayload.cs @@ -63,6 +63,21 @@ namespace Gst.Rtp { } } + [GLib.Property ("onvif-no-rate-control")] + public bool OnvifNoRateControl { + get { + GLib.Value val = GetProperty ("onvif-no-rate-control"); + bool ret = (bool) val; + val.Dispose (); + return ret; + } + set { + GLib.Value val = new GLib.Value(value); + SetProperty("onvif-no-rate-control", val); + val.Dispose (); + } + } + [GLib.Property ("perfect-rtptime")] public bool PerfectRtptime { get { diff --git a/sources/generated/Gst.Rtsp/RTSPHeaderField.cs b/sources/generated/Gst.Rtsp/RTSPHeaderField.cs index 82fb9d6..6413c12 100644 --- a/sources/generated/Gst.Rtsp/RTSPHeaderField.cs +++ b/sources/generated/Gst.Rtsp/RTSPHeaderField.cs @@ -97,7 +97,9 @@ namespace Gst.Rtsp { MediaProperties = 84, SeekStyle = 85, AcceptRanges = 86, - Last = 87, + Frames = 87, + RateControl = 88, + Last = 89, } internal class RTSPHeaderFieldGType { diff --git a/sources/generated/Gst.Sdp/MIKEYEncAlg.cs b/sources/generated/Gst.Sdp/MIKEYEncAlg.cs index 3b310a5..b8b7709 100644 --- a/sources/generated/Gst.Sdp/MIKEYEncAlg.cs +++ b/sources/generated/Gst.Sdp/MIKEYEncAlg.cs @@ -12,6 +12,7 @@ namespace Gst.Sdp { Null = 0, AesCm128 = 1, AesKw128 = 2, + AesGcm128 = 6, } #endregion } diff --git a/sources/generated/Gst.Sdp/MIKEYSecSRTP.cs b/sources/generated/Gst.Sdp/MIKEYSecSRTP.cs index 8f7522a..26d1545 100644 --- a/sources/generated/Gst.Sdp/MIKEYSecSRTP.cs +++ b/sources/generated/Gst.Sdp/MIKEYSecSRTP.cs @@ -22,6 +22,7 @@ namespace Gst.Sdp { SrtpAuth = 10, AuthTagLen = 11, SrtpPrefixLen = 12, + AeadAuthTagLen = 20, } #endregion } diff --git a/sources/generated/Gst.Sdp/SDPMessage.cs b/sources/generated/Gst.Sdp/SDPMessage.cs index 41403f1..0628afa 100644 --- a/sources/generated/Gst.Sdp/SDPMessage.cs +++ b/sources/generated/Gst.Sdp/SDPMessage.cs @@ -211,16 +211,12 @@ namespace Gst.Sdp { int cnt_repeat = repeat == null ? 0 : repeat.Length; IntPtr[] native_repeat = new IntPtr [cnt_repeat + 1]; for (int i = 0; i < cnt_repeat; i++) - native_repeat [i] = GLib.Marshaller.StringToPtrGStrdup (repeat[i]); + native_repeat [i] = GLib.Marshaller.StringToPtrGStrdup(repeat[i]); native_repeat [cnt_repeat] = IntPtr.Zero; int raw_ret = gst_sdp_message_add_time(Handle, native_start, native_stop, native_repeat); Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret; GLib.Marshaller.Free (native_start); GLib.Marshaller.Free (native_stop); - for (int i = 0; i < native_repeat.Length - 1; i++) { - repeat [i] = GLib.Marshaller.Utf8PtrToString (native_repeat[i]); - GLib.Marshaller.Free (native_repeat[i]); - } return ret; } diff --git a/sources/generated/Gst.Sdp/SDPTime.cs b/sources/generated/Gst.Sdp/SDPTime.cs index 5c264a6..30a0af1 100644 --- a/sources/generated/Gst.Sdp/SDPTime.cs +++ b/sources/generated/Gst.Sdp/SDPTime.cs @@ -52,7 +52,7 @@ namespace Gst.Sdp { int cnt_repeat = repeat == null ? 0 : repeat.Length; IntPtr[] native_repeat = new IntPtr [cnt_repeat + 1]; for (int i = 0; i < cnt_repeat; i++) - native_repeat [i] = GLib.Marshaller.StringToPtrGStrdup (repeat[i]); + native_repeat [i] = GLib.Marshaller.StringToPtrGStrdup(repeat[i]); native_repeat [cnt_repeat] = IntPtr.Zero; int raw_ret = gst_sdp_time_set(this_as_native, native_start, native_stop, native_repeat); Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret; @@ -60,10 +60,6 @@ namespace Gst.Sdp { System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); GLib.Marshaller.Free (native_start); GLib.Marshaller.Free (native_stop); - for (int i = 0; i < native_repeat.Length - 1; i++) { - repeat [i] = GLib.Marshaller.Utf8PtrToString (native_repeat[i]); - GLib.Marshaller.Free (native_repeat[i]); - } return ret; } diff --git a/sources/generated/Gst.Video/Constants.cs b/sources/generated/Gst.Video/Constants.cs index adcc739..e9e9459 100644 --- a/sources/generated/Gst.Video/Constants.cs +++ b/sources/generated/Gst.Video/Constants.cs @@ -65,7 +65,7 @@ namespace Gst.Video { public const string VIDEO_DECODER_SRC_NAME = @"src"; public const string VIDEO_ENCODER_SINK_NAME = @"sink"; public const string VIDEO_ENCODER_SRC_NAME = @"src"; - public const string VIDEO_FORMATS_ALL = @"{ I420, YV12, YUY2, UYVY, AYUV, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }"; + public const string VIDEO_FORMATS_ALL = @"{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }"; public const string VIDEO_FPS_RANGE = @"(fraction) [ 0, max ]"; public const int VIDEO_MAX_COMPONENTS = 4; public const int VIDEO_MAX_PLANES = 4; diff --git a/sources/generated/Gst.Video/VideoColorPrimaries.cs b/sources/generated/Gst.Video/VideoColorPrimaries.cs index bdea5bd..115d7d4 100644 --- a/sources/generated/Gst.Video/VideoColorPrimaries.cs +++ b/sources/generated/Gst.Video/VideoColorPrimaries.cs @@ -19,6 +19,10 @@ namespace Gst.Video { Film = 6, Bt2020 = 7, Adobergb = 8, + Smptest428 = 9, + Smpterp431 = 10, + Smpteeg432 = 11, + Ebu3213 = 12, } internal class VideoColorPrimariesGType { diff --git a/sources/generated/Gst.Video/VideoFormat.cs b/sources/generated/Gst.Video/VideoFormat.cs index 70225fe..327adb7 100644 --- a/sources/generated/Gst.Video/VideoFormat.cs +++ b/sources/generated/Gst.Video/VideoFormat.cs @@ -94,6 +94,8 @@ namespace Gst.Video { Nv1210le40 = 81, Y210 = 82, Y410 = 83, + Vuya = 84, + Bgr10a2Le = 85, } internal class VideoFormatGType { diff --git a/sources/generated/Gst/Constants.cs b/sources/generated/Gst/Constants.cs index 9004575..f2c474d 100644 --- a/sources/generated/Gst/Constants.cs +++ b/sources/generated/Gst/Constants.cs @@ -165,8 +165,8 @@ namespace Gst { public const int VALUE_LESS_THAN = -1; public const int VALUE_UNORDERED = 2; public const int VERSION_MAJOR = 1; - public const int VERSION_MICRO = 90; - public const int VERSION_MINOR = 15; + public const int VERSION_MICRO = 0; + public const int VERSION_MINOR = 16; public const int VERSION_NANO = 0; #endregion } diff --git a/sources/generated/Gst/ElementFactory.cs b/sources/generated/Gst/ElementFactory.cs index 804036e..66cc7ef 100644 --- a/sources/generated/Gst/ElementFactory.cs +++ b/sources/generated/Gst/ElementFactory.cs @@ -197,17 +197,6 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_element_factory_get_uri_protocols(IntPtr raw); - - public string[] UriProtocols { - get { - IntPtr raw_ret = gst_element_factory_get_uri_protocols(Handle); - string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false); - return ret; - } - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern int gst_element_factory_get_uri_type(IntPtr raw); public Gst.URIType UriType { diff --git a/sources/generated/Gst/Event.cs b/sources/generated/Gst/Event.cs index 5cdd234..4373e30 100644 --- a/sources/generated/Gst/Event.cs +++ b/sources/generated/Gst/Event.cs @@ -209,6 +209,15 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern void gst_event_parse_seek_trickmode_interval(IntPtr raw, out ulong interval); + + public ulong ParseSeekTrickmodeInterval() { + ulong interval; + gst_event_parse_seek_trickmode_interval(Handle, out interval); + return interval; + } + + [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_event_parse_segment(IntPtr raw, IntPtr segment); public Gst.Segment ParseSegment() { @@ -355,6 +364,15 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] + static extern void gst_event_set_seek_trickmode_interval(IntPtr raw, ulong interval); + + public ulong SeekTrickmodeInterval { + set { + gst_event_set_seek_trickmode_interval(Handle, value); + } + } + + [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gst_event_set_stream(IntPtr raw, IntPtr stream); public Gst.Stream Stream { diff --git a/sources/generated/Gst/Global.cs b/sources/generated/Gst/Global.cs index 4fe3c26..615d7c1 100644 --- a/sources/generated/Gst/Global.cs +++ b/sources/generated/Gst/Global.cs @@ -184,15 +184,6 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_meta_api_type_get_tags(IntPtr api); - - public static string[] MetaApiTypeGetTags(GLib.GType api) { - IntPtr raw_ret = gst_meta_api_type_get_tags(api.Val); - string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false); - return ret; - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_meta_api_type_has_tag(IntPtr api, uint tag); public static bool MetaApiTypeHasTag(GLib.GType api, uint tag) { @@ -209,15 +200,11 @@ namespace Gst { int cnt_tags = tags == null ? 0 : tags.Length; IntPtr[] native_tags = new IntPtr [cnt_tags + 1]; for (int i = 0; i < cnt_tags; i++) - native_tags [i] = GLib.Marshaller.StringToPtrGStrdup (tags[i]); + native_tags [i] = GLib.Marshaller.StringToPtrGStrdup(tags[i]); native_tags [cnt_tags] = IntPtr.Zero; IntPtr raw_ret = gst_meta_api_type_register(native_api, native_tags); GLib.GType ret = new GLib.GType(raw_ret); GLib.Marshaller.Free (native_api); - for (int i = 0; i < native_tags.Length - 1; i++) { - tags [i] = GLib.Marshaller.Utf8PtrToString (native_tags[i]); - GLib.Marshaller.Free (native_tags[i]); - } return ret; } @@ -303,14 +290,10 @@ namespace Gst { int cnt_system_identifiers = system_identifiers == null ? 0 : system_identifiers.Length; IntPtr[] native_system_identifiers = new IntPtr [cnt_system_identifiers + 1]; for (int i = 0; i < cnt_system_identifiers; i++) - native_system_identifiers [i] = GLib.Marshaller.StringToPtrGStrdup (system_identifiers[i]); + native_system_identifiers [i] = GLib.Marshaller.StringToPtrGStrdup(system_identifiers[i]); native_system_identifiers [cnt_system_identifiers] = IntPtr.Zero; IntPtr raw_ret = gst_protection_filter_systems_by_available_decryptors(native_system_identifiers); string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, true); - for (int i = 0; i < native_system_identifiers.Length - 1; i++) { - system_identifiers [i] = GLib.Marshaller.Utf8PtrToString (native_system_identifiers[i]); - GLib.Marshaller.Free (native_system_identifiers[i]); - } return ret; } @@ -339,14 +322,10 @@ namespace Gst { int cnt_system_identifiers = system_identifiers == null ? 0 : system_identifiers.Length; IntPtr[] native_system_identifiers = new IntPtr [cnt_system_identifiers + 1]; for (int i = 0; i < cnt_system_identifiers; i++) - native_system_identifiers [i] = GLib.Marshaller.StringToPtrGStrdup (system_identifiers[i]); + native_system_identifiers [i] = GLib.Marshaller.StringToPtrGStrdup(system_identifiers[i]); native_system_identifiers [cnt_system_identifiers] = IntPtr.Zero; IntPtr raw_ret = gst_protection_select_system(native_system_identifiers); string ret = GLib.Marshaller.Utf8PtrToString (raw_ret); - for (int i = 0; i < native_system_identifiers.Length - 1; i++) { - system_identifiers [i] = GLib.Marshaller.Utf8PtrToString (native_system_identifiers[i]); - GLib.Marshaller.Free (native_system_identifiers[i]); - } return ret; } diff --git a/sources/generated/Gst/Meta.cs b/sources/generated/Gst/Meta.cs index b6d205d..a84364e 100644 --- a/sources/generated/Gst/Meta.cs +++ b/sources/generated/Gst/Meta.cs @@ -58,15 +58,6 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_meta_api_type_get_tags(IntPtr api); - - public static string[] ApiTypeGetTags(GLib.GType api) { - IntPtr raw_ret = gst_meta_api_type_get_tags(api.Val); - string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false); - return ret; - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_meta_api_type_has_tag(IntPtr api, uint tag); public static bool ApiTypeHasTag(GLib.GType api, uint tag) { @@ -83,15 +74,11 @@ namespace Gst { int cnt_tags = tags == null ? 0 : tags.Length; IntPtr[] native_tags = new IntPtr [cnt_tags + 1]; for (int i = 0; i < cnt_tags; i++) - native_tags [i] = GLib.Marshaller.StringToPtrGStrdup (tags[i]); + native_tags [i] = GLib.Marshaller.StringToPtrGStrdup(tags[i]); native_tags [cnt_tags] = IntPtr.Zero; IntPtr raw_ret = gst_meta_api_type_register(native_api, native_tags); GLib.GType ret = new GLib.GType(raw_ret); GLib.Marshaller.Free (native_api); - for (int i = 0; i < native_tags.Length - 1; i++) { - tags [i] = GLib.Marshaller.Utf8PtrToString (native_tags[i]); - GLib.Marshaller.Free (native_tags[i]); - } return ret; } diff --git a/sources/generated/Gst/Parse.cs b/sources/generated/Gst/Parse.cs index b115b7b..51a6d11 100644 --- a/sources/generated/Gst/Parse.cs +++ b/sources/generated/Gst/Parse.cs @@ -85,15 +85,11 @@ namespace Gst { int cnt_argv = argv == null ? 0 : argv.Length; IntPtr[] native_argv = new IntPtr [cnt_argv + 1]; for (int i = 0; i < cnt_argv; i++) - native_argv [i] = GLib.Marshaller.StringToPtrGStrdup (argv[i]); + native_argv [i] = GLib.Marshaller.StringToPtrGStrdup(argv[i]); native_argv [cnt_argv] = IntPtr.Zero; IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_parse_launchv(native_argv, out error); Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element; - for (int i = 0; i < native_argv.Length - 1; i++) { - argv [i] = GLib.Marshaller.Utf8PtrToString (native_argv[i]); - GLib.Marshaller.Free (native_argv[i]); - } if (error != IntPtr.Zero) throw new GLib.GException (error); return ret; } @@ -105,15 +101,11 @@ namespace Gst { int cnt_argv = argv == null ? 0 : argv.Length; IntPtr[] native_argv = new IntPtr [cnt_argv + 1]; for (int i = 0; i < cnt_argv; i++) - native_argv [i] = GLib.Marshaller.StringToPtrGStrdup (argv[i]); + native_argv [i] = GLib.Marshaller.StringToPtrGStrdup(argv[i]); native_argv [cnt_argv] = IntPtr.Zero; IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_parse_launchv_full(native_argv, context == null ? IntPtr.Zero : context.Handle, (int) flags, out error); Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element; - for (int i = 0; i < native_argv.Length - 1; i++) { - argv [i] = GLib.Marshaller.Utf8PtrToString (native_argv[i]); - GLib.Marshaller.Free (native_argv[i]); - } if (error != IntPtr.Zero) throw new GLib.GException (error); return ret; } diff --git a/sources/generated/Gst/Plugin.cs b/sources/generated/Gst/Plugin.cs index c1c5299..bd1e166 100644 --- a/sources/generated/Gst/Plugin.cs +++ b/sources/generated/Gst/Plugin.cs @@ -130,31 +130,19 @@ namespace Gst { 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 [i] = GLib.Marshaller.StringToPtrGStrdup(env_vars[i]); native_env_vars [cnt_env_vars] = IntPtr.Zero; int cnt_paths = paths == null ? 0 : paths.Length; IntPtr[] native_paths = new IntPtr [cnt_paths + 1]; for (int i = 0; i < cnt_paths; i++) - native_paths [i] = GLib.Marshaller.StringToPtrGStrdup (paths[i]); + native_paths [i] = GLib.Marshaller.StringToPtrGStrdup(paths[i]); native_paths [cnt_paths] = IntPtr.Zero; int cnt_names = names == null ? 0 : names.Length; IntPtr[] native_names = new IntPtr [cnt_names + 1]; for (int i = 0; i < cnt_names; i++) - native_names [i] = GLib.Marshaller.StringToPtrGStrdup (names[i]); + native_names [i] = GLib.Marshaller.StringToPtrGStrdup(names[i]); native_names [cnt_names] = IntPtr.Zero; gst_plugin_add_dependency(Handle, native_env_vars, native_paths, native_names, (int) flags); - 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]); - } - for (int i = 0; i < native_paths.Length - 1; i++) { - paths [i] = GLib.Marshaller.Utf8PtrToString (native_paths[i]); - GLib.Marshaller.Free (native_paths[i]); - } - for (int i = 0; i < native_names.Length - 1; i++) { - names [i] = GLib.Marshaller.Utf8PtrToString (native_names[i]); - GLib.Marshaller.Free (native_names[i]); - } } public void AddDependency(Gst.PluginDependencyFlags flags) { diff --git a/sources/generated/Gst/Tag.cs b/sources/generated/Gst/Tag.cs index 77000e0..128dfd3 100644 --- a/sources/generated/Gst/Tag.cs +++ b/sources/generated/Gst/Tag.cs @@ -135,22 +135,14 @@ namespace Gst { int cnt_data = data == null ? 0 : data.Length; IntPtr[] native_data = new IntPtr [cnt_data]; for (int i = 0; i < cnt_data; i++) - native_data [i] = GLib.Marshaller.StringToPtrGStrdup (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 [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); string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); - for (int i = 0; i < native_data.Length; i++) { - 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; } @@ -470,14 +462,10 @@ namespace Gst { 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 [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); Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true); - 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; } diff --git a/sources/generated/Gst/TypeFindFactory.cs b/sources/generated/Gst/TypeFindFactory.cs index b39c38e..db36fed 100644 --- a/sources/generated/Gst/TypeFindFactory.cs +++ b/sources/generated/Gst/TypeFindFactory.cs @@ -74,17 +74,6 @@ namespace Gst { } [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gst_type_find_factory_get_extensions(IntPtr raw); - - public string[] Extensions { - get { - IntPtr raw_ret = gst_type_find_factory_get_extensions(Handle); - string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false); - return ret; - } - } - - [DllImport("libgstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern bool gst_type_find_factory_has_function(IntPtr raw); public bool HasFunction { diff --git a/sources/generated/gstreamer-sharp-api.xml b/sources/generated/gstreamer-sharp-api.xml index 508cfe6..931b7e7 100644 --- a/sources/generated/gstreamer-sharp-api.xml +++ b/sources/generated/gstreamer-sharp-api.xml @@ -2143,7 +2143,7 @@ - + @@ -2196,7 +2196,7 @@ - + @@ -3998,7 +3998,7 @@ - + @@ -5189,9 +5189,9 @@ - - - + + + @@ -5915,7 +5915,7 @@ - + @@ -7551,6 +7551,12 @@ + + + + + + @@ -7655,6 +7661,12 @@ + + + + + + @@ -8647,7 +8659,7 @@ - + @@ -8663,7 +8675,7 @@ - + @@ -9568,7 +9580,7 @@ - + @@ -10870,7 +10882,7 @@ - + @@ -11289,7 +11301,7 @@ - + @@ -11305,7 +11317,7 @@ - + @@ -11399,7 +11411,7 @@ - + @@ -11413,7 +11425,7 @@ - + @@ -11690,8 +11702,8 @@ - - + + @@ -11739,14 +11751,14 @@ - + - + missing glib:type-name @@ -11929,14 +11941,14 @@ - + @@ -12520,9 +12532,9 @@ - + - + @@ -12632,7 +12644,7 @@ missing glib:type-name - + @@ -12643,7 +12655,7 @@ missing glib:type-name - + @@ -12685,9 +12697,9 @@ missing glib:type-name - + - + @@ -12700,7 +12712,7 @@ missing glib:type-name - + @@ -12720,7 +12732,7 @@ missing glib:type-name - + @@ -12753,7 +12765,7 @@ missing glib:type-name - + @@ -12767,7 +12779,7 @@ missing glib:type-name - + @@ -12857,7 +12869,7 @@ @@ -12955,7 +12967,7 @@ - + @@ -14377,6 +14389,14 @@ + + + + + missing glib:type-name + + + @@ -15205,7 +15225,7 @@ - + @@ -15440,8 +15460,8 @@ - - + + @@ -15682,7 +15702,7 @@ - + @@ -15914,8 +15934,8 @@ - - + + @@ -15948,7 +15968,7 @@ - + @@ -15957,7 +15977,7 @@ - + @@ -15971,7 +15991,7 @@ - + @@ -16038,8 +16058,8 @@ - - + + @@ -16054,7 +16074,7 @@ - + @@ -16079,8 +16099,8 @@ - - + + @@ -16132,13 +16152,28 @@ missing glib:type-name - + - + + + + missing glib:type-name + + + + missing glib:type-name + + + missing glib:type-name + + + + + missing glib:type-name @@ -16147,7 +16182,7 @@ missing glib:type-name - + @@ -16808,6 +16843,7 @@ + - + @@ -29543,8 +29579,8 @@ missing glib:type-name - - + + @@ -29939,7 +29975,7 @@ - + diff --git a/sources/generated/meson.build b/sources/generated/meson.build index dec552f..59cd3f8 100644 --- a/sources/generated/meson.build +++ b/sources/generated/meson.build @@ -87,6 +87,7 @@ generated_sources = [ 'Gst.Base/BaseTransform.cs', 'Gst.Base/BitReader.cs', 'Gst.Base/BitWriter.cs', + 'Gst.Base/BufferConsumedHandler.cs', 'Gst.Base/ByteReader.cs', 'Gst.Base/ByteWriter.cs', 'Gst.Base/CollectData.cs', @@ -790,4 +791,4 @@ cs_abi = files('gstreamer-sharp-abi.cs') gst_api_includes = join_paths(meson.current_source_dir(), 'gstreamer-sharp-api.xml') gapis = [gst_api_includes] -gapis_deps = [] \ No newline at end of file +gapis_deps = [] diff --git a/sources/gstreamer-sharp-api.raw b/sources/gstreamer-sharp-api.raw index ac9eaaf..65ee3da 100644 --- a/sources/gstreamer-sharp-api.raw +++ b/sources/gstreamer-sharp-api.raw @@ -2150,7 +2150,7 @@ - + @@ -2203,7 +2203,7 @@ - + @@ -4007,7 +4007,7 @@ - + @@ -5187,9 +5187,9 @@ - - - + + + @@ -5910,7 +5910,7 @@ - + @@ -7546,6 +7546,12 @@ + + + + + + @@ -7650,6 +7656,12 @@ + + + + + + @@ -8639,7 +8651,7 @@ - + @@ -8655,7 +8667,7 @@ - + @@ -9560,7 +9572,7 @@ - + @@ -10862,7 +10874,7 @@ - + @@ -11468,7 +11480,7 @@ - + @@ -11479,14 +11491,14 @@ - + - + @@ -11515,7 +11527,7 @@ - + @@ -11531,7 +11543,7 @@ - + @@ -11660,14 +11672,14 @@ - + - + missing glib:type-name @@ -11690,7 +11702,7 @@ - + @@ -11704,7 +11716,7 @@ - + @@ -11966,7 +11978,7 @@ - + @@ -12815,8 +12827,8 @@ - - + + @@ -14070,6 +14082,14 @@ + + + + + missing glib:type-name + + + @@ -14898,7 +14918,7 @@ - + @@ -15133,8 +15153,8 @@ - - + + @@ -15375,7 +15395,7 @@ - + @@ -15607,8 +15627,8 @@ - - + + @@ -15641,7 +15661,7 @@ - + @@ -15650,7 +15670,7 @@ - + @@ -15664,7 +15684,7 @@ - + @@ -15731,8 +15751,8 @@ - - + + @@ -15747,7 +15767,7 @@ - + @@ -15772,8 +15792,8 @@ - - + + @@ -15825,13 +15845,28 @@ missing glib:type-name - + - + + + + missing glib:type-name + + + + missing glib:type-name + + + missing glib:type-name + + + + + missing glib:type-name @@ -15840,7 +15875,7 @@ missing glib:type-name - + @@ -16501,6 +16536,7 @@ + missing glib:type-name @@ -16509,6 +16545,14 @@ missing glib:type-name + + + + + missing glib:type-name + + + @@ -21108,7 +21133,7 @@ - + @@ -21382,6 +21407,7 @@ + @@ -21537,7 +21563,7 @@ - + @@ -21752,7 +21778,7 @@ - + @@ -22797,7 +22823,9 @@ - + + + @@ -23629,7 +23657,7 @@ - + @@ -23956,7 +23984,7 @@ - + @@ -24238,6 +24266,7 @@ + @@ -24292,6 +24321,7 @@ + @@ -24382,14 +24412,14 @@ - + - + @@ -24402,7 +24432,7 @@ - + @@ -24576,9 +24606,9 @@ - + - + @@ -24586,21 +24616,21 @@ - + - + - + @@ -24608,14 +24638,14 @@ - + - + @@ -24623,7 +24653,7 @@ - + @@ -24655,7 +24685,7 @@ - + @@ -25153,7 +25183,7 @@ - + @@ -25551,7 +25581,7 @@ - + missing glib:type-name @@ -25589,7 +25619,7 @@ - + @@ -25672,7 +25702,7 @@ - + missing glib:type-name @@ -25900,9 +25930,9 @@ - + - + @@ -26012,7 +26042,7 @@ missing glib:type-name - + @@ -26023,7 +26053,7 @@ missing glib:type-name - + @@ -26065,9 +26095,9 @@ missing glib:type-name - + - + @@ -26080,7 +26110,7 @@ missing glib:type-name - + @@ -26100,7 +26130,7 @@ missing glib:type-name - + @@ -26133,7 +26163,7 @@ missing glib:type-name - + @@ -26147,7 +26177,7 @@ missing glib:type-name - + @@ -26338,6 +26368,10 @@ + + + + @@ -26441,6 +26475,8 @@ + + @@ -29352,7 +29388,7 @@ - + @@ -29386,7 +29422,7 @@ - + @@ -29428,7 +29464,7 @@ missing glib:type-name - + @@ -29476,8 +29512,8 @@ - - + + @@ -29932,8 +29968,8 @@ missing glib:type-name - - + + @@ -30328,7 +30364,7 @@ - + -- 2.7.4