]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-1.0: Update from 1.13+ git master
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 2 Jan 2018 12:07:42 +0000 (13:07 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 6 Jan 2018 18:23:42 +0000 (19:23 +0100)
vapi/gstreamer-1.0.vapi
vapi/gstreamer-allocators-1.0.vapi
vapi/gstreamer-check-1.0.vapi
vapi/gstreamer-player-1.0.vapi

index 964bc184978e45836937d2db06b04f34b3bf08cc..5546da193838127e5182e3ebfbaaec117a99e154 100644 (file)
@@ -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 ()")]
index 7c35c9c0a6ccf8e7987016908f091e9702b86687..b86bfd9ddaaf640c55efb5841500bf67fc78eb23 100644 (file)
@@ -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);
        }
 }
index 381d04aff8da39cc5329f9e7d1fddd7704f27202..00b3ad45e5f55a59c4f57db51b3159e33d7d3ccc 100644 (file)
@@ -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")]
index a456090f9533ed1c44c0ef070f9731f1f7c5cce9..8b8c38df6566b04ff17ff70bbe47242563818729 100644 (file)
@@ -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);