[vala/0.48] gstreamer-video-1.0: Fix a few binding errors
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] gstreamer-video-1.0: Fix a few binding errors
- Date: Mon, 21 Mar 2022 08:17:08 +0000 (UTC)
commit ccde69a161f7eb4223fb9dceb4ddf2b5e1ed6208
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 | 21 ++++++++++++++++++---
3 files changed, 24 insertions(+), 19 deletions(-)
---
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index 2129c3a4e..6aee3897e 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);
[NoWrapper]
public virtual Gst.Caps update_caps (Gst.Caps caps);
}
@@ -61,13 +61,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);
}
@@ -405,7 +406,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);
@@ -494,7 +495,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 1777e7a14..035c1b924 100644
--- a/vapi/metadata/GstVideo-1.0.metadata
+++ b/vapi/metadata/GstVideo-1.0.metadata
@@ -5,11 +5,29 @@ 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
+VideoMeta
+ .map#field name="map_v"
+ .unmap#field name="unmap_v"
VideoOverlay
.set_render_rectangle#virtual_method virtual
.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
@@ -27,6 +45,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]