From: Rico Tzschichholz Date: Wed, 20 Jan 2021 08:42:32 +0000 (+0100) Subject: gstreamer: Update from 1.19.0+ git master X-Git-Tag: 0.51.1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f0316ba4fba6e47f91fbe447ab8e6db038a54b;p=thirdparty%2Fvala.git gstreamer: Update from 1.19.0+ git master --- diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index 95e80ac42..c7e944af7 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -361,8 +361,6 @@ namespace Gst { public bool convert (Gst.Format src_fmt, int64 src_val, Gst.Format dest_fmt, out int64 dest_val); public Gst.Audio.Info copy (); public void free (); - public bool from_caps (Gst.Caps caps); - public void init (); [Version (since = "1.2")] public bool is_equal (Gst.Audio.Info other); public void set_format (Gst.Audio.Format format, int rate, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition position[64]); @@ -534,7 +532,6 @@ namespace Gst { public int n_planes; public void* planes; public weak Gst.Buffer buffer; - public bool map (Gst.Audio.Info info, Gst.Buffer gstbuffer, Gst.MapFlags flags); public void unmap (); } [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] @@ -951,6 +948,9 @@ namespace Gst { public const int RESAMPLER_QUALITY_MIN; [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_clip")] public static Gst.Buffer audio_buffer_clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_map")] + [Version (since = "1.16")] + public static bool audio_buffer_map (out Gst.Audio.Buffer buffer, Gst.Audio.Info info, Gst.Buffer gstbuffer, Gst.MapFlags flags); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_reorder_channels")] public static bool audio_buffer_reorder_channels (Gst.Buffer buffer, Gst.Audio.Format format, [CCode (array_length_cname = "channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] from, [CCode (array_length_cname = "channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] to); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_truncate")] @@ -1000,6 +1000,10 @@ namespace Gst { public static uint audio_iec61937_frame_size (Gst.Audio.RingBufferSpec spec); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_iec61937_payload")] public static bool audio_iec61937_payload ([CCode (array_length_cname = "src_n", array_length_pos = 1.5, array_length_type = "guint")] uint8[] src, [CCode (array_length_cname = "dst_n", array_length_pos = 2.5, array_length_type = "guint")] uint8[] dst, Gst.Audio.RingBufferSpec spec, int endianness); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_info_from_caps")] + 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_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); diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index c0bab6ebe..41cc99fbe 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -361,8 +361,6 @@ namespace Gst { public Gst.Video.Info copy (); [Version (since = "1.6")] public void free (); - public bool from_caps (Gst.Caps caps); - public void init (); public bool is_equal (Gst.Video.Info other); public bool set_format (Gst.Video.Format format, uint width, uint height); [Version (since = "1.16")] @@ -431,6 +429,9 @@ namespace Gst { protected Sink (); public static void center_rect (Gst.Video.Rectangle src, Gst.Video.Rectangle dst, Gst.Video.Rectangle result, bool scaling); [NoWrapper] + [Version (since = "1.20")] + public virtual bool set_info (Gst.Caps caps, Gst.Video.Info info); + [NoWrapper] public virtual Gst.FlowReturn show_frame (Gst.Buffer buf); [NoAccessorMethod] public bool show_preroll_frame { get; set construct; } @@ -789,8 +790,6 @@ namespace Gst { public Gst.MapInfo map_info[4]; public bool copy (Gst.Video.Frame src); public bool copy_plane (Gst.Video.Frame src, uint plane); - public bool map (Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags); - public bool map_id (Gst.Video.Info info, Gst.Buffer buffer, int id, Gst.MapFlags flags); public void unmap (); } [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)] @@ -1906,6 +1905,10 @@ namespace Gst { [Version (since = "1.18")] public static unowned Gst.Video.Format[] formats_raw (); [CCode (cheader_filename = "gst/video/video.h")] + public static bool frame_map (out Gst.Video.Frame frame, Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags); + [CCode (cheader_filename = "gst/video/video.h")] + public static bool frame_map_id (out Gst.Video.Frame frame, Gst.Video.Info info, Gst.Buffer buffer, int id, Gst.MapFlags flags); + [CCode (cheader_filename = "gst/video/video.h")] public static GLib.Type gl_texture_upload_meta_api_get_type (); [CCode (cheader_filename = "gst/video/video.h")] public static unowned Gst.MetaInfo? gl_texture_upload_meta_get_info (); @@ -1926,6 +1929,10 @@ namespace Gst { [Version (since = "1.20")] public static bool hdr_parse_hdr10_plus (uint8 data, size_t size, out Gst.Video.HDR10Plus hdr10_plus); [CCode (cheader_filename = "gst/video/video.h")] + public static bool info_from_caps (out unowned Gst.Video.Info info, Gst.Caps caps); + [CCode (cheader_filename = "gst/video/video.h")] + public static void info_init (out unowned Gst.Video.Info info); + [CCode (cheader_filename = "gst/video/video.h")] [Version (since = "1.6")] public static Gst.Video.InterlaceMode interlace_mode_from_string (string mode); [CCode (cheader_filename = "gst/video/video.h")] diff --git a/vapi/gstreamer-webrtc-1.0.vapi b/vapi/gstreamer-webrtc-1.0.vapi index 26d30caca..5f9aaaff2 100644 --- a/vapi/gstreamer-webrtc-1.0.vapi +++ b/vapi/gstreamer-webrtc-1.0.vapi @@ -102,9 +102,11 @@ namespace Gst { public class WebRTCRTPReceiver : Gst.Object { [CCode (array_length = false)] public weak void* _padding[4]; - public weak Gst.WebRTCDTLSTransport transport; [CCode (has_construct_function = false)] public WebRTCRTPReceiver (); + [NoAccessorMethod] + [Version (since = "1.20")] + public Gst.WebRTCDTLSTransport transport { owned get; } } [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")] @@ -112,7 +114,6 @@ namespace Gst { [CCode (array_length = false)] public weak void* _padding[4]; public weak GLib.Array send_encodings; - public weak Gst.WebRTCDTLSTransport transport; [CCode (has_construct_function = false)] public WebRTCRTPSender (); [Version (since = "1.20")] @@ -120,6 +121,9 @@ namespace Gst { [NoAccessorMethod] [Version (since = "1.20")] public Gst.WebRTCPriorityType priority { get; set; } + [NoAccessorMethod] + [Version (since = "1.20")] + public Gst.WebRTCDTLSTransport transport { owned get; } } [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_rtp_transceiver", type_id = "gst_webrtc_rtp_transceiver_get_type ()")] [Version (since = "1.16")]