summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-01-14 17:55:34 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2021-01-14 17:55:34 +0100
commit355eb3610d0633440f9847a156bad65feda1f517 (patch)
treef3d2c0960be9ba6664af82a99d3e9107e35e0fef
parent0b136b25ce1fe4c19c54e3bb51faaa3d4c378697 (diff)
downloadvala-355eb3610d0633440f9847a156bad65feda1f517.tar.gz
Regenerate GIR-based bindings
-rw-r--r--vapi/gst-editing-services-1.0.vapi4
-rw-r--r--vapi/gstreamer-1.0.vapi15
-rw-r--r--vapi/gstreamer-video-1.0.vapi12
-rw-r--r--vapi/metadata/Gst-1.0.metadata4
-rw-r--r--vapi/metadata/GstVideo-1.0.metadata6
5 files changed, 40 insertions, 1 deletions
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index d5a43b328..4525fe2e5 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -1211,6 +1211,10 @@ namespace GES {
public delegate bool FormatterSaveToURIMethod (GES.Formatter formatter, GES.Timeline timeline, string uri, bool overwrite) throws GLib.Error;
[CCode (cheader_filename = "ges/ges.h", instance_pos = 3.9)]
public delegate void MetaForeachFunc (GES.MetaContainer container, string key, GLib.Value value);
+ [CCode (cheader_filename = "ges/ges.h", has_target = false, has_typedef = false)]
+ public delegate bool abiGetNaturalSizeFunc (GES.VideoSource self, int width, int height);
+ [CCode (cheader_filename = "ges/ges.h", has_target = false, has_typedef = false)]
+ public delegate bool abiNeedsConvertersFunc (GES.VideoSource self);
[CCode (cheader_filename = "ges/ges.h", cname = "GES_FRAME_NUMBER_NONE")]
public const int64 FRAME_NUMBER_NONE;
[CCode (cheader_filename = "ges/ges.h", cname = "GES_META_DESCRIPTION")]
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index bfaa4447d..feaa85596 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1571,6 +1571,7 @@ namespace Gst {
public weak Gst.Iterator pushed;
public uint size;
public GLib.Type type;
+ public Gst.Iterator copy ();
[CCode (simple_generics = true)]
public Gst.Iterator filter<T> ([CCode (type = "GCompareFunc")] GLib.SearchFunc<GLib.Value?,T> func, T user_data);
[CCode (simple_generics = true)]
@@ -1800,6 +1801,7 @@ namespace Gst {
public GLib.Type type;
[Version (since = "1.16")]
public void add_parent (Gst.MiniObject parent);
+ public Gst.MiniObject? copy ();
[CCode (simple_generics = true)]
public T get_qdata<T> (GLib.Quark quark);
public bool is_writable ();
@@ -3053,7 +3055,14 @@ namespace Gst {
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false, lower_case_csuffix = "type_find")]
public struct TypeFind {
+ [CCode (cname = "peek")]
+ public weak Gst.TypeFindPeekVFunc peek_v;
+ [CCode (cname = "suggest")]
+ public weak Gst.TypeFindSuggestVFunc suggest_v;
public void* data;
+ [CCode (cname = "get_length")]
+ public weak Gst.TypeFindGetLengthVFunc get_length_v;
+ public uint64 get_length ();
public static GLib.Type get_type ();
[CCode (array_length_pos = 1.1, array_length_type = "guint")]
public unowned uint8[]? peek (int64 offset);
@@ -4077,6 +4086,12 @@ namespace Gst {
public delegate void TaskThreadFunc (Gst.Task task, GLib.Thread thread);
[CCode (cheader_filename = "gst/gst.h", instance_pos = 1.9)]
public delegate void TypeFindFunction (Gst.TypeFind find);
+ [CCode (cheader_filename = "gst/gst.h", has_target = false, has_typedef = false)]
+ public delegate uint64 TypeFindGetLengthVFunc (void* data);
+ [CCode (cheader_filename = "gst/gst.h", has_target = false, has_typedef = false)]
+ public delegate uint8 TypeFindPeekVFunc (void* data, int64 offset, uint size);
+ [CCode (cheader_filename = "gst/gst.h", has_target = false, has_typedef = false)]
+ public delegate void TypeFindSuggestVFunc (void* data, uint probability, Gst.Caps caps);
[CCode (cheader_filename = "gst/gst.h", has_target = false)]
public delegate int ValueCompareFunc (GLib.Value value1, GLib.Value value2);
[CCode (cheader_filename = "gst/gst.h", has_target = false)]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index d11e88cdb..c0bab6ebe 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -784,7 +784,9 @@ namespace Gst {
public void* meta;
public int id;
[CCode (array_length = false)]
- public weak void* data[4];
+ public void* data[4];
+ [CCode (array_length = false, cname = "map")]
+ public Gst.MapInfo map_info[4];
public bool copy (Gst.Video.Frame src);
public bool copy_plane (Gst.Video.Frame src, uint plane);
public bool map (Gst.Video.Info info, Gst.Buffer buffer, Gst.MapFlags flags);
@@ -868,6 +870,10 @@ namespace Gst {
public weak size_t offset[4];
[CCode (array_length = false)]
public weak int stride[4];
+ [CCode (cname = "map")]
+ public weak Gst.Video.MetaMapVFunc map_v;
+ [CCode (cname = "unmap")]
+ public weak Gst.Video.MetaUnmapVFunc unmap_v;
public Gst.Video.Alignment alignment;
[Version (since = "1.18")]
public bool get_plane_height ([CCode (array_length = false)] out unowned uint plane_height[4]);
@@ -1576,6 +1582,10 @@ namespace Gst {
public delegate void FormatUnpack (Gst.Video.FormatInfo info, Gst.Video.PackFlags flags, void* dest, void* data, int stride, int x, int y, int width);
[CCode (cheader_filename = "gst/video/video.h", has_target = false)]
public delegate bool GLTextureUpload (Gst.Video.GLTextureUploadMeta meta, uint texture_id);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false, has_typedef = false)]
+ public delegate bool MetaMapVFunc (Gst.Video.Meta meta, uint plane, Gst.MapInfo info, void* data, int stride, Gst.MapFlags flags);
+ [CCode (cheader_filename = "gst/video/video.h", has_target = false, has_typedef = false)]
+ public delegate bool MetaUnmapVFunc (Gst.Video.Meta meta, uint plane, Gst.MapInfo info);
[CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META")]
public const string BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META;
[CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT")]
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index e433211a5..eb6de8bb5 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -285,6 +285,10 @@ ElementClass
.get_pad_template#method name="class_get_pad_template"
.get_pad_template_list#method name="class_get_pad_template_list"
TypeFind lower_case_csuffix="type_find"
+TypeFind
+ .peek#field name="peek_v"
+ .suggest#field name="suggest_v"
+ .get_length#field name="get_length_v"
// Backwards compatibility
Structure.new_from_string skip
diff --git a/vapi/metadata/GstVideo-1.0.metadata b/vapi/metadata/GstVideo-1.0.metadata
index 1777e7a14..01a5f3488 100644
--- a/vapi/metadata/GstVideo-1.0.metadata
+++ b/vapi/metadata/GstVideo-1.0.metadata
@@ -5,6 +5,12 @@ video_* name="video_(.+)"
*.ref unowned
+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"