]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gstreamer-video-1.0: Fix a few binding errors
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 17 Mar 2022 10:52:21 +0000 (11:52 +0100)
vapi/gstreamer-video-1.0.vapi
vapi/metadata/GstVideo-1.0-custom.vala
vapi/metadata/GstVideo-1.0.metadata

index dc3a6b03692dd17762df55c7f62ab629a6c5ab32..771222a6d25af21d3709bcbf8ee3029053de4a78 100644 (file)
@@ -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);
                }
@@ -452,7 +453,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);
@@ -545,7 +546,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]
index 1b41ee3d0cf51a800a7bee56325e11e7968c2257..d1467b583f9e6be4e97abbaf7295def69ff614e4 100644 (file)
@@ -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")]
index 01a5f348823568103a29f9e0c5dee91c2433b538..035c1b924421e6926e2399f86e678bf79f2a8b1e 100644 (file)
@@ -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
@@ -16,6 +23,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
@@ -33,6 +45,3 @@ VideoCodecFrame
 
 VideoInfo
   .finfo nullable
-
-VideoChromaResample skip
-video_chroma_resample skip