]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer: Update from 1.15+ git master
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Oct 2018 11:19:01 +0000 (13:19 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Oct 2018 11:21:20 +0000 (13:21 +0200)
vapi/gstreamer-1.0.vapi
vapi/gstreamer-rtp-1.0.vapi
vapi/gstreamer-video-1.0.vapi
vapi/gstreamer-webrtc-1.0.vapi

index cace66e7478e36da992dfbf05d51cbf87b5d9778..bdff126a3fbc54fa3fb1d500a1e7337f626251d7 100644 (file)
@@ -98,6 +98,9 @@ namespace Gst {
                public const string ENCRYPTOR;
                [CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_KLASS_FORMATTER")]
                public const string FORMATTER;
+               [CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_KLASS_HARDWARE")]
+               [Version (since = "1.16")]
+               public const string HARDWARE;
                [CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_KLASS_MEDIA_AUDIO")]
                public const string MEDIA_AUDIO;
                [CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_KLASS_MEDIA_IMAGE")]
index 138b8ccde0638d7921e163d1721a98f6cef952f8..0a9462d65a293b11b8a2ecf13beffd9925510d46 100644 (file)
@@ -35,6 +35,8 @@ namespace Gst {
                        protected BaseDepayload ();
                        [NoWrapper]
                        public virtual bool handle_event (Gst.Event event);
+                       [Version (since = "1.16")]
+                       public bool is_source_info_enabled ();
                        [NoWrapper]
                        public virtual bool packet_lost (Gst.Event event);
                        [NoWrapper]
@@ -45,6 +47,11 @@ namespace Gst {
                        public Gst.FlowReturn push_list (Gst.BufferList out_list);
                        [NoWrapper]
                        public virtual bool set_caps (Gst.Caps caps);
+                       [Version (since = "1.16")]
+                       public void set_source_info_enabled (bool enable);
+                       [NoAccessorMethod]
+                       [Version (since = "1.16")]
+                       public bool source_info { get; set; }
                        [NoAccessorMethod]
                        public Gst.Structure stats { owned get; }
                }
@@ -53,11 +60,17 @@ namespace Gst {
                public abstract class BasePayload : Gst.Element {
                        [CCode (has_construct_function = false)]
                        protected BasePayload ();
+                       [Version (since = "1.16")]
+                       public Gst.Buffer allocate_output_buffer (uint payload_len, uint8 pad_len, uint8 csrc_count);
                        [NoWrapper]
                        public virtual Gst.Caps get_caps (Gst.Pad pad, Gst.Caps filter);
+                       [Version (since = "1.16")]
+                       public uint get_source_count (Gst.Buffer buffer);
                        [NoWrapper]
                        public virtual Gst.FlowReturn handle_buffer (Gst.Buffer buffer);
                        public bool is_filled (uint size, Gst.ClockTime duration);
+                       [Version (since = "1.16")]
+                       public bool is_source_info_enabled ();
                        public Gst.FlowReturn push (Gst.Buffer buffer);
                        public Gst.FlowReturn push_list (Gst.BufferList list);
                        [NoWrapper]
@@ -65,6 +78,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.16")]
+                       public void set_source_info_enabled (bool enable);
                        [NoWrapper]
                        public virtual bool sink_event (Gst.Event event);
                        [NoWrapper]
@@ -86,6 +101,9 @@ namespace Gst {
                        [NoAccessorMethod]
                        public int seqnum_offset { get; set; }
                        [NoAccessorMethod]
+                       [Version (since = "1.16")]
+                       public bool source_info { get; set; }
+                       [NoAccessorMethod]
                        public uint ssrc { get; set; }
                        [NoAccessorMethod]
                        public Gst.Structure stats { owned get; }
@@ -155,6 +173,20 @@ namespace Gst {
                        public weak string encoding_parameters;
                        public uint bitrate;
                }
+               [CCode (cheader_filename = "gst/rtp/rtp.h", has_type_id = false)]
+               [GIR (name = "RTPSourceMeta")]
+               [Version (since = "1.16")]
+               public struct SourceMeta {
+                       public Gst.Meta meta;
+                       public uint32 ssrc;
+                       public bool ssrc_valid;
+                       [CCode (array_length = false)]
+                       public weak uint32 csrc[15];
+                       public uint csrc_count;
+                       public bool append_csrc (uint32 csrc, uint csrc_count);
+                       public uint get_source_count ();
+                       public bool set_ssrc (uint32? ssrc);
+               }
                [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_BUFFER_FLAG_", type_id = "gst_rtp_buffer_flags_get_type ()")]
                [Flags]
                [GIR (name = "RTPBufferFlags")]
@@ -257,8 +289,13 @@ 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_SOURCE_META_MAX_CSRC_COUNT")]
+               public const int SOURCE_META_MAX_CSRC_COUNT;
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GST_RTP_VERSION")]
                public const int VERSION;
+               [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_add_rtp_source_meta")]
+               [Version (since = "1.16")]
+               public static unowned Gst.RTP.SourceMeta? buffer_add_rtp_source_meta (Gst.Buffer buf, uint32? ssrc, uint32? csrc, uint csrc_count);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static void buffer_allocate_data (Gst.Buffer buffer, uint payload_len, uint8 pad_len, uint8 csrc_count);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
@@ -273,6 +310,9 @@ namespace Gst {
                public static uint32 buffer_default_clock_rate (uint8 payload_type);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static uint64 buffer_ext_timestamp (ref uint64 exttimestamp, uint32 timestamp);
+               [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "gst_buffer_get_rtp_source_meta")]
+               [Version (since = "1.16")]
+               public static unowned Gst.RTP.SourceMeta? buffer_get_rtp_source_meta (Gst.Buffer buf);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static bool buffer_map (Gst.Buffer buffer, Gst.MapFlags flags, out unowned Gst.RTP.Buffer rtp);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
@@ -295,6 +335,10 @@ namespace Gst {
                public static unowned Gst.RTP.PayloadInfo? payload_info_for_name (string media, string encoding_name);
                [CCode (cheader_filename = "gst/rtp/rtp.h")]
                public static unowned Gst.RTP.PayloadInfo? payload_info_for_pt (uint8 payload_type);
+               [CCode (cheader_filename = "gst/rtp/rtp.h")]
+               public static GLib.Type source_meta_api_get_type ();
+               [CCode (cheader_filename = "gst/rtp/rtp.h")]
+               public static unowned Gst.MetaInfo? source_meta_get_info ();
        }
        namespace RTPC {
                [CCode (cheader_filename = "gst/rtp/rtp.h", cname = "GstRTCPBuffer", has_type_id = false)]
index 9fcf816aa4f109530d906bfa433f04920cb8b346..5e2dafcb5925d2b12ab98df41e233e0c71d09e5c 100644 (file)
@@ -1166,7 +1166,8 @@ namespace Gst {
                        AUTO,
                        CUSTOM
                }
-               [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_OVERLAY_FORMAT_FLAG_", has_type_id = false)]
+               [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_OVERLAY_FORMAT_FLAG_", type_id = "gst_video_overlay_format_flags_get_type ()")]
+               [Flags]
                [GIR (name = "VideoOverlayFormatFlags")]
                public enum OverlayFormatFlags {
                        NONE,
index bda7c17deb06db71c8825813b8d39c53033c7781..458347a9da316e2aa2141008e026d42ef1318883 100644 (file)
@@ -103,6 +103,13 @@ namespace Gst {
                public Gst.WebRTCSessionDescription copy ();
                public void free ();
        }
+       [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_BUNDLE_POLICY_", type_id = "gst_webrtc_bundle_policy_get_type ()")]
+       public enum WebRTCBundlePolicy {
+               NONE,
+               BALANCED,
+               MAX_COMPAT,
+               MAX_BUNDLE
+       }
        [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_DTLS_SETUP_", type_id = "gst_webrtc_dtls_setup_get_type ()")]
        public enum WebRTCDTLSSetup {
                NONE,