summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2022-08-08 20:50:01 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2022-08-09 08:44:28 +0200
commit93263455403d4f8416bba571700974e819db81c6 (patch)
tree11ce987940fe816b68c0ee882bd5f8e8c4694ba7 /vapi
parent721737345d0faea346ebebc3e795c35c55f86da1 (diff)
downloadvala-93263455403d4f8416bba571700974e819db81c6.tar.gz
gstreamer: Update from 1.21.0+ git main
Diffstat (limited to 'vapi')
-rw-r--r--vapi/gst-editing-services-1.0.vapi4
-rw-r--r--vapi/gstreamer-1.0.vapi2
-rw-r--r--vapi/gstreamer-pbutils-1.0.vapi4
-rw-r--r--vapi/gstreamer-video-1.0.vapi35
-rw-r--r--vapi/gstreamer-webrtc-1.0.vapi95
5 files changed, 136 insertions, 4 deletions
diff --git a/vapi/gst-editing-services-1.0.vapi b/vapi/gst-editing-services-1.0.vapi
index d93e9c90a..5e73ec7f1 100644
--- a/vapi/gst-editing-services-1.0.vapi
+++ b/vapi/gst-editing-services-1.0.vapi
@@ -1180,7 +1180,9 @@ namespace GES {
WINDSHIELD_U,
WINDSHIELD_V,
WINDSHIELD_H,
- CROSSFADE
+ CROSSFADE,
+ [Version (since = "1.22")]
+ FADE_IN
}
[CCode (cheader_filename = "ges/ges.h", cprefix = "GES_VIDEO_TEST_", type_id = "ges_video_test_pattern_get_type ()")]
public enum VideoTestPattern {
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index b4d4f02d5..8a5e3ac7a 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -2540,6 +2540,8 @@ namespace Gst {
public bool get_double (string fieldname, out double value);
public bool get_enum (string fieldname, GLib.Type enumtype, out int value);
public GLib.Type get_field_type (string fieldname);
+ [Version (since = "1.22")]
+ public bool get_flags (string fieldname, GLib.Type flags_type, out uint value);
[Version (since = "1.6")]
public bool get_flagset (string fieldname, out uint value_flags, out uint value_mask);
public bool get_fraction (string fieldname, out int value_numerator, out int value_denominator);
diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi
index 87b6bc53d..d09cf34ee 100644
--- a/vapi/gstreamer-pbutils-1.0.vapi
+++ b/vapi/gstreamer-pbutils-1.0.vapi
@@ -346,7 +346,9 @@ namespace Gst {
IMAGE,
SUBTITLE,
TAG,
- GENERIC
+ GENERIC,
+ [Version (since = "1.22")]
+ METADATA
}
[CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstAudioVisualizerShaderFunc", has_target = false)]
public delegate void AudioVisualizerShaderFunc (Gst.PbUtils.AudioVisualizer scope, Gst.Video.Frame s, Gst.Video.Frame d);
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index f66743c13..49fc55bd8 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -787,6 +787,8 @@ namespace Gst {
public bool from_string (string color);
[Version (since = "1.6")]
public bool is_equal (Gst.Video.Colorimetry other);
+ [Version (since = "1.22")]
+ public bool is_equivalent (uint bitdepth, Gst.Video.Colorimetry other, uint other_bitdepth);
public bool matches (string color);
public string? to_string ();
}
@@ -849,6 +851,8 @@ namespace Gst {
public void component (uint plane, out int components);
[Version (since = "1.22")]
public int extrapolate_stride (int plane, int stride);
+ [Version (since = "1.22")]
+ public uint get_tile_sizes (uint plane, uint? out_ws, uint? out_hs);
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
[GIR (name = "VideoFrame")]
@@ -988,6 +992,17 @@ namespace Gst {
public bool init (Gst.Video.ResamplerMethod method, Gst.Video.ResamplerFlags flags, uint n_phases, uint n_taps, double shift, uint in_size, uint out_size, Gst.Structure options);
}
[CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
+ [GIR (name = "VideoSEIUserDataUnregisteredMeta")]
+ [Version (since = "1.22")]
+ public struct SEIUserDataUnregisteredMeta {
+ public Gst.Meta meta;
+ [CCode (array_length = false)]
+ public weak uint8 uuid[16];
+ public uint8 data;
+ public size_t size;
+ public static unowned Gst.MetaInfo? get_info ();
+ }
+ [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)]
[GIR (name = "VideoTimeCodeConfig")]
[Version (since = "1.10")]
public struct TimeCodeConfig {
@@ -1182,6 +1197,8 @@ namespace Gst {
public static Gst.Video.ColorPrimaries from_iso (uint value);
[Version (since = "1.6")]
public unowned Gst.Video.ColorPrimariesInfo? get_info ();
+ [Version (since = "1.22")]
+ public bool is_equivalent (Gst.Video.ColorPrimaries other);
[Version (since = "1.18")]
public uint to_iso ();
}
@@ -1938,6 +1955,9 @@ namespace Gst {
public static unowned Gst.Video.RegionOfInterestMeta? buffer_add_video_region_of_interest_meta (Gst.Buffer buffer, string roi_type, uint x, uint y, uint w, uint h);
[CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_region_of_interest_meta_id")]
public static unowned Gst.Video.RegionOfInterestMeta? buffer_add_video_region_of_interest_meta_id (Gst.Buffer buffer, GLib.Quark roi_type, uint x, uint y, uint w, uint h);
+ [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_sei_user_data_unregistered_meta")]
+ [Version (since = "1.22")]
+ public static unowned Gst.Video.SEIUserDataUnregisteredMeta? buffer_add_video_sei_user_data_unregistered_meta (Gst.Buffer buffer, uint8 uuid, uint8 data, size_t size);
[CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_time_code_meta")]
[Version (since = "1.10")]
public static unowned Gst.Video.TimeCodeMeta? buffer_add_video_time_code_meta (Gst.Buffer buffer, Gst.Video.TimeCode tc);
@@ -2004,6 +2024,9 @@ namespace Gst {
[Version (replacement = "VideoColorPrimaries.get_info", since = "1.6")]
public static unowned Gst.Video.ColorPrimariesInfo? color_primaries_get_info (Gst.Video.ColorPrimaries primaries);
[CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoColorPrimaries.is_equivalent", since = "1.22")]
+ public static bool color_primaries_is_equivalent (Gst.Video.ColorPrimaries primaries, Gst.Video.ColorPrimaries other);
+ [CCode (cheader_filename = "gst/video/video.h")]
[Version (replacement = "VideoColorPrimaries.to_iso", since = "1.18")]
public static uint color_primaries_to_iso (Gst.Video.ColorPrimaries primaries);
[CCode (cheader_filename = "gst/video/video.h")]
@@ -2094,6 +2117,9 @@ namespace Gst {
[CCode (cheader_filename = "gst/video/video.h")]
[Version (replacement = "VideoInterlaceMode.to_string", since = "1.6")]
public static unowned string interlace_mode_to_string (Gst.Video.InterlaceMode mode);
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static bool is_common_aspect_ratio (int width, int height, int par_n, int par_d);
[CCode (cheader_filename = "gst/video/video.h", cname = "gst_is_video_overlay_prepare_window_handle_message")]
public static bool is_video_overlay_prepare_window_handle_message (Gst.Message msg);
[CCode (cheader_filename = "gst/video/video.h")]
@@ -2277,6 +2303,15 @@ namespace Gst {
[Version (replacement = "VideoRegionOfInterestMeta.get_info")]
public static unowned Gst.MetaInfo? region_of_interest_meta_get_info ();
[CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static GLib.Type sei_user_data_unregistered_meta_api_get_type ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (replacement = "VideoSEIUserDataUnregisteredMeta.get_info", since = "1.22")]
+ public static unowned Gst.MetaInfo? sei_user_data_unregistered_meta_get_info ();
+ [CCode (cheader_filename = "gst/video/video.h")]
+ [Version (since = "1.22")]
+ public static bool sei_user_data_unregistered_parse_precision_time_stamp (Gst.Video.SEIUserDataUnregisteredMeta user_data, out uint8 status, out uint64 precision_time_stamp);
+ [CCode (cheader_filename = "gst/video/video.h")]
[Version (since = "1.4")]
public static uint tile_get_index (Gst.Video.TileMode mode, int x, int y, int x_tiles, int y_tiles);
[CCode (cheader_filename = "gst/video/video.h")]
diff --git a/vapi/gstreamer-webrtc-1.0.vapi b/vapi/gstreamer-webrtc-1.0.vapi
index 3fc2c5332..0686e792a 100644
--- a/vapi/gstreamer-webrtc-1.0.vapi
+++ b/vapi/gstreamer-webrtc-1.0.vapi
@@ -59,10 +59,86 @@ namespace Gst {
[HasEmitter]
public signal void send_string (string? str);
}
+ [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice", type_id = "gst_webrtc_ice_get_type ()")]
+ public abstract class WebRTCICE : Gst.Object {
+ public Gst.WebRTCICEConnectionState ice_connection_state;
+ public Gst.WebRTCICEGatheringState ice_gathering_state;
+ [CCode (has_construct_function = false)]
+ protected WebRTCICE ();
+ [Version (since = "1.22")]
+ public virtual void add_candidate (Gst.WebRTCICEStream stream, string candidate);
+ [Version (since = "1.22")]
+ public virtual Gst.WebRTCICEStream? add_stream (uint session_id);
+ [Version (since = "1.22")]
+ public virtual bool add_turn_server (string uri);
+ [Version (since = "1.22")]
+ public static void candidate_stats_free (Gst.WebRTCICECandidateStats stats);
+ [Version (since = "1.22")]
+ public virtual Gst.WebRTCICETransport? find_transport (Gst.WebRTCICEStream stream, Gst.WebRTCICEComponent component);
+ [Version (since = "1.22")]
+ public virtual bool gather_candidates (Gst.WebRTCICEStream stream);
+ [Version (since = "1.22")]
+ public virtual bool get_is_controller ();
+ [Version (since = "1.22")]
+ public virtual GLib.Array<Gst.WebRTCICECandidateStats?> get_local_candidates (Gst.WebRTCICEStream stream);
+ [Version (since = "1.22")]
+ public virtual GLib.Array<Gst.WebRTCICECandidateStats?> get_remote_candidates (Gst.WebRTCICEStream stream);
+ [Version (since = "1.22")]
+ public virtual bool get_selected_pair (Gst.WebRTCICEStream stream, Gst.WebRTCICECandidateStats local_stats, Gst.WebRTCICECandidateStats remote_stats);
+ [Version (since = "1.22")]
+ public virtual string get_stun_server ();
+ [Version (since = "1.22")]
+ public virtual string get_turn_server ();
+ [Version (since = "1.22")]
+ public virtual void set_force_relay (bool force_relay);
+ [Version (since = "1.22")]
+ public virtual void set_is_controller (bool controller);
+ [Version (since = "1.22")]
+ public virtual bool set_local_credentials (Gst.WebRTCICEStream stream, string ufrag, string pwd);
+ [Version (since = "1.22")]
+ public virtual void set_on_ice_candidate (owned Gst.WebRTCICEOnCandidateFunc func);
+ [Version (since = "1.22")]
+ public virtual bool set_remote_credentials (Gst.WebRTCICEStream stream, string ufrag, string pwd);
+ [Version (since = "1.22")]
+ public virtual void set_stun_server (string uri);
+ [Version (since = "1.22")]
+ public virtual void set_tos (Gst.WebRTCICEStream stream, uint tos);
+ [Version (since = "1.22")]
+ public virtual void set_turn_server (string uri);
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public uint max_rtp_port { get; set construct; }
+ [NoAccessorMethod]
+ [Version (since = "1.20")]
+ public uint min_rtp_port { get; set construct; }
+ public signal bool add_local_ip_address (string address);
+ }
+ [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice_stream", type_id = "gst_webrtc_ice_stream_get_type ()")]
+ public abstract class WebRTCICEStream : Gst.Object {
+ [CCode (has_construct_function = false)]
+ protected WebRTCICEStream ();
+ [Version (since = "1.22")]
+ public virtual Gst.WebRTCICETransport? find_transport (Gst.WebRTCICEComponent component);
+ [Version (since = "1.22")]
+ public virtual bool gather_candidates ();
+ [NoAccessorMethod]
+ public uint stream_id { get; construct; }
+ }
[CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice_transport", type_id = "gst_webrtc_ice_transport_get_type ()")]
public abstract class WebRTCICETransport : Gst.Object {
+ [CCode (array_length = false)]
+ public weak void* _padding[4];
+ public Gst.WebRTCICERole role;
+ public weak Gst.Element sink;
+ public weak Gst.Element src;
[CCode (has_construct_function = false)]
protected WebRTCICETransport ();
+ public void connection_state_change (Gst.WebRTCICEConnectionState new_state);
+ [NoWrapper]
+ public virtual bool gather_candidates ();
+ public void gathering_state_change (Gst.WebRTCICEGatheringState new_state);
+ public void new_candidate (uint stream_id, Gst.WebRTCICEComponent component, string attr);
+ public void selected_pair_change ();
[NoAccessorMethod]
public Gst.WebRTCICEComponent component { get; construct; }
[NoAccessorMethod]
@@ -143,6 +219,17 @@ namespace Gst {
[DestroysInstance]
public void free ();
}
+ [CCode (cheader_filename = "gst/webrtc/webrtc.h", has_type_id = false)]
+ public struct WebRTCICECandidateStats {
+ public weak string ipaddr;
+ public uint port;
+ public uint stream_id;
+ public weak string type;
+ public weak string proto;
+ public weak string relay_proto;
+ public uint prio;
+ public weak string url;
+ }
[CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_BUNDLE_POLICY_", type_id = "gst_webrtc_bundle_policy_get_type ()")]
[Version (since = "1.16")]
public enum WebRTCBundlePolicy {
@@ -169,7 +256,6 @@ namespace Gst {
[CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_DATA_CHANNEL_STATE_", type_id = "gst_webrtc_data_channel_state_get_type ()")]
[Version (since = "1.16")]
public enum WebRTCDataChannelState {
- NEW,
CONNECTING,
OPEN,
CLOSING,
@@ -299,10 +385,15 @@ namespace Gst {
HARDWARE_ENCODER_NOT_AVAILABLE,
ENCODER_ERROR,
INVALID_STATE,
- INTERNAL_FAILURE;
+ INTERNAL_FAILURE,
+ [Version (since = "1.22")]
+ INVALID_MODIFICATION;
[CCode (cname = "gst_webrtc_error_quark")]
public static GLib.Quark quark ();
}
+ [CCode (cheader_filename = "gst/webrtc/webrtc.h", instance_pos = 3.9)]
+ [Version (since = "1.22")]
+ public delegate void WebRTCICEOnCandidateFunc (Gst.WebRTCICE ice, uint stream_id, string candidate);
[CCode (cheader_filename = "gst/webrtc/webrtc.h")]
[Version (replacement = "WebRTCError.quark", since = "1.20")]
public static GLib.Quark webrtc_error_quark ();