From: Rico Tzschichholz Date: Sat, 6 Feb 2021 16:38:51 +0000 (+0100) Subject: gstreamer: Update from 1.19.0+ git master X-Git-Tag: 0.51.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a1002880cf4733a71620e900b039fe77a8e193;p=thirdparty%2Fvala.git gstreamer: Update from 1.19.0+ git master --- diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi index 4525fe2e5..04213da17 100644 --- a/vapi/gst-editing-services-1.0.vapi +++ b/vapi/gst-editing-services-1.0.vapi @@ -401,6 +401,9 @@ namespace GES { public class Source : GES.TrackElement, GES.Extractable, GES.MetaContainer { [CCode (has_construct_function = false)] protected Source (); + [NoWrapper] + [Version (since = "1.20")] + public virtual bool select_pad (Gst.Pad pad); } [CCode (cheader_filename = "ges/ges.h", type_id = "ges_source_clip_get_type ()")] public class SourceClip : GES.Clip, GES.Extractable, GES.MetaContainer { diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index f81e420e8..8ff28b52d 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -3085,7 +3085,9 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_BIN_FLAG_", type_id = "gst_bin_flags_get_type ()")] [Flags] public enum BinFlags { + [Version (since = "1.0.5")] NO_RESYNC, + [Version (since = "1.10")] STREAMS_AWARE, LAST } @@ -3114,7 +3116,9 @@ namespace Gst { DROPPABLE, DELTA_UNIT, TAG_MEMORY, + [Version (since = "1.6")] SYNC_AFTER, + [Version (since = "1.14")] NON_DROPPABLE, LAST } diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index c7e944af7..49280d2ee 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -581,6 +581,14 @@ namespace Gst { public void fill_silence ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] dest); } [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] + [GIR (name = "AudioLevelMeta")] + [Version (since = "1.20")] + public struct LevelMeta { + public Gst.Meta meta; + public uint8 level; + public bool voice_activity; + } + [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] [GIR (name = "AudioMeta")] [Version (since = "1.16")] public struct Meta { @@ -1004,6 +1012,12 @@ namespace Gst { public static bool audio_info_from_caps (out unowned Gst.Audio.Info info, Gst.Caps caps); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_info_init")] public static void audio_info_init (out unowned Gst.Audio.Info info); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_level_meta_api_get_type")] + [Version (since = "1.20")] + public static GLib.Type audio_level_meta_api_get_type (); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_level_meta_get_info")] + [Version (since = "1.20")] + public static unowned Gst.MetaInfo? audio_level_meta_get_info (); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_make_raw_caps")] [Version (since = "1.18")] public static Gst.Caps audio_make_raw_caps ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint")] Gst.Audio.Format[]? formats, Gst.Audio.Layout layout); @@ -1020,11 +1034,17 @@ namespace Gst { public static unowned Gst.Audio.ClippingMeta? buffer_add_audio_clipping_meta (Gst.Buffer buffer, Gst.Format format, uint64 start, uint64 end); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_downmix_meta")] public static unowned Gst.Audio.DownmixMeta? buffer_add_audio_downmix_meta (Gst.Buffer buffer, [CCode (array_length_cname = "from_channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] from_position, [CCode (array_length_cname = "to_channels", array_length_pos = 3.5)] Gst.Audio.ChannelPosition[] to_position, float matrix); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_level_meta")] + [Version (since = "1.20")] + public static unowned Gst.Audio.LevelMeta? buffer_add_audio_level_meta (Gst.Buffer buffer, uint8 level, bool voice_activity); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_meta")] [Version (since = "1.16")] public static unowned Gst.Audio.Meta? buffer_add_audio_meta (Gst.Buffer buffer, Gst.Audio.Info info, size_t samples, size_t? offsets); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_get_audio_downmix_meta_for_channels")] public static unowned Gst.Audio.DownmixMeta? buffer_get_audio_downmix_meta_for_channels (Gst.Buffer buffer, [CCode (array_length_cname = "to_channels", array_length_pos = 2.1)] Gst.Audio.ChannelPosition[] to_position); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_get_audio_level_meta")] + [Version (since = "1.20")] + public static unowned Gst.Audio.LevelMeta? buffer_get_audio_level_meta (Gst.Buffer buffer); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_stream_volume_convert_volume")] public static double stream_volume_convert_volume (Gst.Audio.StreamVolumeFormat from, Gst.Audio.StreamVolumeFormat to, double val); } diff --git a/vapi/gstreamer-rtp-1.0.vapi b/vapi/gstreamer-rtp-1.0.vapi index 30cd2179b..ef6d6bb75 100644 --- a/vapi/gstreamer-rtp-1.0.vapi +++ b/vapi/gstreamer-rtp-1.0.vapi @@ -50,6 +50,9 @@ namespace Gst { [Version (since = "1.16")] public void set_source_info_enabled (bool enable); [NoAccessorMethod] + [Version (since = "1.20")] + public bool auto_header_extension { get; set; } + [NoAccessorMethod] [Version (since = "1.18")] public int max_reorder { get; set; } [NoAccessorMethod] @@ -96,6 +99,9 @@ namespace Gst { [NoWrapper] public virtual bool src_event (Gst.Event event); [NoAccessorMethod] + [Version (since = "1.20")] + public bool auto_header_extension { get; set; } + [NoAccessorMethod] public int64 max_ptime { get; set; } [NoAccessorMethod] public int64 min_ptime { get; set; } diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index 41cc99fbe..2e7deeea1 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -731,6 +731,8 @@ namespace Gst { public bool from_caps (Gst.Caps caps); public bool from_string (string level); public void init (); + [Version (since = "1.20")] + public bool is_equal (Gst.Video.ContentLightLevel other); public string to_string (); } [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]