Skip to content

Commit

Permalink
gstreamer: Update from 1.17.0+ git master
Browse files Browse the repository at this point in the history
  • Loading branch information
ricotz committed Nov 7, 2019
1 parent 6ede8e0 commit b0312d3
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 5 deletions.
7 changes: 5 additions & 2 deletions vapi/gst-editing-services-1.0.vapi
Expand Up @@ -252,8 +252,8 @@ namespace GES {
public bool move (GES.Marker marker, Gst.ClockTime position);
public bool remove (GES.Marker marker);
public uint size ();
public signal void marker_added (uint64 object, GES.Marker p0);
public signal void marker_moved (uint64 object, GES.Marker p0);
public signal void marker_added (uint64 position, GES.Marker marker);
public signal void marker_moved (uint64 previous_position, uint64 new_position, GES.Marker marker);
public signal void marker_removed (GES.Marker marker);
}
[CCode (cheader_filename = "ges/ges.h", type_id = "ges_multi_file_source_get_type ()")]
Expand Down Expand Up @@ -833,6 +833,7 @@ namespace GES {
public bool register_meta_string (GES.MetaFlag flags, string meta_item, string? value);
public bool register_meta_uint (GES.MetaFlag flags, string meta_item, uint value);
public bool register_meta_uint64 (GES.MetaFlag flags, string meta_item, uint64 value);
public bool register_static_meta (GES.MetaFlag flags, string meta_item, GLib.Type type);
public bool set_boolean (string meta_item, bool value);
public bool set_date (string meta_item, GLib.Date value);
public bool set_date_time (string meta_item, Gst.DateTime value);
Expand Down Expand Up @@ -1077,6 +1078,8 @@ namespace GES {
public const string META_FORMATTER_VERSION;
[CCode (cheader_filename = "ges/ges.h", cname = "GES_META_FORMAT_VERSION")]
public const string META_FORMAT_VERSION;
[CCode (cheader_filename = "ges/ges.h", cname = "GES_META_MARKER_COLOR")]
public const string META_MARKER_COLOR;
[CCode (cheader_filename = "ges/ges.h", cname = "GES_META_VOLUME")]
public const string META_VOLUME;
[CCode (cheader_filename = "ges/ges.h", cname = "GES_META_VOLUME_DEFAULT")]
Expand Down
25 changes: 24 additions & 1 deletion vapi/gstreamer-1.0.vapi
Expand Up @@ -145,6 +145,8 @@ namespace Gst {
public const Gst.ElementFactoryListType ENCRYPTOR;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_FORMATTER")]
public const Gst.ElementFactoryListType FORMATTER;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_HARDWARE")]
public const Gst.ElementFactoryListType HARDWARE;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS")]
public const Gst.ElementFactoryListType MAX_ELEMENTS;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_ELEMENT_FACTORY_TYPE_MEDIA_ANY")]
Expand Down Expand Up @@ -1391,6 +1393,12 @@ namespace Gst {
public unowned Gst.Structure? get_structure ();
public bool has_name (string name);
[CCode (has_construct_function = false)]
[Version (since = "1.18")]
public Event.instant_rate_change (double rate_multiplier, Gst.SegmentFlags new_flags);
[CCode (has_construct_function = false)]
[Version (since = "1.18")]
public Event.instant_rate_sync_time (double rate, Gst.ClockTime running_time, Gst.ClockTime upstream_running_time);
[CCode (has_construct_function = false)]
public Event.latency (Gst.ClockTime latency);
[CCode (has_construct_function = false)]
public Event.navigation (owned Gst.Structure structure);
Expand All @@ -1400,6 +1408,10 @@ namespace Gst {
public void parse_gap (out Gst.ClockTime timestamp, out Gst.ClockTime duration);
[Version (since = "1.2")]
public bool parse_group_id (out uint group_id);
[Version (since = "1.18")]
public void parse_instant_rate_change (out double rate_multiplier, out Gst.SegmentFlags new_flags);
[Version (since = "1.18")]
public void parse_instant_rate_sync_time (double rate, out Gst.ClockTime running_time, out Gst.ClockTime upstream_running_time);
public void parse_latency (out Gst.ClockTime latency);
[Version (since = "1.6")]
public void parse_protection (out unowned string system_id, out unowned Gst.Buffer data, out unowned string origin);
Expand Down Expand Up @@ -1619,6 +1631,9 @@ namespace Gst {
[Version (since = "1.10")]
public Message.info_with_details (Gst.Object? src, GLib.Error error, string debug, owned Gst.Structure? details);
[CCode (has_construct_function = false)]
[Version (since = "1.18")]
public Message.instant_rate_request (Gst.Object src, double rate_multiplier);
[CCode (has_construct_function = false)]
public Message.latency (Gst.Object? src);
[CCode (has_construct_function = false)]
[Version (since = "1.2")]
Expand Down Expand Up @@ -1648,6 +1663,8 @@ namespace Gst {
public void parse_info (out GLib.Error gerror, out string debug);
[Version (since = "1.10")]
public void parse_info_details (out unowned Gst.Structure structure);
[Version (since = "1.18")]
public void parse_instant_rate_request (out double rate_multiplier);
public void parse_new_clock (out unowned Gst.Clock clock);
public void parse_progress (out Gst.ProgressType type, out string code, out string text);
[Version (since = "1.10")]
Expand Down Expand Up @@ -3172,6 +3189,7 @@ namespace Gst {
PROTECTION,
SEGMENT_DONE,
GAP,
INSTANT_RATE_CHANGE,
QOS,
SEEK,
NAVIGATION,
Expand All @@ -3180,6 +3198,7 @@ namespace Gst {
RECONFIGURE,
TOC_SELECT,
SELECT_STREAMS,
INSTANT_RATE_SYNC_TIME,
CUSTOM_UPSTREAM,
CUSTOM_DOWNSTREAM,
CUSTOM_DOWNSTREAM_OOB,
Expand Down Expand Up @@ -3316,6 +3335,7 @@ namespace Gst {
STREAMS_SELECTED,
REDIRECT,
DEVICE_CHANGED,
INSTANT_RATE_REQUEST,
ANY;
public unowned string get_name ();
public GLib.Quark to_quark ();
Expand Down Expand Up @@ -3559,7 +3579,8 @@ namespace Gst {
SNAP_NEAREST,
TRICKMODE_KEY_UNITS,
TRICKMODE_NO_AUDIO,
TRICKMODE_FORWARD_PREDICTED
TRICKMODE_FORWARD_PREDICTED,
INSTANT_RATE_CHANGE
}
[CCode (cheader_filename = "gst/gst.h", cprefix = "GST_SEEK_TYPE_", type_id = "gst_seek_type_get_type ()")]
public enum SeekType {
Expand Down Expand Up @@ -4042,6 +4063,8 @@ namespace Gst {
public const Gst.QueryTypeFlags QUERY_TYPE_BOTH;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_SECOND")]
public const Gst.ClockTimeDiff SECOND;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_SEGMENT_INSTANT_FLAGS")]
public const int SEGMENT_INSTANT_FLAGS;
[CCode (cheader_filename = "gst/gst.h", cname = "GST_SEQNUM_INVALID")]
[Version (since = "1.14")]
public const int SEQNUM_INVALID;
Expand Down
3 changes: 3 additions & 0 deletions vapi/gstreamer-check-1.0.vapi
Expand Up @@ -121,6 +121,9 @@ namespace Gst {
public Gst.Buffer pull ();
[CCode (cname = "gst_harness_pull_event")]
public Gst.Event pull_event ();
[CCode (cname = "gst_harness_pull_until_eos")]
[Version (since = "1.18")]
public bool pull_until_eos (out Gst.Buffer buf);
[CCode (cname = "gst_harness_pull_upstream_event")]
public Gst.Event pull_upstream_event ();
[CCode (cname = "gst_harness_push")]
Expand Down
2 changes: 2 additions & 0 deletions vapi/gstreamer-pbutils-1.0.vapi
Expand Up @@ -204,6 +204,7 @@ namespace Gst {
public unowned string get_preset ();
public unowned string get_preset_name ();
public Gst.Caps get_restriction ();
public bool get_single_segment ();
public unowned string get_type_nick ();
public bool is_enabled ();
public bool is_equal (Gst.PbUtils.EncodingProfile b);
Expand All @@ -217,6 +218,7 @@ namespace Gst {
public void set_preset (string? preset);
public void set_preset_name (string? preset_name);
public void set_restriction (owned Gst.Caps? restriction);
public void set_single_segment (bool single_segment);
[NoAccessorMethod]
public Gst.Caps restriction_caps { owned get; set; }
}
Expand Down
1 change: 1 addition & 0 deletions vapi/gstreamer-rtp-1.0.vapi
Expand Up @@ -559,6 +559,7 @@ namespace Gst {
RTPFB_TYPE_TMMBR,
RTPFB_TYPE_TMMBN,
RTPFB_TYPE_RTCP_SR_REQ,
RTPFB_TYPE_TWCC,
PSFB_TYPE_PLI,
PSFB_TYPE_SLI,
PSFB_TYPE_RPSI,
Expand Down
10 changes: 8 additions & 2 deletions vapi/gstreamer-rtsp-server-1.0.vapi
Expand Up @@ -232,6 +232,8 @@ namespace Gst {
public bool is_shared ();
public bool is_stop_on_disconnect ();
public bool is_time_provider ();
[Version (since = "1.18")]
public void @lock ();
public uint n_streams ();
public virtual bool prepare (owned Gst.RTSPServer.Thread? thread);
[NoWrapper]
Expand Down Expand Up @@ -277,6 +279,8 @@ namespace Gst {
public virtual bool setup_sdp (Gst.SDP.Message sdp, Gst.RTSPServer.SDPInfo info);
public virtual bool suspend ();
public void take_pipeline (owned Gst.Pipeline pipeline);
[Version (since = "1.18")]
public void @unlock ();
public virtual bool unprepare ();
public virtual bool unsuspend ();
public void use_time_provider (bool time_provider);
Expand Down Expand Up @@ -546,6 +550,8 @@ namespace Gst {
public bool release_media (Gst.RTSPServer.SessionMedia media);
public void set_timeout (uint timeout);
public void touch ();
[NoAccessorMethod]
public uint extra_timeout { get; set; }
public string sessionid { get; construct; }
public uint timeout { get; set; }
[NoAccessorMethod]
Expand Down Expand Up @@ -901,8 +907,8 @@ namespace Gst {
public delegate Gst.RTSPServer.FilterResult ClientSessionFilterFunc (Gst.RTSPServer.Client client, Gst.RTSPServer.Session sess);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPKeepAliveFunc", instance_pos = 0.9)]
public delegate void KeepAliveFunc ();
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMessageSentFunc", instance_pos = 0.9)]
public delegate void MessageSentFunc ();
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPMessageSentFunc", instance_pos = 1.9)]
public delegate void MessageSentFunc (Gst.RTSPServer.StreamTransport trans);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSendFunc", instance_pos = 2.9)]
public delegate bool SendFunc (Gst.Buffer buffer, uint8 channel);
[CCode (cheader_filename = "gst/rtsp-server/rtsp-server.h", cname = "GstRTSPSendListFunc", instance_pos = 2.9)]
Expand Down
12 changes: 12 additions & 0 deletions vapi/gstreamer-video-1.0.vapi
Expand Up @@ -206,6 +206,9 @@ namespace Gst {
public virtual bool stop ();
[NoWrapper]
public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
[NoAccessorMethod]
[Version (since = "1.18")]
public bool qos { get; set; }
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
[Compact]
Expand Down Expand Up @@ -327,6 +330,8 @@ namespace Gst {
[Version (since = "1.6")]
public Info ();
public bool align (Gst.Video.Alignment align);
[Version (since = "1.18")]
public bool align_full (Gst.Video.Alignment align, out size_t plane_size);
public bool convert (Gst.Format src_format, int64 src_value, Gst.Format dest_format, out int64 dest_value);
[Version (since = "1.6")]
public Gst.Video.Info copy ();
Expand Down Expand Up @@ -783,7 +788,14 @@ namespace Gst {
public weak size_t offset[4];
[CCode (array_length = false)]
public weak int stride[4];
public Gst.Video.Alignment alignment;
[Version (since = "1.18")]
public bool get_plane_height (out uint plane_height);
[Version (since = "1.18")]
public bool get_plane_size (out size_t plane_size);
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);
public bool unmap (uint plane, Gst.MapInfo info);
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
Expand Down

0 comments on commit b0312d3

Please sign in to comment.