[vala/staging] gstreamer-video-1.0: Fix a few binding errors



commit 90d5814449865dc1b560a90b61c890de2e312528
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 28 12:12:56 2022 +0100

    gstreamer-video-1.0: Fix a few binding errors

 vapi/gstreamer-video-1.0.vapi          | 11 ++++++-----
 vapi/metadata/GstVideo-1.0-custom.vala | 11 -----------
 vapi/metadata/GstVideo-1.0.metadata    | 15 ++++++++++++---
 3 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index cff316cda..da998297c 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -15,7 +15,7 @@ namespace Gst {
                        [NoWrapper]
                        public virtual Gst.FlowReturn create_output_buffer (Gst.Buffer outbuffer);
                        [NoWrapper]
-                       public virtual void find_best_format (Gst.Caps downstream_caps, Gst.Video.Info 
best_info, bool at_least_one_alpha);
+                       public virtual void find_best_format (Gst.Caps downstream_caps, Gst.Video.Info 
best_info, out bool at_least_one_alpha);
                        [Version (since = "1.20")]
                        public Gst.TaskPool get_execution_task_pool ();
                        [NoWrapper]
@@ -76,13 +76,14 @@ namespace Gst {
                        [CCode (has_construct_function = false, type = "GstBufferPool*")]
                        public BufferPool ();
                }
-               [CCode (cheader_filename = "gst/video/video.h")]
+               [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
                [Compact]
                [GIR (name = "VideoChromaResample")]
                public class ChromaResample {
+                       [CCode (cname = "gst_video_chroma_resample_new", has_construct_function = false)]
                        public ChromaResample (Gst.Video.ChromaMethod method, Gst.Video.ChromaSite site, 
Gst.Video.ChromaFlags flags, Gst.Video.Format format, int h_factor, int v_factor);
                        public void free ();
-                       public void get_info (uint n_lines, int offset);
+                       public void get_info (out uint n_lines, out int offset);
                        [CCode (cname = "gst_video_chroma_resample")]
                        public void resample (void* lines, int width);
                }
@@ -464,7 +465,7 @@ namespace Gst {
                public class Scaler {
                        public void @2d (Gst.Video.Scaler vscale, Gst.Video.Format format, void* src, int 
src_stride, void* dest, int dest_stride, uint x, uint y, uint width, uint height);
                        public void free ();
-                       public double get_coeff (uint out_offset, uint in_offset, uint n_taps);
+                       public double get_coeff (uint out_offset, out uint in_offset, out uint n_taps);
                        public uint get_max_taps ();
                        public void horizontal (Gst.Video.Format format, void* src, void* dest, uint 
dest_offset, uint width);
                        public void vertical (Gst.Video.Format format, void* src_lines, void* dest, uint 
dest_offset, uint width);
@@ -557,7 +558,7 @@ namespace Gst {
                        public bool add_ancillary (bool composite, uint8 DID, uint8 SDID_block_number, [CCode 
(array_length_cname = "data_count", array_length_pos = 4.1, array_length_type = "guint")] uint8[] data);
                        public Gst.Video.VBIEncoder copy ();
                        public void free ();
-                       public void write_line (uint8 data);
+                       public void write_line ([CCode (array_length = false, type = "guint8*")] uint8[] 
data);
                }
                [CCode (cheader_filename = "gst/video/video.h", copy_function = "g_boxed_copy", free_function 
= "g_boxed_free", type_id = "gst_video_vbi_parser_get_type ()")]
                [Compact]
diff --git a/vapi/metadata/GstVideo-1.0-custom.vala b/vapi/metadata/GstVideo-1.0-custom.vala
index 1b41ee3d0..d1467b583 100644
--- a/vapi/metadata/GstVideo-1.0-custom.vala
+++ b/vapi/metadata/GstVideo-1.0-custom.vala
@@ -1,16 +1,5 @@
 namespace Gst {
        namespace Video {
-    [CCode (cheader_filename = "gst/video/video.h")]
-    [Compact]
-    [GIR (name = "VideoChromaResample")]
-    public class ChromaResample {
-      public ChromaResample (Gst.Video.ChromaMethod method, Gst.Video.ChromaSite site, Gst.Video.ChromaFlags 
flags, Gst.Video.Format format, int h_factor, int v_factor);
-      public void free ();
-      public void get_info (uint n_lines, int offset);
-      [CCode (cname = "gst_video_chroma_resample")]
-      public void resample (void* lines, int width);
-    }
-
                [CCode (cheader_filename = "gst/video/gstvideoutils.h", ref_function = 
"gst_video_codec_frame_ref", type_id = "gst_video_codec_frame_get_type ()", unref_function = 
"gst_video_codec_frame_unref")]
                [Compact]
                [GIR (name = "VideoCodecFrame")]
diff --git a/vapi/metadata/GstVideo-1.0.metadata b/vapi/metadata/GstVideo-1.0.metadata
index 2376a6273..a4df422e1 100644
--- a/vapi/metadata/GstVideo-1.0.metadata
+++ b/vapi/metadata/GstVideo-1.0.metadata
@@ -5,6 +5,13 @@ video_* name="video_(.+)"
 
 *.ref unowned
 
+VideoAggregator
+  .find_best_format.at_least_one_alpha out
+video_chroma_resample parent="Gst.Video.ChromaResample" symbol_type="method" instance_idx=0 name="resample"
+video_chroma_resample_new skip=false parent="Gst.Video.ChromaResample" symbol_type="constructor" name=".new" 
replacement=() deprecated=false
+VideoChromaResample
+  .get_info.n_lines out
+  .get_info.offset out
 VideoFrame
   .data#field unowned=false
   .map#field name="map_info" unowned=false
@@ -18,6 +25,11 @@ VideoOverlay
   .set_render_rectangle#method name="try_set_render_rectangle"
   .set_window_handle.handle type="uint*"
   .got_window_handle.handle type="uint*"
+VideoScaler
+  .get_coeff.in_offset out
+  .get_coeff.n_taps out
+VideoVBIEncoder
+  .write_line.data array
 
 // Generics
 VideoCodecFrame
@@ -35,6 +47,3 @@ VideoCodecFrame
 
 VideoInfo
   .finfo nullable
-
-VideoChromaResample skip
-video_chroma_resample skip


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