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



commit fbb9a0732faac4c3c954814b6b155fbae9d7c40c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jan 4 10:45:45 2021 +0100

    gstreamer: Update from 1.19.0+ git master

 vapi/gstreamer-app-1.0.vapi   |   6 ++-
 vapi/gstreamer-video-1.0.vapi | 100 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi
index e968e01af..47dee43ea 100644
--- a/vapi/gstreamer-app-1.0.vapi
+++ b/vapi/gstreamer-app-1.0.vapi
@@ -100,10 +100,12 @@ namespace Gst {
                        public virtual signal void enough_data ();
                        public virtual signal void need_data (uint length);
                        [CCode (cname = "push-buffer")]
-                       public signal Gst.FlowReturn on_push_buffer (Gst.Buffer object);
+                       public signal Gst.FlowReturn on_push_buffer (Gst.Buffer buffer);
                        [CCode (cname = "push-buffer-list")]
-                       public signal Gst.FlowReturn on_push_buffer_list (Gst.BufferList object);
+                       [Version (since = "1.14")]
+                       public signal Gst.FlowReturn on_push_buffer_list (Gst.BufferList buffer_list);
                        [HasEmitter]
+                       [Version (since = "1.6")]
                        public virtual signal Gst.FlowReturn push_sample (Gst.Sample sample);
                        public virtual signal bool seek_data (uint64 offset);
                }
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 9e356ba8b..d11e88cdb 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -675,6 +675,39 @@ namespace Gst {
                        public double By;
                }
                [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+               [GIR (name = "VideoColorVolumeTransformation")]
+               [Version (since = "1.20")]
+               public struct ColorVolumeTransformation {
+                       public uint16 window_upper_left_corner_x;
+                       public uint16 window_upper_left_corner_y;
+                       public uint16 window_lower_right_corner_x;
+                       public uint16 window_lower_right_corner_y;
+                       public uint16 center_of_ellipse_x;
+                       public uint16 center_of_ellipse_y;
+                       public uint8 rotation_angle;
+                       public uint16 semimajor_axis_internal_ellipse;
+                       public uint16 semimajor_axis_external_ellipse;
+                       public uint16 semiminor_axis_external_ellipse;
+                       public uint8 overlap_process_option;
+                       [CCode (array_length = false)]
+                       public weak uint32 maxscl[3];
+                       public uint32 average_maxrgb;
+                       public uint8 num_distribution_maxrgb_percentiles;
+                       [CCode (array_length = false)]
+                       public weak uint8 distribution_maxrgb_percentages[16];
+                       [CCode (array_length_cname = "num_distribution_maxrgb_percentiles", array_length_type 
= "guint8")]
+                       public weak uint32 distribution_maxrgb_percentiles[16];
+                       public uint16 fraction_bright_pixels;
+                       public uint8 tone_mapping_flag;
+                       public uint16 knee_point_x;
+                       public uint16 knee_point_y;
+                       public uint8 num_bezier_curve_anchors;
+                       [CCode (array_length_cname = "num_bezier_curve_anchors", array_length_type = 
"guint8")]
+                       public weak uint16 bezier_curve_anchors[16];
+                       public uint8 color_saturation_mapping_flag;
+                       public uint8 color_saturation_weight;
+               }
+               [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
                [GIR (name = "VideoColorimetry")]
                public struct Colorimetry {
                        public Gst.Video.ColorRange range;
@@ -769,6 +802,36 @@ namespace Gst {
                        public bool upload (uint texture_id);
                }
                [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+               [GIR (name = "VideoHDR10Plus")]
+               [Version (since = "1.20")]
+               public struct HDR10Plus {
+                       public uint8 application_identifier;
+                       public uint8 application_version;
+                       public uint8 num_windows;
+                       [CCode (array_length = false)]
+                       public weak Gst.Video.ColorVolumeTransformation processing_window[1];
+                       public uint32 targeted_system_display_maximum_luminance;
+                       public uint8 targeted_system_display_actual_peak_luminance_flag;
+                       public uint8 num_rows_targeted_system_display_actual_peak_luminance;
+                       public uint8 num_cols_targeted_system_display_actual_peak_luminance;
+                       [CCode (array_length = false)]
+                       public weak uint8 targeted_system_display_actual_peak_luminance[625];
+                       public uint8 mastering_display_actual_peak_luminance_flag;
+                       public uint8 num_rows_mastering_display_actual_peak_luminance;
+                       public uint8 num_cols_mastering_display_actual_peak_luminance;
+                       [CCode (array_length = false)]
+                       public weak uint8 mastering_display_actual_peak_luminance[625];
+               }
+               [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+               [GIR (name = "VideoHDRMeta")]
+               [Version (since = "1.20")]
+               public struct HDRMeta {
+                       public Gst.Meta meta;
+                       public Gst.Video.HDRFormat format;
+                       public uint8 data;
+                       public size_t size;
+               }
+               [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
                [GIR (name = "VideoMasteringDisplayInfo")]
                [Version (since = "1.18")]
                public struct MasteringDisplayInfo {
@@ -1269,6 +1332,15 @@ namespace Gst {
                        NONE,
                        REMAP
                }
+               [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_HDR_FORMAT_", 
has_type_id = false)]
+               [GIR (name = "VideoHDRFormat")]
+               [Version (since = "1.20")]
+               public enum HDRFormat {
+                       NONE,
+                       HDR10,
+                       HDR10_PLUS,
+                       DOLBY_VISION
+               }
                [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_INTERLACE_MODE_", 
type_id = "gst_video_interlace_mode_get_type ()")]
                [GIR (name = "VideoInterlaceMode")]
                public enum InterlaceMode {
@@ -1616,6 +1688,18 @@ namespace Gst {
                public const string FORMATS_ALL;
                [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_FPS_RANGE")]
                public const string FPS_RANGE;
+               [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_HDR10_PLUS_MAX_BYTES")]
+               [Version (since = "1.20")]
+               public const int HDR10_PLUS_MAX_BYTES;
+               [CCode (cheader_filename = "gst/video/video.h", cname = 
"GST_VIDEO_HDR10_PLUS_MAX_COLS_MD_APL")]
+               [Version (since = "1.20")]
+               public const int HDR10_PLUS_MAX_COLS_MD_APL;
+               [CCode (cheader_filename = "gst/video/video.h", cname = 
"GST_VIDEO_HDR10_PLUS_MAX_ROWS_TSD_APL")]
+               [Version (since = "1.20")]
+               public const int HDR10_PLUS_MAX_ROWS_TSD_APL;
+               [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_HDR10_PLUS_NUM_WINDOWS")]
+               [Version (since = "1.20")]
+               public const int HDR10_PLUS_NUM_WINDOWS;
                [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_MAX_COMPONENTS")]
                public const int MAX_COMPONENTS;
                [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_MAX_PLANES")]
@@ -1686,6 +1770,9 @@ namespace Gst {
                public static unowned Gst.Video.CaptionMeta? buffer_add_video_caption_meta (Gst.Buffer 
buffer, Gst.Video.CaptionType caption_type, [CCode (array_length_cname = "size", array_length_pos = 3.1, 
array_length_type = "gsize")] uint8[] data);
                [CCode (cheader_filename = "gst/video/video.h", cname = 
"gst_buffer_add_video_gl_texture_upload_meta")]
                public static unowned Gst.Video.GLTextureUploadMeta? buffer_add_video_gl_texture_upload_meta 
(Gst.Buffer buffer, Gst.Video.GLTextureOrientation texture_orientation, uint n_textures, 
Gst.Video.GLTextureType texture_type, [CCode (delegate_target_pos = 5.5)] Gst.Video.GLTextureUpload upload, 
GLib.BoxedCopyFunc user_data_copy, GLib.BoxedFreeFunc user_data_free);
+               [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_hdr_meta")]
+               [Version (since = "1.20")]
+               public static unowned Gst.Video.HDRMeta? buffer_add_video_hdr_meta (Gst.Buffer buffer, 
Gst.Video.HDRFormat format, uint8 data, size_t size);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_meta")]
                public static unowned Gst.Video.Meta? buffer_add_video_meta (Gst.Buffer buffer, 
Gst.Video.FrameFlags flags, Gst.Video.Format format, uint width, uint height);
                [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_meta_full")]
@@ -1816,6 +1903,19 @@ namespace Gst {
                [Version (since = "1.6")]
                public static bool guess_framerate (Gst.ClockTime duration, out int dest_n, out int dest_d);
                [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static Gst.Video.HDRFormat hdr_format_from_string (string? format);
+               [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static unowned string? hdr_format_to_string (Gst.Video.HDRFormat format);
+               [CCode (cheader_filename = "gst/video/video.h")]
+               public static GLib.Type hdr_meta_api_get_type ();
+               [CCode (cheader_filename = "gst/video/video.h")]
+               public static unowned Gst.MetaInfo? hdr_meta_get_info ();
+               [CCode (cheader_filename = "gst/video/video.h")]
+               [Version (since = "1.20")]
+               public static bool hdr_parse_hdr10_plus (uint8 data, size_t size, out Gst.Video.HDR10Plus 
hdr10_plus);
+               [CCode (cheader_filename = "gst/video/video.h")]
                [Version (since = "1.6")]
                public static Gst.Video.InterlaceMode interlace_mode_from_string (string mode);
                [CCode (cheader_filename = "gst/video/video.h")]


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