[vala/staging] gstreamer: Update from 1.19.0+ git master



commit c5679399e28ac620842e5e0926b730a2d36c11e6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Sep 28 10:32:00 2020 +0200

    gstreamer: Update from 1.19.0+ git master

 vapi/gstreamer-1.0.vapi       | 28 ++++++++++++++++++++++++++++
 vapi/gstreamer-video-1.0.vapi | 34 +++++++++++++++++++++++++++++++---
 2 files changed, 59 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 4358e2472..9a428d67c 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -676,6 +676,8 @@ namespace Gst {
                public Gst.ClockTime pts;
                [CCode (has_construct_function = false)]
                public Buffer ();
+               [Version (since = "1.20")]
+               public unowned Gst.CustomMeta? add_custom_meta (string name);
                public unowned Gst.Meta? add_meta (Gst.MetaInfo info, void* @params);
                [Version (since = "1.6")]
                public unowned Gst.ParentBufferMeta? add_parent_buffer_meta (Gst.Buffer @ref);
@@ -702,6 +704,8 @@ namespace Gst {
                public bool find_memory (size_t offset, size_t size, out uint idx, out uint length, out 
size_t skip);
                public bool foreach_meta (Gst.BufferForeachMetaFunc func);
                public Gst.Memory? get_all_memory ();
+               [Version (since = "1.20")]
+               public unowned Gst.CustomMeta? get_custom_meta (string name);
                [Version (since = "1.10")]
                public Gst.BufferFlags get_flags ();
                [Version (since = "1.2")]
@@ -1424,6 +1428,8 @@ namespace Gst {
                public void parse_caps (out unowned Gst.Caps caps);
                public void parse_flush_stop (out bool reset_time);
                public void parse_gap (out Gst.ClockTime timestamp, out Gst.ClockTime duration);
+               [Version (since = "1.20")]
+               public void parse_gap_flags (out Gst.GapFlags flags);
                [Version (since = "1.2")]
                public bool parse_group_id (out uint group_id);
                [Version (since = "1.18")]
@@ -1471,6 +1477,8 @@ namespace Gst {
                [CCode (has_construct_function = false)]
                [Version (since = "1.10")]
                public Event.select_streams (GLib.List<string> streams);
+               [Version (since = "1.20")]
+               public void set_gap_flags (Gst.GapFlags flags);
                [Version (since = "1.2")]
                public void set_group_id (uint group_id);
                [Version (since = "1.4")]
@@ -2855,6 +2863,13 @@ namespace Gst {
        public struct ClockTimeDiff : int64 {
        }
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
+       [Version (since = "1.20")]
+       public struct CustomMeta {
+               public Gst.Meta meta;
+               public unowned Gst.Structure get_structure ();
+               public bool has_name (string name);
+       }
+       [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
        public struct DebugCategory {
                [Version (deprecated = true)]
                public void free ();
@@ -2902,6 +2917,8 @@ namespace Gst {
                [Version (since = "1.16")]
                public uint64 get_seqnum ();
                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);
+               [Version (since = "1.20")]
+               public static unowned Gst.MetaInfo? register_custom (string name, [CCode (array_length = 
false, array_null_terminated = true)] string[] tags, owned Gst.CustomMetaTransformFunction? transform_func);
        }
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
        public struct MetaInfo {
@@ -2911,6 +2928,8 @@ namespace Gst {
                public weak Gst.MetaInitFunction init_func;
                public weak Gst.MetaFreeFunction free_func;
                public weak Gst.MetaTransformFunction transform_func;
+               [Version (since = "1.20")]
+               public bool is_custom ();
        }
        [CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
        public struct MetaTransformCopy {
@@ -3290,6 +3309,12 @@ namespace Gst {
                public static Gst.Format register (string nick, string description);
                public GLib.Quark to_quark ();
        }
+       [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_GAP_FLAG_MISSING_", type_id = 
"gst_gap_flags_get_type ()")]
+       [Flags]
+       [Version (since = "1.20")]
+       public enum GapFlags {
+               DATA
+       }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_ITERATOR_ITEM_", type_id = 
"gst_iterator_item_get_type ()")]
        public enum IteratorItem {
                SKIP,
@@ -3916,6 +3941,9 @@ namespace Gst {
        public delegate bool ControlSourceGetValue (Gst.ControlSource self, Gst.ClockTime timestamp, double 
value);
        [CCode (cheader_filename = "gst/gst.h", has_target = false)]
        public delegate bool ControlSourceGetValueArray (Gst.ControlSource self, Gst.ClockTime timestamp, 
Gst.ClockTime interval, uint n_values, double values);
+       [CCode (cheader_filename = "gst/gst.h", instance_pos = 5.9)]
+       [Version (since = "1.20")]
+       public delegate bool CustomMetaTransformFunction (Gst.Buffer transbuf, Gst.CustomMeta meta, 
Gst.Buffer buffer, GLib.Quark type, void* data);
        [CCode (cheader_filename = "gst/gst.h", has_target = false)]
        public delegate void DebugFuncPtr ();
        [CCode (cheader_filename = "gst/gst.h", instance_pos = 1.9)]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 8730c72ed..07142f9b5 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -155,6 +155,8 @@ namespace Gst {
                        public int get_max_errors ();
                        [Version (since = "1.4")]
                        public bool get_needs_format ();
+                       [Version (since = "1.20")]
+                       public bool get_needs_sync_point ();
                        public Gst.Video.CodecFrame get_oldest_frame ();
                        public Gst.Video.CodecState get_output_state ();
                        public bool get_packetized ();
@@ -179,6 +181,8 @@ namespace Gst {
                        public Gst.Caps proxy_getcaps (Gst.Caps? caps, Gst.Caps? filter);
                        [Version (since = "1.2.2")]
                        public void release_frame (owned Gst.Video.CodecFrame frame);
+                       [Version (since = "1.20")]
+                       public void request_sync_point (Gst.Video.CodecFrame frame, 
Gst.Video.DecoderRequestSyncPointFlags flags);
                        [NoWrapper]
                        public virtual bool reset (bool hard);
                        public void set_estimate_rate (bool enabled);
@@ -190,6 +194,8 @@ namespace Gst {
                        public void set_max_errors (int num);
                        [Version (since = "1.4")]
                        public void set_needs_format (bool enabled);
+                       [Version (since = "1.20")]
+                       public void set_needs_sync_point (bool enabled);
                        public Gst.Video.CodecState set_output_state (Gst.Video.Format fmt, uint width, uint 
height, Gst.Video.CodecState? reference);
                        public void set_packetized (bool packetized);
                        [Version (since = "1.6")]
@@ -208,9 +214,15 @@ namespace Gst {
                        public virtual bool stop ();
                        [NoWrapper]
                        public virtual bool transform_meta (Gst.Video.CodecFrame frame, Gst.Meta meta);
+                       [NoAccessorMethod]
+                       [Version (since = "1.20")]
+                       public bool discard_corrupted_frames { get; set; }
                        [Version (since = "1.18")]
                        public int max_errors { get; set; }
                        [NoAccessorMethod]
+                       [Version (since = "1.20")]
+                       public uint64 min_force_key_unit_interval { get; set; }
+                       [NoAccessorMethod]
                        [Version (since = "1.18")]
                        public bool qos { get; set; }
                }
@@ -996,7 +1008,9 @@ namespace Gst {
                        DECODE_ONLY,
                        SYNC_POINT,
                        FORCE_KEYFRAME,
-                       FORCE_KEYFRAME_HEADERS
+                       FORCE_KEYFRAME_HEADERS,
+                       [Version (since = "1.20")]
+                       CORRUPTED
                }
                [CCode (cheader_filename = "gst/video/video.h", cname = "GstColorBalanceType", cprefix = 
"GST_COLOR_BALANCE_", type_id = "gst_color_balance_type_get_type ()")]
                [GIR (name = "ColorBalanceType")]
@@ -1039,6 +1053,14 @@ namespace Gst {
                        @0_255,
                        @16_235
                }
+               [CCode (cheader_filename = "gst/video/video.h", cprefix = 
"GST_VIDEO_DECODER_REQUEST_SYNC_POINT_", has_type_id = false)]
+               [Flags]
+               [GIR (name = "VideoDecoderRequestSyncPointFlags")]
+               [Version (since = "1.20")]
+               public enum DecoderRequestSyncPointFlags {
+                       DISCARD_INPUT,
+                       CORRUPT_OUTPUT
+               }
                [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_DITHER_FLAG_", type_id = 
"gst_video_dither_flags_get_type ()")]
                [Flags]
                [GIR (name = "VideoDitherFlags")]
@@ -1727,10 +1749,10 @@ namespace Gst {
                [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 unowned int offset[4], [CCode (array_length = false)] out unowned 
int scale[4]);
                [CCode (cheader_filename = "gst/video/video.h")]
-               [Version (since = "1.6")]
+               [Version (deprecated = true, since = "1.6")]
                public static double color_transfer_decode (Gst.Video.TransferFunction func, double val);
                [CCode (cheader_filename = "gst/video/video.h")]
-               [Version (since = "1.6")]
+               [Version (deprecated = true, since = "1.6")]
                public static double color_transfer_encode (Gst.Video.TransferFunction func, double val);
                [CCode (cheader_filename = "gst/video/video.h")]
                public static Gst.Sample convert_sample (Gst.Sample sample, Gst.Caps to_caps, Gst.ClockTime 
timeout) throws GLib.Error;
@@ -1904,6 +1926,12 @@ namespace Gst {
                [CCode (cheader_filename = "gst/video/video.h")]
                public static unowned Gst.MetaInfo? time_code_meta_get_info ();
                [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static double transfer_function_decode (Gst.Video.TransferFunction func, double val);
+               [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static double transfer_function_encode (Gst.Video.TransferFunction func, double val);
+               [CCode (cheader_filename = "gst/video/video.h")]
                [Version (since = "1.18")]
                public static Gst.Video.TransferFunction transfer_function_from_iso (uint value);
                [CCode (cheader_filename = "gst/video/video.h")]


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