[vala/staging] gstreamer: Update from 1.19.2+ git main
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] gstreamer: Update from 1.19.2+ git main
- Date: Mon, 25 Oct 2021 07:17:34 +0000 (UTC)
commit 59e74da2a13cdba2f3e1c211827c2fd622d247d5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 25 09:13:51 2021 +0200
gstreamer: Update from 1.19.2+ git main
vapi/gst-editing-services-1.0.vapi | 13 +++++----
vapi/gstreamer-1.0.vapi | 52 +++++++++++++++++++++++++++++++++--
vapi/gstreamer-audio-1.0.vapi | 3 ++
vapi/gstreamer-base-1.0.vapi | 6 ++++
vapi/gstreamer-pbutils-1.0.vapi | 7 ++++-
vapi/gstreamer-play-1.0.vapi | 42 ++++++++++++++--------------
vapi/gstreamer-player-1.0.vapi | 30 ++++++++++----------
vapi/gstreamer-rtp-1.0.vapi | 20 ++++++++++++--
vapi/gstreamer-rtsp-server-1.0.vapi | 2 ++
vapi/gstreamer-video-1.0.vapi | 22 ++++++++++++---
vapi/metadata/GstPbutils-1.0.metadata | 5 ++++
11 files changed, 150 insertions(+), 52 deletions(-)
---
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index e58fbfbd6..247a0327f 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -147,7 +147,7 @@ namespace GES {
[Version (since = "1.18")]
public Gst.ClockTime get_frame_time (GES.FrameNumber frame_number);
[Version (since = "1.18")]
- public virtual bool get_natural_framerate (int framerate_n, int framerate_d);
+ public virtual bool get_natural_framerate (out int framerate_n, out int framerate_d);
public GES.TrackType get_supported_formats ();
public void set_supported_formats (GES.TrackType supportedformats);
public GES.TrackType supported_formats { get; set construct; }
@@ -156,8 +156,9 @@ namespace GES {
public class CommandLineFormatter : GES.Formatter, GES.Extractable {
[CCode (has_construct_function = false)]
protected CommandLineFormatter ();
- public static string get_help (int nargs, string commands);
- [Version (since = "1.20")]
+ [Version (since = "1.10")]
+ public static string get_help ([CCode (array_length_cname = "nargs", array_length_pos = 0.5)]
string[] commands);
+ [Version (since = "1.10")]
public static string get_timeline_uri (GES.Timeline timeline);
}
[CCode (cheader_filename = "ges/ges.h", type_id = "ges_container_get_type ()")]
@@ -201,7 +202,7 @@ namespace GES {
[CCode (cheader_filename = "ges/ges.h", type_id = "ges_effect_clip_get_type ()")]
public class EffectClip : GES.BaseEffectClip, GES.Extractable, GES.MetaContainer {
[CCode (has_construct_function = false)]
- public EffectClip (string video_bin_description, string audio_bin_description);
+ public EffectClip (string? video_bin_description, string? audio_bin_description);
[NoAccessorMethod]
public string audio_bin_description { owned get; construct; }
[NoAccessorMethod]
@@ -809,7 +810,7 @@ namespace GES {
[CCode (has_construct_function = false)]
protected TrackElementAsset ();
[Version (since = "1.18")]
- public virtual bool get_natural_framerate (int framerate_n, int framerate_d);
+ public virtual bool get_natural_framerate (out int framerate_n, out int framerate_d);
public GES.TrackType get_track_type ();
public void set_track_type (GES.TrackType type);
public GES.TrackType track_type { get; set construct; }
@@ -944,7 +945,7 @@ namespace GES {
[CCode (cheader_filename = "ges/ges.h", type_cname = "GESMetaContainerInterface", type_id =
"ges_meta_container_get_type ()")]
public interface MetaContainer : GLib.Object {
public bool add_metas_from_string (string str);
- public bool check_meta_registered (string meta_item, out GES.MetaFlag? flags, out GLib.Type?
type);
+ public bool check_meta_registered (string meta_item, out GES.MetaFlag flags, out GLib.Type
type);
public void @foreach (GES.MetaForeachFunc func);
public bool get_boolean (string meta_item, out bool dest);
public bool get_date (string meta_item, out GLib.Date dest);
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index b7f77f86f..bb9f5b77e 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -369,6 +369,12 @@ namespace Gst {
[CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_list_copy_value")]
[Version (replacement = "TagList.copy_value")]
public static bool list_copy_value (out GLib.Value dest, Gst.TagList list, string tag);
+ [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_list_replace")]
+ [Version (replacement = "TagList.replace", since = "1.16")]
+ public static bool list_replace (ref Gst.TagList? old_taglist, Gst.TagList? new_taglist);
+ [CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_list_take")]
+ [Version (replacement = "TagList.take", since = "1.16")]
+ public static bool list_take (ref Gst.TagList old_taglist, owned Gst.TagList? new_taglist);
[CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_merge_strings_with_comma")]
public static void merge_strings_with_comma (out GLib.Value dest, GLib.Value src);
[CCode (cheader_filename = "gst/gst.h", cname = "gst_tag_merge_use_first")]
@@ -791,8 +797,12 @@ namespace Gst {
public void insert (int idx, owned Gst.Buffer buffer);
public uint length ();
public void remove (uint idx, uint length);
+ [Version (since = "1.16")]
+ public static bool replace (ref Gst.BufferList? old_list, Gst.BufferList? new_list);
[CCode (has_construct_function = false)]
public BufferList.sized (uint size);
+ [Version (since = "1.16")]
+ public static bool take (ref Gst.BufferList old_list, owned Gst.BufferList? new_list);
}
[CCode (cheader_filename = "gst/gst.h", type_id = "gst_buffer_pool_get_type ()")]
public class BufferPool : Gst.Object {
@@ -1043,16 +1053,20 @@ namespace Gst {
[Version (since = "1.6")]
public signal void synced (bool synced);
}
- [CCode (cheader_filename = "gst/gst.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "gst_context_get_type ()")]
+ [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_context_ref", type_id =
"gst_context_get_type ()", unref_function = "gst_context_unref")]
[Compact]
[Version (since = "1.2")]
public class Context {
[CCode (has_construct_function = false)]
public Context (string context_type, bool persistent);
+ public Gst.Context copy ();
public unowned string get_context_type ();
public unowned Gst.Structure get_structure ();
public bool has_context_type (string context_type);
public bool is_persistent ();
+ public unowned Gst.Context @ref ();
+ public static bool replace (ref Gst.Context old_context, Gst.Context? new_context);
+ public void unref ();
public Gst.Structure writable_structure ();
}
[CCode (cheader_filename = "gst/gst.h", type_id = "gst_control_binding_get_type ()")]
@@ -1811,6 +1825,8 @@ namespace Gst {
public Message.structure_change (Gst.Object? src, Gst.StructureChangeType type, Gst.Element
owner, bool busy);
[CCode (has_construct_function = false)]
public Message.tag (Gst.Object? src, owned Gst.TagList tag_list);
+ [Version (since = "1.16")]
+ public static bool take (ref Gst.Message old_message, owned Gst.Message? new_message);
[CCode (has_construct_function = false)]
public Message.toc (Gst.Object src, Gst.Toc toc, bool updated);
[CCode (has_construct_function = false)]
@@ -2190,7 +2206,10 @@ namespace Gst {
public void expire ();
public unowned Gst.Structure? get_reply ();
public void interrupt ();
+ public unowned Gst.Promise @ref ();
public void reply (owned Gst.Structure? s);
+ [DestroysInstance]
+ public void unref ();
public Gst.PromiseResult wait ();
[CCode (has_construct_function = false)]
public Promise.with_change_func (owned Gst.PromiseChangeFunc func);
@@ -2284,6 +2303,7 @@ namespace Gst {
public void parse_uri_redirection_permanent (out bool permanent);
[CCode (has_construct_function = false)]
public Query.position (Gst.Format format);
+ public unowned Gst.Query @ref ();
public void remove_nth_allocation_meta (uint index);
[Version (since = "1.2")]
public void remove_nth_allocation_param (uint index);
@@ -2321,6 +2341,8 @@ namespace Gst {
public void set_uri_redirection (string uri);
[Version (since = "1.4")]
public void set_uri_redirection_permanent (bool permanent);
+ [Version (since = "1.16")]
+ public static bool take (ref Gst.Query? old_query, owned Gst.Query? new_query);
[CCode (has_construct_function = false)]
public Query.uri ();
public unowned Gst.Structure writable_structure ();
@@ -2612,7 +2634,11 @@ namespace Gst {
public unowned string nth_tag_name (uint index);
public bool peek_string_index (string tag, uint index, out unowned string value);
public void remove_tag (string tag);
+ [Version (since = "1.16")]
+ public static bool replace (ref Gst.TagList? old_taglist, Gst.TagList? new_taglist);
public void set_scope (Gst.TagScope scope);
+ [Version (since = "1.16")]
+ public static bool take (ref Gst.TagList old_taglist, owned Gst.TagList? new_taglist);
public string? to_string ();
[CCode (has_construct_function = false)]
public TagList.valist (va_list var_args);
@@ -2725,7 +2751,7 @@ namespace Gst {
public static GLib.List<Gst.TypeFindFactory> get_list ();
public bool has_function ();
}
- [CCode (cheader_filename = "gst/gst.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "gst_uri_get_type ()")]
+ [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_uri_ref", type_id = "gst_uri_get_type
()", unref_function = "gst_uri_unref")]
[Compact]
public class Uri {
[CCode (has_construct_function = false)]
@@ -2738,6 +2764,8 @@ namespace Gst {
[Version (deprecated = true)]
public static string @construct (string protocol, string location);
[Version (since = "1.6")]
+ public Gst.Uri copy ();
+ [Version (since = "1.6")]
public bool equal (Gst.Uri second);
[Version (since = "1.6")]
public static Gst.Uri? from_string (string uri);
@@ -2795,6 +2823,8 @@ namespace Gst {
[Version (since = "1.6")]
public bool query_has_key (string query_key);
[Version (since = "1.6")]
+ public unowned Gst.Uri @ref ();
+ [Version (since = "1.6")]
public bool remove_query_key (string query_key);
[Version (since = "1.6")]
public bool set_fragment (string? fragment);
@@ -2820,6 +2850,9 @@ namespace Gst {
public bool set_userinfo (string userinfo);
[Version (since = "1.6")]
public string to_string ();
+ [DestroysInstance]
+ [Version (since = "1.6")]
+ public void unref ();
}
[CCode (cheader_filename = "gst/gst.h", type_id = "gst_value_array_get_type ()")]
public class ValueArray {
@@ -4292,12 +4325,21 @@ namespace Gst {
[Version (replacement = "Buffer.get_max_memory", since = "1.2")]
public static uint buffer_get_max_memory ();
[CCode (cheader_filename = "gst/gst.h")]
+ [Version (replacement = "BufferList.replace", since = "1.16")]
+ public static bool buffer_list_replace (ref Gst.BufferList? old_list, Gst.BufferList? new_list);
+ [CCode (cheader_filename = "gst/gst.h")]
+ [Version (replacement = "BufferList.take", since = "1.16")]
+ public static bool buffer_list_take (ref Gst.BufferList old_list, owned Gst.BufferList? new_list);
+ [CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "CapsFeatures.from_string", since = "1.2")]
public static Gst.CapsFeatures? caps_features_from_string (string features);
[CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "Caps.from_string")]
public static Gst.Caps? caps_from_string (string string);
[CCode (cheader_filename = "gst/gst.h")]
+ [Version (replacement = "Context.replace", since = "1.2")]
+ public static bool context_replace (ref Gst.Context old_context, Gst.Context? new_context);
+ [CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "CoreError.quark")]
public static GLib.Quark core_error_quark ();
[CCode (cheader_filename = "gst/gst.h")]
@@ -4355,6 +4397,9 @@ namespace Gst {
[Version (replacement = "LibraryError.quark")]
public static GLib.Quark library_error_quark ();
[CCode (cheader_filename = "gst/gst.h")]
+ [Version (replacement = "Message.take", since = "1.16")]
+ public static bool message_take (ref Gst.Message old_message, owned Gst.Message? new_message);
+ [CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "MessageType.get_name")]
public static unowned string message_type_get_name (Gst.MessageType type);
[CCode (cheader_filename = "gst/gst.h")]
@@ -4423,6 +4468,9 @@ namespace Gst {
[Version (since = "1.6")]
public static unowned string? protection_select_system ([CCode (array_length = false,
array_null_terminated = true)] string[] system_identifiers);
[CCode (cheader_filename = "gst/gst.h")]
+ [Version (replacement = "Query.take", since = "1.16")]
+ public static bool query_take (ref Gst.Query? old_query, owned Gst.Query? new_query);
+ [CCode (cheader_filename = "gst/gst.h")]
[Version (replacement = "QueryType.get_flags")]
public static Gst.QueryTypeFlags query_type_get_flags (Gst.QueryType type);
[CCode (cheader_filename = "gst/gst.h")]
diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi
index 4d8192f67..1ef4f5256 100644
--- a/vapi/gstreamer-audio-1.0.vapi
+++ b/vapi/gstreamer-audio-1.0.vapi
@@ -20,6 +20,9 @@ namespace Gst {
[NoAccessorMethod]
public uint64 discont_wait { get; set; }
[NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool ignore_inactive_pads { get; set; }
+ [NoAccessorMethod]
public uint64 output_buffer_duration { get; set; }
[NoAccessorMethod]
[Version (since = "1.18")]
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 30ec578d6..ac6a35a0a 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -76,6 +76,8 @@ namespace Gst {
public virtual Gst.FlowReturn flush ();
public void get_allocator (out Gst.Allocator? allocator, out unowned
Gst.AllocationParams @params);
public Gst.BufferPool? get_buffer_pool ();
+ [Version (since = "1.20")]
+ public bool get_ignore_inactive_pads ();
public Gst.ClockTime get_latency ();
[NoWrapper]
public virtual Gst.ClockTime get_next_time ();
@@ -89,6 +91,8 @@ namespace Gst {
public virtual bool propose_allocation (Gst.Base.AggregatorPad pad, Gst.Query
decide_query, Gst.Query query);
[Version (since = "1.18")]
public void selected_samples (Gst.ClockTime pts, Gst.ClockTime dts, Gst.ClockTime
duration, Gst.Structure? info);
+ [Version (since = "1.20")]
+ public void set_ignore_inactive_pads (bool ignore);
public void set_latency (Gst.ClockTime min_latency, Gst.ClockTime max_latency);
public void set_src_caps (Gst.Caps caps);
[Version (since = "1.16")]
@@ -143,6 +147,8 @@ namespace Gst {
[Version (since = "1.14.1")]
public bool has_buffer ();
public bool is_eos ();
+ [Version (since = "1.20")]
+ public bool is_inactive ();
public Gst.Buffer? peek_buffer ();
public Gst.Buffer? pop_buffer ();
[NoWrapper]
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index 0c8a03e88..de623fb11 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -33,7 +33,7 @@ namespace Gst {
public static unowned string get_profile ([CCode (array_length_cname = "len",
array_length_pos = 1.1, array_length_type = "guint")] uint8[] sps);
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname =
"gst_codec_utils_h264_get_profile_flags_level")]
[Version (since = "1.20")]
- public static bool get_profile_flags_level (uint8 codecs_data, uint len,
uint8 profile, uint8 flags, uint8 level);
+ public static bool get_profile_flags_level ([CCode (array_length_cname =
"len", array_length_pos = 1.5, array_length_type = "guint", type = "const guint8*")] uint8[] codec_data, out
uint8 profile, out uint8 flags, out uint8 level);
}
namespace MPEG4Video {
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname =
"gst_codec_utils_mpeg4video_caps_set_level_and_profile")]
@@ -101,6 +101,8 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected DiscovererContainerInfo ();
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams ();
+ [Version (since = "1.20")]
+ public unowned Gst.TagList get_tags ();
}
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererInfo",
lower_case_cprefix = "gst_discoverer_info_", type_id = "gst_discoverer_info_get_type ()")]
[GIR (name = "DiscovererInfo")]
@@ -126,6 +128,7 @@ namespace Gst {
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_stream_list ();
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_streams (GLib.Type streamtype);
public GLib.List<Gst.PbUtils.DiscovererStreamInfo> get_subtitle_streams ();
+ [Version (deprecated = true, deprecated_since = "1.20")]
public unowned Gst.TagList get_tags ();
public unowned Gst.Toc get_toc ();
public unowned string get_uri ();
@@ -144,6 +147,8 @@ namespace Gst {
public Gst.PbUtils.DiscovererStreamInfo get_next ();
public Gst.PbUtils.DiscovererStreamInfo get_previous ();
public unowned string get_stream_id ();
+ [Version (since = "1.20")]
+ public int get_stream_number ();
public unowned string get_stream_type_nick ();
public unowned Gst.TagList get_tags ();
public unowned Gst.Toc get_toc ();
diff --git a/vapi/gstreamer-play-1.0.vapi b/vapi/gstreamer-play-1.0.vapi
index f222736a6..028c4f9cd 100644
--- a/vapi/gstreamer-play-1.0.vapi
+++ b/vapi/gstreamer-play-1.0.vapi
@@ -11,7 +11,7 @@ namespace Gst {
protected AudioInfo ();
public int get_bitrate ();
public int get_channels ();
- public unowned string get_language ();
+ public unowned string? get_language ();
public int get_max_bitrate ();
public int get_sample_rate ();
}
@@ -22,17 +22,17 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected MediaInfo ();
public unowned GLib.List<Gst.Play.AudioInfo> get_audio_streams ();
- public unowned string get_container_format ();
+ public unowned string? get_container_format ();
public Gst.ClockTime get_duration ();
- public unowned Gst.Sample get_image_sample ();
+ public unowned Gst.Sample? get_image_sample ();
public uint get_number_of_audio_streams ();
public uint get_number_of_streams ();
public uint get_number_of_subtitle_streams ();
public uint get_number_of_video_streams ();
public unowned GLib.List<Gst.Play.StreamInfo> get_stream_list ();
public unowned GLib.List<Gst.Play.SubtitleInfo> get_subtitle_streams ();
- public unowned Gst.TagList get_tags ();
- public unowned string get_title ();
+ public unowned Gst.TagList? get_tags ();
+ public unowned string? get_title ();
public unowned string get_uri ();
public unowned GLib.List<Gst.Play.VideoInfo> get_video_streams ();
public bool is_live ();
@@ -46,10 +46,10 @@ namespace Gst {
public Play (owned Gst.Play.VideoRenderer? video_renderer);
public static uint config_get_position_update_interval (Gst.Structure config);
public static bool config_get_seek_accurate (Gst.Structure config);
- public static string config_get_user_agent (Gst.Structure config);
+ public static string? config_get_user_agent (Gst.Structure config);
public static void config_set_position_update_interval (Gst.Structure config, uint
interval);
public static void config_set_seek_accurate (Gst.Structure config, bool accurate);
- public static void config_set_user_agent (Gst.Structure config, string agent);
+ public static void config_set_user_agent (Gst.Structure config, string? agent);
public static unowned GLib.List<Gst.Play.AudioInfo> get_audio_streams
(Gst.Play.MediaInfo info);
public int64 get_audio_video_offset ();
public double get_color_balance (Gst.Play.ColorBalanceType type);
@@ -59,7 +59,7 @@ namespace Gst {
public Gst.Play.VideoInfo? get_current_video_track ();
public string? get_current_visualization ();
public Gst.ClockTime get_duration ();
- public Gst.Play.MediaInfo get_media_info ();
+ public Gst.Play.MediaInfo? get_media_info ();
public Gst.Bus get_message_bus ();
public Gst.Video.MultiviewFlags get_multiview_flags ();
public Gst.Video.MultiviewFramePacking get_multiview_mode ();
@@ -68,9 +68,9 @@ namespace Gst {
public Gst.ClockTime get_position ();
public double get_rate ();
public static unowned GLib.List<Gst.Play.SubtitleInfo> get_subtitle_streams
(Gst.Play.MediaInfo info);
- public string get_subtitle_uri ();
+ public string? get_subtitle_uri ();
public int64 get_subtitle_video_offset ();
- public string get_uri ();
+ public string? get_uri ();
public Gst.Sample? get_video_snapshot (Gst.Play.SnapshotFormat format, Gst.Structure?
config);
public static unowned GLib.List<Gst.Play.VideoInfo> get_video_streams
(Gst.Play.MediaInfo info);
public double get_volume ();
@@ -90,12 +90,12 @@ namespace Gst {
public void set_rate (double rate);
public bool set_subtitle_track (int stream_index);
public void set_subtitle_track_enabled (bool enabled);
- public void set_subtitle_uri (string uri);
+ public void set_subtitle_uri (string? uri);
public void set_subtitle_video_offset (int64 offset);
- public void set_uri (string uri);
+ public void set_uri (string? uri);
public bool set_video_track (int stream_index);
public void set_video_track_enabled (bool enabled);
- public bool set_visualization (string name);
+ public bool set_visualization (string? name);
public void set_visualization_enabled (bool enabled);
public void set_volume (double val);
public void stop ();
@@ -156,11 +156,11 @@ namespace Gst {
public abstract class StreamInfo : GLib.Object {
[CCode (has_construct_function = false)]
protected StreamInfo ();
- public unowned Gst.Caps get_caps ();
- public unowned string get_codec ();
+ public unowned Gst.Caps? get_caps ();
+ public unowned string? get_codec ();
public int get_index ();
public unowned string get_stream_type ();
- public unowned Gst.TagList get_tags ();
+ public unowned Gst.TagList? get_tags ();
}
[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_subtitle_info_get_type ()")]
[GIR (name = "PlaySubtitleInfo")]
@@ -168,7 +168,7 @@ namespace Gst {
public class SubtitleInfo : Gst.Play.StreamInfo {
[CCode (has_construct_function = false)]
protected SubtitleInfo ();
- public unowned string get_language ();
+ public unowned string? get_language ();
}
[CCode (cheader_filename = "gst/play/play.h", type_id = "gst_play_video_info_get_type ()")]
[GIR (name = "PlayVideoInfo")]
@@ -245,7 +245,7 @@ namespace Gst {
public unowned string get_name ();
public static void parse_buffering_percent (Gst.Message msg, out uint percent);
public static void parse_duration_updated (Gst.Message msg, out Gst.ClockTime
duration);
- public static void parse_error (Gst.Message msg, out unowned GLib.Error error, out
Gst.Structure details);
+ public static void parse_error (Gst.Message msg, out GLib.Error error, out
Gst.Structure? details);
public static void parse_media_info_updated (Gst.Message msg, out Gst.Play.MediaInfo
info);
public static void parse_muted_changed (Gst.Message msg, out bool muted);
public static void parse_position_updated (Gst.Message msg, out Gst.ClockTime
position);
@@ -253,7 +253,7 @@ namespace Gst {
public static void parse_type (Gst.Message msg, out Gst.Play.Message type);
public static void parse_video_dimensions_changed (Gst.Message msg, out uint width,
out uint height);
public static void parse_volume_changed (Gst.Message msg, out double volume);
- public static void parse_warning (Gst.Message msg, out unowned GLib.Error error, out
Gst.Structure details);
+ public static void parse_warning (Gst.Message msg, out GLib.Error error, out
Gst.Structure? details);
}
[CCode (cheader_filename = "gst/play/play.h", cprefix = "GST_PLAY_THUMBNAIL_", has_type_id =
false)]
[GIR (name = "PlaySnapshotFormat")]
@@ -305,7 +305,7 @@ namespace Gst {
public static void play_message_parse_duration_updated (Gst.Message msg, out Gst.ClockTime
duration);
[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_error")]
[Version (replacement = "PlayMessage.parse_error", since = "1.20")]
- public static void play_message_parse_error (Gst.Message msg, out unowned GLib.Error error,
out Gst.Structure details);
+ public static void play_message_parse_error (Gst.Message msg, out GLib.Error error, out
Gst.Structure? details);
[CCode (cheader_filename = "gst/play/play.h", cname =
"gst_play_message_parse_media_info_updated")]
[Version (replacement = "PlayMessage.parse_media_info_updated", since = "1.20")]
public static void play_message_parse_media_info_updated (Gst.Message msg, out
Gst.Play.MediaInfo info);
@@ -329,7 +329,7 @@ namespace Gst {
public static void play_message_parse_volume_changed (Gst.Message msg, out double volume);
[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_message_parse_warning")]
[Version (replacement = "PlayMessage.parse_warning", since = "1.20")]
- public static void play_message_parse_warning (Gst.Message msg, out unowned GLib.Error error,
out Gst.Structure details);
+ public static void play_message_parse_warning (Gst.Message msg, out GLib.Error error, out
Gst.Structure? details);
[CCode (cheader_filename = "gst/play/play.h", cname = "gst_play_state_get_name")]
[Version (replacement = "PlayState.get_name", since = "1.20")]
public static unowned string play_state_get_name (Gst.Play.State state);
diff --git a/vapi/gstreamer-player-1.0.vapi b/vapi/gstreamer-player-1.0.vapi
index d1095275a..7a0deffaf 100644
--- a/vapi/gstreamer-player-1.0.vapi
+++ b/vapi/gstreamer-player-1.0.vapi
@@ -11,13 +11,13 @@ namespace Gst {
[Version (since = "1.12")]
public static bool config_get_seek_accurate (Gst.Structure config);
[Version (since = "1.10")]
- public static string config_get_user_agent (Gst.Structure config);
+ public static string? config_get_user_agent (Gst.Structure config);
[Version (since = "1.10")]
public static void config_set_position_update_interval (Gst.Structure config, uint interval);
[Version (since = "1.12")]
public static void config_set_seek_accurate (Gst.Structure config, bool accurate);
[Version (since = "1.10")]
- public static void config_set_user_agent (Gst.Structure config, string agent);
+ public static void config_set_user_agent (Gst.Structure config, string? agent);
public static unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams (Gst.PlayerMediaInfo
info);
[Version (since = "1.10")]
public int64 get_audio_video_offset ();
@@ -29,7 +29,7 @@ namespace Gst {
public Gst.PlayerVideoInfo? get_current_video_track ();
public string? get_current_visualization ();
public Gst.ClockTime get_duration ();
- public Gst.PlayerMediaInfo get_media_info ();
+ public Gst.PlayerMediaInfo? get_media_info ();
[Version (since = "1.10")]
public Gst.Video.MultiviewFlags get_multiview_flags ();
[Version (since = "1.10")]
@@ -66,13 +66,13 @@ namespace Gst {
public void set_rate (double rate);
public bool set_subtitle_track (int stream_index);
public void set_subtitle_track_enabled (bool enabled);
- public void set_subtitle_uri (string uri);
+ public void set_subtitle_uri (string? uri);
[Version (since = "1.16")]
public void set_subtitle_video_offset (int64 offset);
- public void set_uri (string uri);
+ public void set_uri (string? uri);
public bool set_video_track (int stream_index);
public void set_video_track_enabled (bool enabled);
- public bool set_visualization (string name);
+ public bool set_visualization (string? name);
public void set_visualization_enabled (bool enabled);
public void set_volume (double val);
public void stop ();
@@ -122,7 +122,7 @@ namespace Gst {
protected PlayerAudioInfo ();
public int get_bitrate ();
public int get_channels ();
- public unowned string get_language ();
+ public unowned string? get_language ();
public int get_max_bitrate ();
public int get_sample_rate ();
}
@@ -138,9 +138,9 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected PlayerMediaInfo ();
public unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams ();
- public unowned string get_container_format ();
+ public unowned string? get_container_format ();
public Gst.ClockTime get_duration ();
- public unowned Gst.Sample get_image_sample ();
+ public unowned Gst.Sample? get_image_sample ();
[Version (since = "1.12")]
public uint get_number_of_audio_streams ();
[Version (since = "1.12")]
@@ -151,8 +151,8 @@ namespace Gst {
public uint get_number_of_video_streams ();
public unowned GLib.List<Gst.PlayerStreamInfo> get_stream_list ();
public unowned GLib.List<Gst.PlayerSubtitleInfo> get_subtitle_streams ();
- public unowned Gst.TagList get_tags ();
- public unowned string get_title ();
+ public unowned Gst.TagList? get_tags ();
+ public unowned string? get_title ();
public unowned string get_uri ();
public unowned GLib.List<Gst.PlayerVideoInfo> get_video_streams ();
public bool is_live ();
@@ -162,17 +162,17 @@ namespace Gst {
public abstract class PlayerStreamInfo : GLib.Object {
[CCode (has_construct_function = false)]
protected PlayerStreamInfo ();
- public unowned Gst.Caps get_caps ();
- public unowned string get_codec ();
+ public unowned Gst.Caps? get_caps ();
+ public unowned string? get_codec ();
public int get_index ();
public unowned string get_stream_type ();
- public unowned Gst.TagList get_tags ();
+ public unowned Gst.TagList? get_tags ();
}
[CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_subtitle_info_get_type ()")]
public class PlayerSubtitleInfo : Gst.PlayerStreamInfo {
[CCode (has_construct_function = false)]
protected PlayerSubtitleInfo ();
- public unowned string get_language ();
+ public unowned string? get_language ();
}
[CCode (cheader_filename = "gst/player/player.h", type_id = "gst_player_video_info_get_type ()")]
public class PlayerVideoInfo : Gst.PlayerStreamInfo {
diff --git a/vapi/gstreamer-rtp-1.0.vapi b/vapi/gstreamer-rtp-1.0.vapi
index d6c501ab0..fe52fbdd5 100644
--- a/vapi/gstreamer-rtp-1.0.vapi
+++ b/vapi/gstreamer-rtp-1.0.vapi
@@ -407,16 +407,19 @@ namespace Gst {
[CCode (has_construct_function = false)]
protected HeaderExtension ();
public static Gst.RTP.HeaderExtension? create_from_uri (string uri);
+ public Gst.RTP.HeaderExtensionDirection get_direction ();
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, [CCode
(array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, Gst.Buffer
buffer);
- public virtual bool set_attributes_from_caps (Gst.Caps caps);
- public bool set_attributes_from_caps_simple_sdp (Gst.Caps caps);
+ [NoWrapper]
+ public virtual bool set_attributes (Gst.RTP.HeaderExtensionDirection direction,
string attributes);
+ public bool set_attributes_from_caps (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 bool set_caps_from_attributes_helper (Gst.Caps caps, string attributes);
+ public void set_direction (Gst.RTP.HeaderExtensionDirection direction);
public void set_id (uint ext_id);
public virtual bool set_non_rtp_sink_caps (Gst.Caps caps);
[CCode (cname = "gst_rtp_header_extension_class_set_uri")]
@@ -535,6 +538,17 @@ namespace Gst {
SKIP_PADDING,
LAST
}
+ [CCode (cheader_filename = "gst/rtp/rtp.h", cprefix = "GST_RTP_HEADER_EXTENSION_DIRECTION_",
type_id = "gst_rtp_header_extension_direction_get_type ()")]
+ [Flags]
+ [GIR (name = "RTPHeaderExtensionDirection")]
+ [Version (since = "1.20")]
+ public enum HeaderExtensionDirection {
+ INACTIVE,
+ SENDONLY,
+ RECVONLY,
+ SENDRECV,
+ INHERITED
+ }
[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")]
diff --git a/vapi/gstreamer-rtsp-server-1.0.vapi b/vapi/gstreamer-rtsp-server-1.0.vapi
index 696426791..2bfdd75c2 100644
--- a/vapi/gstreamer-rtsp-server-1.0.vapi
+++ b/vapi/gstreamer-rtsp-server-1.0.vapi
@@ -553,6 +553,8 @@ namespace Gst {
[CCode (has_construct_function = false)]
public Session (string sessionid);
public void allow_expire ();
+ [Version (since = "1.20")]
+ public Gst.RTSPServer.SessionMedia? dup_media (string path, out int matched);
public GLib.List<Gst.RTSPServer.SessionMedia> filter
(Gst.RTSPServer.SessionFilterFunc? func);
public string? get_header ();
public unowned Gst.RTSPServer.SessionMedia? get_media (string path, out int matched);
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index dc3a6b036..efb567f36 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -199,6 +199,9 @@ namespace Gst {
public virtual Gst.Caps getcaps (Gst.Caps filter);
[NoWrapper]
public virtual Gst.FlowReturn handle_frame (owned Gst.Video.CodecFrame frame);
+ [NoWrapper]
+ [Version (since = "1.20")]
+ public virtual bool handle_missing_data (Gst.ClockTime timestamp, Gst.ClockTime
duration);
public Gst.FlowReturn have_frame ();
[Version (since = "1.20")]
public Gst.FlowReturn have_last_subframe (Gst.Video.CodecFrame frame);
@@ -251,6 +254,12 @@ namespace Gst {
public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
[NoAccessorMethod]
[Version (since = "1.20")]
+ public Gst.Video.DecoderRequestSyncPointFlags automatic_request_sync_point_flags {
get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public bool automatic_request_sync_points { get; set; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
public bool discard_corrupted_frames { get; set; }
[Version (since = "1.18")]
public int max_errors { get; set; }
@@ -614,6 +623,8 @@ namespace Gst {
[CCode (cheader_filename = "gst/video/video.h", type_cname = "GstVideoOrientationInterface",
type_id = "gst_video_orientation_get_type ()")]
[GIR (name = "VideoOrientation")]
public interface Orientation : GLib.Object {
+ [Version (since = "1.20")]
+ public static bool from_tag (Gst.TagList taglist, Gst.Video.OrientationMethod method);
public abstract bool get_hcenter (out int center);
public abstract bool get_hflip (out bool flip);
public abstract bool get_vcenter (out int center);
@@ -1074,7 +1085,7 @@ namespace Gst {
[Version (since = "1.20")]
public string? to_string ();
}
- [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CODEC_FRAME_FLAG_",
has_type_id = false)]
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_CODEC_FRAME_FLAG_",
type_id = "gst_video_codec_frame_flags_get_type ()")]
[Flags]
[GIR (name = "VideoCodecFrameFlags")]
public enum CodecFrameFlags {
@@ -1139,7 +1150,7 @@ namespace Gst {
@16_235;
public void offsets (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", cprefix =
"GST_VIDEO_DECODER_REQUEST_SYNC_POINT_", has_type_id = false)]
+ [CCode (cheader_filename = "gst/video/video.h", cprefix =
"GST_VIDEO_DECODER_REQUEST_SYNC_POINT_", type_id = "gst_video_decoder_request_sync_point_flags_get_type ()")]
[Flags]
[GIR (name = "VideoDecoderRequestSyncPointFlags")]
[Version (since = "1.20")]
@@ -1345,7 +1356,7 @@ namespace Gst {
NO_REF,
LAST
}
- [CCode (cheader_filename = "gst/video/video.h", cprefix =
"GST_VIDEO_GL_TEXTURE_ORIENTATION_X_", has_type_id = false)]
+ [CCode (cheader_filename = "gst/video/video.h", cprefix =
"GST_VIDEO_GL_TEXTURE_ORIENTATION_X_", type_id = "gst_video_gl_texture_orientation_get_type ()")]
[GIR (name = "VideoGLTextureOrientation")]
public enum GLTextureOrientation {
NORMAL_Y_NORMAL,
@@ -1353,7 +1364,7 @@ namespace Gst {
FLIP_Y_NORMAL,
FLIP_Y_FLIP
}
- [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_GL_TEXTURE_TYPE_",
has_type_id = false)]
+ [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_GL_TEXTURE_TYPE_",
type_id = "gst_video_gl_texture_type_get_type ()")]
[GIR (name = "VideoGLTextureType")]
public enum GLTextureType {
LUMINANCE,
@@ -2098,6 +2109,9 @@ namespace Gst {
[Version (replacement = "Navigation.query_set_commandsv")]
public static void navigation_query_set_commandsv (Gst.Query query, [CCode
(array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
[CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoOrientation.from_tag", since = "1.20")]
+ public static bool orientation_from_tag (Gst.TagList taglist, Gst.Video.OrientationMethod
method);
+ [CCode (cheader_filename = "gst/video/video.h")]
public static GLib.Type overlay_composition_meta_api_get_type ();
[CCode (cheader_filename = "gst/video/video.h")]
[Version (replacement = "VideoOverlayCompositionMeta.get_info")]
diff --git a/vapi/metadata/GstPbutils-1.0.metadata b/vapi/metadata/GstPbutils-1.0.metadata
index b67c60a86..3772449a7 100644
--- a/vapi/metadata/GstPbutils-1.0.metadata
+++ b/vapi/metadata/GstPbutils-1.0.metadata
@@ -5,5 +5,10 @@ pb_utils_* name="pb_utils_(.+)"
codec_utils_aac_* parent="Gst.PbUtils.Codec.AAC" name="codec_utils_aac_(.+)"
codec_utils_h264_* parent="Gst.PbUtils.Codec.H264" name="codec_utils_h264_(.+)"
+codec_utils_h264_get_profile_flags_level
+ .codec_data array array_length_idx=1
+ .profile out
+ .flags out
+ .level out
codec_utils_mpeg4video_* parent="Gst.PbUtils.Codec.MPEG4Video" name="codec_utils_mpeg4video_(.+)"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]