]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Update from 1.19.0+ git master
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)
vapi/gstreamer-1.0.vapi
vapi/gstreamer-audio-1.0.vapi
vapi/gstreamer-check-1.0.vapi
vapi/gstreamer-player-1.0.vapi
vapi/gstreamer-rtp-1.0.vapi
vapi/gstreamer-video-1.0.vapi
vapi/gstreamer-webrtc-1.0.vapi

index 526badecf8f096ff8d20733401fd6a0e0025c2ae..610e93ed826175d660af0bc42b6402f9fb353e04 100644 (file)
@@ -910,6 +910,8 @@ namespace Gst {
                [DestroysInstance]
                public Gst.Caps normalize ();
                public void remove_structure (uint idx);
+               [Version (since = "1.20")]
+               public string serialize (Gst.SerializeFlags flags);
                [Version (since = "1.2")]
                public void set_features (uint index, owned Gst.CapsFeatures? features);
                [Version (since = "1.16")]
@@ -1066,7 +1068,7 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                public DateTime (float tzoffset, int year, int month, int day, int hour, int minute, double seconds);
                [CCode (has_construct_function = false)]
-               public DateTime.from_g_date_time (owned GLib.DateTime dt);
+               public DateTime.from_g_date_time (owned GLib.DateTime? dt);
                [CCode (has_construct_function = false)]
                public DateTime.from_iso8601_string (string string);
                [CCode (has_construct_function = false)]
@@ -2483,6 +2485,8 @@ namespace Gst {
                public void remove_field (string fieldname);
                public void remove_fields (params string[] field_names);
                public void remove_fields_valist (string fieldname, va_list varargs);
+               [Version (since = "1.20")]
+               public string serialize (Gst.SerializeFlags flags);
                public void @set (string fieldname, ...);
                [Version (since = "1.12")]
                public void set_array (string fieldname, GLib.ValueArray array);
@@ -3685,6 +3689,13 @@ namespace Gst {
                TRICKMODE_FORWARD_PREDICTED,
                TRICKMODE_NO_AUDIO
        }
+       [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_SERIALIZE_FLAG_", type_id = "gst_serialize_flags_get_type ()")]
+       [Flags]
+       [Version (since = "1.20")]
+       public enum SerializeFlags {
+               NONE,
+               BACKWARD_COMPAT
+       }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STACK_TRACE_SHOW_", type_id = "gst_stack_trace_flags_get_type ()")]
        [Flags]
        [Version (since = "1.12")]
@@ -3750,7 +3761,7 @@ namespace Gst {
                VIDEO,
                CONTAINER,
                TEXT;
-               public unowned string? get_name ();
+               public unowned string get_name ();
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STRUCTURE_CHANGE_TYPE_PAD_", type_id = "gst_structure_change_type_get_type ()")]
        public enum StructureChangeType {
index 16c60fdb8f49aab126c615f8ee0481131b8e33c2..95e80ac4247f64578b2f45670aaa82efede0aa82 100644 (file)
@@ -580,6 +580,8 @@ namespace Gst {
                        public Gst.Audio.Format unpack_format;
                        public weak Gst.Audio.FormatUnpack unpack_func;
                        public weak Gst.Audio.FormatPack pack_func;
+                       [Version (since = "1.20")]
+                       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 = "AudioMeta")]
@@ -979,6 +981,7 @@ namespace Gst {
                [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_format_build_integer")]
                public static Gst.Audio.Format audio_format_build_integer (bool sign, int endianness, int width, int depth);
                [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_format_fill_silence")]
+               [Version (deprecated = true, deprecated_since = "1.20")]
                public static void audio_format_fill_silence (Gst.Audio.FormatInfo info, [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] dest);
                [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_format_from_string")]
                public static Gst.Audio.Format audio_format_from_string (string format);
index 42d1ec0a0f7c2ec39ad79e85c31b869f29cf302f..7da174fcc444377a0d1730b5f98dd45301eabf37 100644 (file)
@@ -42,7 +42,7 @@ namespace Gst {
                        public bool process_id (owned Gst.ClockID pending_id);
                        [Version (since = "1.4")]
                        public uint process_id_list (GLib.List<Gst.ClockID?>? pending_list);
-                       public Gst.ClockID process_next_clock_id ();
+                       public Gst.ClockID? process_next_clock_id ();
                        public void set_time (Gst.ClockTime new_time);
                        [Version (since = "1.16")]
                        public bool timed_wait_for_multiple_pending_ids (uint count, uint timeout_ms, out GLib.List<Gst.ClockID?> pending_list);
index c73a30197c167f2bab42ddba20feff2db8a3e381..7b7c08a3a858b16b6cf5f71354abd24b90142418 100644 (file)
@@ -25,7 +25,7 @@ namespace Gst {
                [Version (since = "1.10")]
                public Gst.Structure get_config ();
                public Gst.PlayerAudioInfo get_current_audio_track ();
-               public unowned Gst.PlayerSubtitleInfo get_current_subtitle_track ();
+               public Gst.PlayerSubtitleInfo get_current_subtitle_track ();
                public Gst.PlayerVideoInfo get_current_video_track ();
                public string get_current_visualization ();
                public Gst.ClockTime get_duration ();
@@ -81,7 +81,7 @@ namespace Gst {
                public static Gst.PlayerVisualization[] visualizations_get ();
                public int64 audio_video_offset { get; set; }
                public Gst.PlayerAudioInfo current_audio_track { owned get; }
-               public Gst.PlayerSubtitleInfo current_subtitle_track { get; }
+               public Gst.PlayerSubtitleInfo current_subtitle_track { owned get; }
                public Gst.PlayerVideoInfo current_video_track { owned get; }
                public uint64 duration { get; }
                public Gst.PlayerMediaInfo media_info { owned get; }
index 4b4a7cae5d19fc0c4ba289d747e5c206c96492fe..30cd2179bf33fc73a7067153e6c7e1b844819146 100644 (file)
@@ -57,6 +57,12 @@ namespace Gst {
                        public bool source_info { get; set; }
                        [NoAccessorMethod]
                        public Gst.Structure stats { owned get; }
+                       [Version (since = "1.20")]
+                       public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
+                       [Version (since = "1.20")]
+                       public signal void clear_extensions ();
+                       [Version (since = "1.20")]
+                       public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string? ext_uri);
                }
                [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_base_payload_get_type ()")]
                [GIR (name = "RTPBasePayload")]
@@ -81,6 +87,8 @@ namespace Gst {
                        [NoWrapper]
                        public virtual bool set_caps (Gst.Caps caps);
                        public void set_options (string media, bool @dynamic, string encoding_name, uint32 clock_rate);
+                       [Version (since = "1.20")]
+                       public bool set_outcaps_structure (Gst.Structure? s);
                        [Version (since = "1.16")]
                        public void set_source_info_enabled (bool enable);
                        [NoWrapper]
@@ -120,6 +128,12 @@ namespace Gst {
                        public uint timestamp { get; }
                        [NoAccessorMethod]
                        public uint timestamp_offset { get; set; }
+                       [Version (since = "1.20")]
+                       public signal void add_extension (owned Gst.RTP.HeaderExtension ext);
+                       [Version (since = "1.20")]
+                       public signal void clear_extensions ();
+                       [Version (since = "1.20")]
+                       public signal Gst.RTP.HeaderExtension request_extension (uint ext_id, string ext_uri);
                }
                [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
                [Compact]
@@ -172,6 +186,27 @@ namespace Gst {
                        public void set_version (uint8 version);
                        public void unmap ();
                }
+               [CCode (cheader_filename = "gst/rtp/rtp.h", type_id = "gst_rtp_header_extension_get_type ()")]
+               [GIR (name = "RTPHeaderExtension")]
+               [Version (since = "1.20")]
+               public abstract class HeaderExtension : Gst.Element {
+                       public uint ext_id;
+                       [CCode (has_construct_function = false)]
+                       protected HeaderExtension ();
+                       public static Gst.RTP.HeaderExtension? create_from_uri (string uri);
+                       public uint get_id ();
+                       public virtual size_t get_max_size (Gst.Buffer input_meta);
+                       public string get_sdp_caps_field_name ();
+                       public virtual Gst.RTP.HeaderExtensionFlags get_supported_flags ();
+                       public unowned string get_uri ();
+                       public virtual bool read (Gst.RTP.HeaderExtensionFlags read_flags, uint8 data, size_t size, Gst.Buffer buffer);
+                       public virtual bool set_attributes_from_caps (Gst.Caps caps);
+                       public bool set_attributes_from_caps_simple_sdp (Gst.Caps caps);
+                       public virtual bool set_caps_from_attributes (Gst.Caps caps);
+                       public bool set_caps_from_attributes_simple_sdp (Gst.Caps caps);
+                       public void set_id (uint ext_id);
+                       public virtual size_t write (Gst.Buffer input_meta, Gst.RTP.HeaderExtensionFlags write_flags, Gst.Buffer output, uint8 data, size_t size);
+               }
                [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
                [GIR (name = "RTPPayloadInfo")]
                public struct PayloadInfo {
@@ -213,6 +248,14 @@ namespace Gst {
                        SKIP_PADDING,
                        LAST
                }
+               [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_HEADER_EXTENSION_", type_id = "gst_rtp_header_extension_flags_get_type ()")]
+               [Flags]
+               [GIR (name = "RTPHeaderExtensionFlags")]
+               [Version (since = "1.20")]
+               public enum HeaderExtensionFlags {
+                       ONE_BYTE,
+                       TWO_BYTE
+               }
                [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_PAYLOAD_", type_id = "gst_rtp_payload_get_type ()")]
                [GIR (name = "RTPPayload")]
                public enum Payload {
@@ -290,6 +333,9 @@ namespace Gst {
                }
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_BASE")]
                public const string HDREXT_BASE;
+               [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_ELEMENT_CLASS")]
+               [Version (since = "1.20")]
+               public const string HDREXT_ELEMENT_CLASS;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56")]
                public const string HDREXT_NTP_56;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_56_SIZE")]
@@ -298,6 +344,9 @@ namespace Gst {
                public const string HDREXT_NTP_64;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HDREXT_NTP_64_SIZE")]
                public const int HDREXT_NTP_64_SIZE;
+               [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_HEADER_EXTENSION_URI_METADATA_KEY")]
+               [Version (since = "1.20")]
+               public const string HEADER_EXTENSION_URI_METADATA_KEY;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_SOURCE_META_MAX_CSRC_COUNT")]
                public const int SOURCE_META_MAX_CSRC_COUNT;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_VERSION")]
@@ -336,6 +385,9 @@ namespace Gst {
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
+               [Version (since = "1.20")]
+               public static GLib.List<Gst.RTP.HeaderExtension> get_header_extension_list ();
+               [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static bool hdrext_get_ntp_56 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static bool hdrext_get_ntp_64 ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
index 997214bfa8150ab56f6005bcb4a5aab595948bb8..9e356ba8b9854aca24a4cb36bde1d8ac3f68e387 100644 (file)
@@ -807,9 +807,9 @@ namespace Gst {
                        public weak int stride[4];
                        public Gst.Video.Alignment alignment;
                        [Version (since = "1.18")]
-                       public bool get_plane_height (out uint plane_height);
+                       public bool get_plane_height ([CCode (array_length = false)] out unowned uint plane_height[4]);
                        [Version (since = "1.18")]
-                       public bool get_plane_size (out size_t plane_size);
+                       public bool get_plane_size ([CCode (array_length = false)] out unowned size_t plane_size[4]);
                        public bool map (uint plane, Gst.MapInfo info, out void* data, out int stride, Gst.MapFlags flags);
                        [Version (since = "1.18")]
                        public bool set_alignment (Gst.Video.Alignment alignment);
@@ -1725,8 +1725,16 @@ namespace Gst {
                [Version (since = "1.16")]
                public static Gst.Caps caption_type_to_caps (Gst.Video.CaptionType type);
                [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (deprecated = true, deprecated_since = "1.20")]
                public static Gst.Video.ChromaSite chroma_from_string (string s);
                [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static Gst.Video.ChromaSite chroma_site_from_string (string s);
+               [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static string? chroma_site_to_string (Gst.Video.ChromaSite site);
+               [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (deprecated = true, deprecated_since = "1.20")]
                public static unowned string chroma_to_string (Gst.Video.ChromaSite site);
                [CCode (cheader_filename = "gst/video/video.h")]
                [Version (since = "1.18")]
@@ -1749,10 +1757,10 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h")]
                public static void color_range_offsets (Gst.Video.ColorRange range, Gst.Video.FormatInfo info, [CCode (array_length = false)] out unowned int offset[4], [CCode (array_length = false)] out unowned int scale[4]);
                [CCode (cheader_filename = "gst/video/video.h")]
-               [Version (deprecated = true, since = "1.6")]
+               [Version (deprecated = true, deprecated_since = "1.20", since = "1.6")]
                public static double color_transfer_decode (Gst.Video.TransferFunction func, double val);
                [CCode (cheader_filename = "gst/video/video.h")]
-               [Version (deprecated = true, since = "1.6")]
+               [Version (deprecated = true, deprecated_since = "1.20", since = "1.6")]
                public static double color_transfer_encode (Gst.Video.TransferFunction func, double val);
                [CCode (cheader_filename = "gst/video/video.h")]
                public static Gst.Sample convert_sample (Gst.Sample sample, Gst.Caps to_caps, Gst.ClockTime timeout) throws GLib.Error;
index c1f46c6524a83fd143fb1e5b6fea023e43f8522a..26d30cacadcc040656080488f3e95efee08cdba2 100644 (file)
@@ -8,9 +8,8 @@ namespace Gst {
                public weak void* _padding[4];
                public weak Gst.Element dtlssrtpdec;
                public weak Gst.Element dtlssrtpenc;
-               public bool is_rtcp;
                [CCode (has_construct_function = false)]
-               public WebRTCDTLSTransport (uint session_id, bool rtcp);
+               public WebRTCDTLSTransport (uint session_id);
                public void set_transport (Gst.WebRTCICETransport ice);
                [NoAccessorMethod]
                public string certificate { owned get; set; }
@@ -19,8 +18,6 @@ namespace Gst {
                [NoAccessorMethod]
                public string remote_certificate { owned get; }
                [NoAccessorMethod]
-               public bool rtcp { get; construct; }
-               [NoAccessorMethod]
                public uint session_id { get; construct; }
                [NoAccessorMethod]
                public Gst.WebRTCDTLSTransportState state { get; }
@@ -105,27 +102,21 @@ namespace Gst {
        public class WebRTCRTPReceiver : Gst.Object {
                [CCode (array_length = false)]
                public weak void* _padding[4];
-               public weak Gst.WebRTCDTLSTransport rtcp_transport;
                public weak Gst.WebRTCDTLSTransport transport;
                [CCode (has_construct_function = false)]
                public WebRTCRTPReceiver ();
-               public void set_rtcp_transport (Gst.WebRTCDTLSTransport transport);
-               public void set_transport (Gst.WebRTCDTLSTransport transport);
        }
        [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_rtp_sender", type_id = "gst_webrtc_rtp_sender_get_type ()")]
        [Version (since = "1.16")]
        public class WebRTCRTPSender : Gst.Object {
                [CCode (array_length = false)]
                public weak void* _padding[4];
-               public weak Gst.WebRTCDTLSTransport rtcp_transport;
                public weak GLib.Array<void*> send_encodings;
                public weak Gst.WebRTCDTLSTransport transport;
                [CCode (has_construct_function = false)]
                public WebRTCRTPSender ();
                [Version (since = "1.20")]
                public void set_priority (Gst.WebRTCPriorityType priority);
-               public void set_rtcp_transport (Gst.WebRTCDTLSTransport transport);
-               public void set_transport (Gst.WebRTCDTLSTransport transport);
                [NoAccessorMethod]
                [Version (since = "1.20")]
                public Gst.WebRTCPriorityType priority { get; set; }