[vala/staging: 4/5] gstreamer-1.0: Update from 1.13+ git master



commit ada0199c99891986abf27550ff9d5c0963cff998
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jan 2 13:07:42 2018 +0100

    gstreamer-1.0: Update from 1.13+ git master

 vapi/gstreamer-1.0.vapi            |   22 +++++++---------------
 vapi/gstreamer-allocators-1.0.vapi |   12 ++++++++++++
 vapi/gstreamer-check-1.0.vapi      |    4 ++--
 vapi/gstreamer-player-1.0.vapi     |    6 +++---
 4 files changed, 24 insertions(+), 20 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index a2fee30..e7c4abf 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1302,8 +1302,8 @@ namespace Gst {
                public bool seek_simple (Gst.Format format, Gst.SeekFlags seek_flags, int64 seek_pos);
                public virtual bool send_event (owned Gst.Event event);
                public void set_base_time (Gst.ClockTime time);
-               public virtual void set_bus (Gst.Bus bus);
-               public virtual bool set_clock (Gst.Clock clock);
+               public virtual void set_bus (Gst.Bus? bus);
+               public virtual bool set_clock (Gst.Clock? clock);
                public virtual void set_context (Gst.Context context);
                public bool set_locked_state (bool locked_state);
                [CCode (cname = "gst_element_class_set_metadata")]
@@ -1971,7 +1971,7 @@ namespace Gst {
        public class Plugin : Gst.Object {
                [CCode (has_construct_function = false)]
                protected Plugin ();
-               public void add_dependency (string? env_vars, string? paths, string? names, 
Gst.PluginDependencyFlags flags);
+               public void add_dependency ([CCode (array_length = false, array_null_terminated = true)] 
string[]? env_vars, [CCode (array_length = false, array_null_terminated = true)] string[]? paths, [CCode 
(array_length = false, array_null_terminated = true)] string[]? names, Gst.PluginDependencyFlags flags);
                public void add_dependency_simple (string? env_vars, string? paths, string? names, 
Gst.PluginDependencyFlags flags);
                public unowned Gst.Structure? get_cache_data ();
                public unowned string get_description ();
@@ -2255,27 +2255,18 @@ namespace Gst {
                public int to_stream_time_full (Gst.Format format, uint64 position, out uint64 stream_time);
        }
        [CCode (cheader_filename = "gst/gst.h", type_id = "gst_stream_get_type ()")]
+       [Version (since = "1.10")]
        public class Stream : Gst.Object {
                [CCode (has_construct_function = false)]
-               [Version (since = "1.10")]
                public Stream (string? stream_id, Gst.Caps? caps, Gst.StreamType type, Gst.StreamFlags flags);
-               [Version (since = "1.10")]
                public Gst.Caps? get_caps ();
-               [Version (since = "1.10")]
                public Gst.StreamFlags get_stream_flags ();
-               [Version (since = "1.10")]
                public unowned string? get_stream_id ();
-               [Version (since = "1.10")]
                public Gst.StreamType get_stream_type ();
-               [Version (since = "1.10")]
                public Gst.TagList? get_tags ();
-               [Version (since = "1.10")]
                public void set_caps (Gst.Caps? caps);
-               [Version (since = "1.10")]
                public void set_stream_flags (Gst.StreamFlags flags);
-               [Version (since = "1.10")]
                public void set_stream_type (Gst.StreamType stream_type);
-               [Version (since = "1.10")]
                public void set_tags (Gst.TagList? tags);
                public Gst.Caps caps { owned get; set; }
                public Gst.StreamFlags stream_flags { get; set construct; }
@@ -2384,7 +2375,7 @@ namespace Gst {
                protected SystemClock ();
                public static Gst.Clock obtain ();
                [Version (since = "1.4")]
-               public static void set_default (Gst.Clock new_clock);
+               public static void set_default (Gst.Clock? new_clock);
                [NoAccessorMethod]
                public Gst.ClockType clock_type { get; set; }
        }
@@ -2524,6 +2515,7 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                protected TracerFactory ();
                public static GLib.List<Gst.TracerFactory> get_list ();
+               public GLib.Type get_tracer_type ();
        }
        [CCode (cheader_filename = "gst/gst.h", type_id = "gst_tracer_record_get_type ()")]
        public class TracerRecord : Gst.Object {
@@ -3565,13 +3557,13 @@ namespace Gst {
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STREAM_TYPE_", type_id = 
"gst_stream_type_get_type ()")]
        [Flags]
+       [Version (since = "1.10")]
        public enum StreamType {
                UNKNOWN,
                AUDIO,
                VIDEO,
                CONTAINER,
                TEXT;
-               [Version (since = "1.10")]
                public static unowned string get_name (Gst.StreamType stype);
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STRUCTURE_CHANGE_TYPE_PAD_", type_id = 
"gst_structure_change_type_get_type ()")]
diff --git a/vapi/gstreamer-allocators-1.0.vapi b/vapi/gstreamer-allocators-1.0.vapi
index 7c35c9c..b86bfd9 100644
--- a/vapi/gstreamer-allocators-1.0.vapi
+++ b/vapi/gstreamer-allocators-1.0.vapi
@@ -21,6 +21,12 @@ namespace Gst {
                        public FdAllocator ();
                        public static Gst.Memory alloc (Gst.Allocator allocator, int fd, size_t size, 
Gst.Allocators.FdMemoryFlags flags);
                }
+               [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstPhysMemoryAllocator", 
lower_case_cprefix = "gst_phys_memory_allocator_", type_cname = "GstPhysMemoryAllocatorInterface", type_id = 
"gst_phys_memory_allocator_get_type ()")]
+               [GIR (name = "PhysMemoryAllocator")]
+               public interface PhysMemoryAllocator : Gst.Allocator {
+                       [NoWrapper]
+                       public abstract uintptr get_phys_addr (Gst.Memory mem);
+               }
                [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "GstFdMemoryFlags", cprefix 
= "GST_FD_MEMORY_FLAG_", has_type_id = false)]
                [Flags]
                [GIR (name = "FdMemoryFlags")]
@@ -50,5 +56,11 @@ namespace Gst {
                [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_fd_memory")]
                [Version (since = "1.6")]
                public static bool is_fd_memory (Gst.Memory mem);
+               [CCode (cheader_filename = "gst/allocators/allocators.h", cname = "gst_is_phys_memory")]
+               [Version (since = "1.14")]
+               public static bool is_phys_memory (Gst.Memory mem);
+               [CCode (cheader_filename = "gst/allocators/allocators.h", cname = 
"gst_phys_memory_get_phys_addr")]
+               [Version (since = "1.14")]
+               public static uintptr phys_memory_get_phys_addr (Gst.Memory mem);
        }
 }
diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi
index 381d04a..00b3ad4 100644
--- a/vapi/gstreamer-check-1.0.vapi
+++ b/vapi/gstreamer-check-1.0.vapi
@@ -119,9 +119,9 @@ namespace Gst {
                        [CCode (cname = "gst_harness_pull_upstream_event")]
                        public Gst.Event pull_upstream_event ();
                        [CCode (cname = "gst_harness_push")]
-                       public Gst.FlowReturn push (Gst.Buffer buffer);
+                       public Gst.FlowReturn push (owned Gst.Buffer buffer);
                        [CCode (cname = "gst_harness_push_and_pull")]
-                       public Gst.Buffer push_and_pull (Gst.Buffer buffer);
+                       public Gst.Buffer push_and_pull (owned Gst.Buffer buffer);
                        [CCode (cname = "gst_harness_push_event")]
                        public bool push_event (Gst.Event event);
                        [CCode (cname = "gst_harness_push_from_src")]
diff --git a/vapi/gstreamer-player-1.0.vapi b/vapi/gstreamer-player-1.0.vapi
index a456090..8b8c38d 100644
--- a/vapi/gstreamer-player-1.0.vapi
+++ b/vapi/gstreamer-player-1.0.vapi
@@ -11,7 +11,7 @@ namespace Gst {
                public static string config_get_user_agent (Gst.Structure config);
                public static void config_set_position_update_interval (Gst.Structure config, uint interval);
                [Version (since = "1.12")]
-               public void config_set_seek_accurate (bool accurate);
+               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 unowned GLib.List<Gst.PlayerAudioInfo> get_audio_streams (Gst.PlayerMediaInfo 
info);
                public int64 get_audio_video_offset ();
@@ -26,7 +26,7 @@ namespace Gst {
                [Version (since = "1.10")]
                public Gst.Video.MultiviewFlags get_multiview_flags ();
                [Version (since = "1.10")]
-               public Gst.Video.MultiviewMode get_multiview_mode ();
+               public Gst.Video.MultiviewFramePacking get_multiview_mode ();
                public bool get_mute ();
                public Gst.Element get_pipeline ();
                public Gst.ClockTime get_position ();
@@ -49,7 +49,7 @@ namespace Gst {
                [Version (since = "1.10")]
                public void set_multiview_flags (Gst.Video.MultiviewFlags flags);
                [Version (since = "1.10")]
-               public void set_multiview_mode (Gst.Video.MultiviewMode mode);
+               public void set_multiview_mode (Gst.Video.MultiviewFramePacking mode);
                public void set_mute (bool val);
                public void set_rate (double rate);
                public bool set_subtitle_track (int stream_index);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]