From 1acbe4f150323dc47f2a4164063505aaf3c8116e Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 3 Jun 2018 22:17:17 +0200 Subject: [PATCH] gstreamer: Update from 1.15+ git master --- vapi/gstreamer-1.0.vapi | 6 +++--- vapi/gstreamer-audio-1.0.vapi | 6 +++--- vapi/gstreamer-video-1.0.vapi | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index 5047f5fe1..398f4b472 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -2226,7 +2226,7 @@ namespace Gst { [Version (since = "1.16")] public void set_caps (Gst.Caps caps); [Version (since = "1.16")] - public bool set_info (Gst.Structure info); + public bool set_info (owned Gst.Structure info); [Version (since = "1.16")] public void set_segment (Gst.Segment segment); } @@ -2794,7 +2794,7 @@ namespace Gst { [Version (since = "1.2")] public static unowned string[] api_type_get_tags (GLib.Type api); public static bool api_type_has_tag (GLib.Type api, GLib.Quark tag); - public static GLib.Type api_type_register (string api, string tags); + public static GLib.Type api_type_register (string api, [CCode (array_length = false, array_null_terminated = true)] string[] tags); public static unowned Gst.MetaInfo? get_info (string impl); public static unowned Gst.MetaInfo? register (GLib.Type api, string impl, size_t size, [CCode (scope = "async")] Gst.MetaInitFunction init_func, [CCode (scope = "async")] Gst.MetaFreeFunction free_func, [CCode (scope = "async")] Gst.MetaTransformFunction transform_func); } @@ -4063,7 +4063,7 @@ namespace Gst { public static bool preset_set_app_dir (string app_dir); [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gst/gst.h")] [Version (since = "1.14")] - public static string[]? protection_filter_systems_by_available_decryptors (string system_identifiers); + public static string[]? protection_filter_systems_by_available_decryptors ([CCode (array_length = false, array_null_terminated = true)] string[] system_identifiers); [CCode (cheader_filename = "gst/gst.h")] [Version (since = "1.6")] public static unowned string? protection_select_system ([CCode (array_length = false, array_null_terminated = true)] string[] system_identifiers); diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index cfa3c1071..0ef67238d 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -895,7 +895,7 @@ namespace Gst { [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_reorder_channels")] - public static bool audio_buffer_reorder_channels (Gst.Buffer buffer, Gst.Audio.Format format, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to); + 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_channel_get_fallback_mask")] [Version (since = "1.8")] public static uint64 audio_channel_get_fallback_mask (int channels); @@ -930,13 +930,13 @@ namespace Gst { [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_format_to_string")] public static unowned string audio_format_to_string (Gst.Audio.Format format); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_get_channel_reorder_map")] - public static bool audio_get_channel_reorder_map (int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to, [CCode (array_length = false)] int[] reorder_map); + public static bool audio_get_channel_reorder_map ([CCode (array_length_cname = "channels", array_length_pos = 0.5)] Gst.Audio.ChannelPosition[] from, [CCode (array_length_cname = "channels", array_length_pos = 0.5)] Gst.Audio.ChannelPosition[] to, [CCode (array_length_cname = "channels", array_length_pos = 0.5)] int[] reorder_map); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_iec61937_frame_size")] 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_reorder_channels")] - public static bool audio_reorder_channels ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, Gst.Audio.Format format, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to); + public static bool audio_reorder_channels ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, 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_resampler_options_set_quality")] public static void audio_resampler_options_set_quality (Gst.Audio.ResamplerMethod method, uint quality, int in_rate, int out_rate, Gst.Structure options); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_clipping_meta")] diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index 9c00b41b4..976368853 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -972,7 +972,8 @@ namespace Gst { Y444_12LE, GRAY10_LE32, NV12_10LE32, - NV16_10LE32 + NV16_10LE32, + NV12_10LE40 } [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_FORMAT_FLAG_", type_id = "gst_video_format_flags_get_type ()")] [Flags] @@ -1464,7 +1465,7 @@ namespace Gst { [Version (since = "1.6")] public static unowned Gst.Video.ColorPrimariesInfo? color_primaries_get_info (Gst.Video.ColorPrimaries primaries); [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 int offset[4], [CCode (array_length = false)] out int scale[4]); + 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 (since = "1.6")] public static double color_transfer_decode (Gst.Video.TransferFunction func, double val); -- 2.11.4.GIT