From: Rico Tzschichholz Date: Sun, 21 Feb 2016 19:42:39 +0000 (+0100) Subject: gstreamer: Update to 1.7.2 X-Git-Tag: 0.32.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2f2998bb5343dcf092796462604401d7c58e7cd;p=thirdparty%2Fvala.git gstreamer: Update to 1.7.2 --- diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index 5a0bb95eb..1fa2bf10b 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -289,6 +289,9 @@ namespace Gst { public const string PERFORMER; [CCode (cheader_filename = "gst/gst.h", cname = "GST_TAG_PREVIEW_IMAGE")] public const string PREVIEW_IMAGE; + [CCode (cheader_filename = "gst/gst.h", cname = "GST_TAG_PRIVATE_DATA")] + [Version (since = "1.8")] + public const string PRIVATE_DATA; [CCode (cheader_filename = "gst/gst.h", cname = "GST_TAG_PUBLISHER")] [Version (since = "1.2")] public const string PUBLISHER; @@ -921,6 +924,8 @@ namespace Gst { public void set_timeout (Gst.ClockTime timeout); public bool single_shot_id_reinit (Gst.ClockID id, Gst.ClockTime time); public Gst.ClockTime unadjust_unlocked (Gst.ClockTime external); + [Version (since = "1.8")] + public Gst.ClockTime unadjust_with_calibration (Gst.ClockTime external_target, Gst.ClockTime cinternal, Gst.ClockTime cexternal, Gst.ClockTime cnum, Gst.ClockTime cdenom); [NoWrapper] public virtual void unschedule (Gst.ClockEntry entry); [NoWrapper] @@ -972,9 +977,13 @@ namespace Gst { } [CCode (cheader_filename = "gst/gst.h", type_id = "gst_control_source_get_type ()")] public abstract class ControlSource : Gst.Object { + [CCode (cname = "get_value_array")] + public weak Gst.ControlSourceGetValueArray get_value_array_func; + [CCode (cname = "get_value")] + public weak Gst.ControlSourceGetValue get_value_func; [CCode (has_construct_function = false)] protected ControlSource (); - public bool get_value (Gst.ClockTime timestamp, double value); + public bool get_value (Gst.ClockTime timestamp, out double value); public bool get_value_array (Gst.ClockTime timestamp, Gst.ClockTime interval, [CCode (array_length_cname = "n_values", array_length_pos = 2.5, array_length_type = "guint")] double[] values); } [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_date_time_ref", type_id = "gst_date_time_get_type ()", unref_function = "gst_date_time_unref")] @@ -1127,6 +1136,7 @@ namespace Gst { public Gst.ClockTimeDiff base_time; public Gst.Bus bus; public Gst.Clock clock; + public weak GLib.List contexts; public Gst.State current_state; public Gst.StateChangeReturn last_return; public Gst.State next_state; @@ -1161,6 +1171,12 @@ namespace Gst { public Gst.Clock get_clock (); public Gst.Pad? get_compatible_pad (Gst.Pad pad, Gst.Caps? caps); public unowned Gst.PadTemplate? get_compatible_pad_template (Gst.PadTemplate compattempl); + [Version (since = "1.8")] + public Gst.Context get_context (string context_type); + [Version (since = "1.8")] + public Gst.Context get_context_unlocked (string context_type); + [Version (since = "1.8")] + public GLib.List get_contexts (); public unowned Gst.ElementFactory get_factory (); [CCode (cname = "gst_element_class_get_metadata")] public class unowned string get_metadata (string key); @@ -1700,6 +1716,8 @@ namespace Gst { [CCode (cname = "gst_pad_set_chain_list_function_full")] public void set_chain_list_function (owned Gst.PadChainListFunction chainlist); public void set_element_private (void* priv); + [Version (since = "1.8")] + public void set_event_full_function_full (owned Gst.PadEventFullFunction event); [CCode (cname = "gst_pad_set_event_function_full")] public void set_event_function (owned Gst.PadEventFunction event); [CCode (cname = "gst_pad_set_getrange_function_full")] @@ -2040,12 +2058,23 @@ namespace Gst { public bool is_equal (Gst.Segment s1); [Version (since = "1.2.3")] public bool offset_running_time (Gst.Format format, int64 offset); + [Version (since = "1.8")] + public uint64 position_from_running_time (Gst.Format format, uint64 running_time); + [Version (since = "1.8")] + public int position_from_running_time_full (Gst.Format format, uint64 running_time, uint64 position); + [Version (since = "1.8")] + public uint64 position_from_stream_time (Gst.Format format, uint64 stream_time); + [Version (since = "1.8")] + public int position_from_stream_time_full (Gst.Format format, uint64 stream_time, uint64 position); public bool set_running_time (Gst.Format format, uint64 running_time); public uint64 to_position (Gst.Format format, uint64 running_time); public uint64 to_running_time (Gst.Format format, uint64 position); [Version (since = "1.6")] public int to_running_time_full (Gst.Format format, uint64 position, uint64 running_time); + [Version (since = "1.8")] public uint64 to_stream_time (Gst.Format format, uint64 position); + [Version (since = "1.8")] + public int to_stream_time_full (Gst.Format format, uint64 position, uint64 stream_time); } [CCode (cheader_filename = "gst/gst.h", copy_function = "gst_structure_copy", free_function = "gst_structure_free", type_id = "gst_structure_get_type ()")] [Compact] @@ -2258,6 +2287,25 @@ namespace Gst { public void set_start_stop_times (int64 start, int64 stop); public void set_tags (owned Gst.TagList? tags); } + [CCode (cheader_filename = "gst/gst.h", type_id = "gst_tracer_get_type ()")] + public abstract class Tracer : Gst.Object { + [CCode (has_construct_function = false)] + protected Tracer (); + [NoAccessorMethod] + public string @params { owned get; set construct; } + } + [CCode (cheader_filename = "gst/gst.h", type_id = "gst_tracer_factory_get_type ()")] + [Version (since = "1.8")] + public class TracerFactory : Gst.PluginFeature { + [CCode (has_construct_function = false)] + protected TracerFactory (); + public static GLib.List get_list (); + } + [CCode (cheader_filename = "gst/gst.h", type_id = "gst_tracer_record_get_type ()")] + public class TracerRecord : Gst.Object { + [CCode (has_construct_function = false)] + protected TracerRecord (); + } [CCode (cheader_filename = "gst/gst.h", type_id = "gst_type_find_factory_get_type ()")] public class TypeFindFactory : Gst.PluginFeature { [CCode (has_construct_function = false)] @@ -3093,7 +3141,8 @@ namespace Gst { NONE, RECURSE, PATHS_ARE_DEFAULT_ONLY, - FILE_NAME_IS_SUFFIX + FILE_NAME_IS_SUFFIX, + FILE_NAME_IS_PREFIX } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_PLUGIN_FLAG_", type_id = "gst_plugin_flags_get_type ()")] [Flags] @@ -3302,6 +3351,21 @@ namespace Gst { GLOBAL, CURRENT } + [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_TRACER_VALUE_FLAGS_", type_id = "gst_tracer_value_flags_get_type ()")] + [Flags] + public enum TracerValueFlags { + NONE, + OPTIONAL, + AGGREGATED + } + [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_TRACER_VALUE_SCOPE_", type_id = "gst_tracer_value_scope_get_type ()")] + [Version (since = "1.8")] + public enum TracerValueScope { + PROCESS, + THREAD, + ELEMENT, + PAD + } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_TYPE_FIND_", type_id = "gst_type_find_probability_get_type ()")] public enum TypeFindProbability { NONE, @@ -3355,7 +3419,8 @@ namespace Gst { LINK, COULD_NOT_SET_PROPERTY, EMPTY_BIN, - EMPTY; + EMPTY, + DELAYED_LINK; public static GLib.Quark quark (); } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_PLUGIN_ERROR_")] @@ -3486,6 +3551,9 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h", has_target = false)] public delegate Gst.FlowReturn PadChainListFunction (Gst.Pad pad, Gst.Object? parent, owned Gst.BufferList list); [CCode (cheader_filename = "gst/gst.h", has_target = false)] + [Version (since = "1.8")] + public delegate Gst.FlowReturn PadEventFullFunction (Gst.Pad pad, Gst.Object? parent, owned Gst.Event event); + [CCode (cheader_filename = "gst/gst.h", has_target = false)] public delegate bool PadEventFunction (Gst.Pad pad, Gst.Object? parent, owned Gst.Event event); [CCode (cheader_filename = "gst/gst.h", instance_pos = 1.9)] public delegate bool PadForwardFunction (Gst.Pad pad); diff --git a/vapi/gstreamer-app-1.0.vapi b/vapi/gstreamer-app-1.0.vapi index 614384ae4..1d8bd6fa9 100644 --- a/vapi/gstreamer-app-1.0.vapi +++ b/vapi/gstreamer-app-1.0.vapi @@ -12,17 +12,20 @@ namespace Gst { public bool get_drop (); public bool get_emit_signals (); public uint get_max_buffers (); + public bool get_wait_on_eos (); public bool is_eos (); public void set_caps (Gst.Caps caps); public void set_drop (bool drop); public void set_emit_signals (bool emit); public void set_max_buffers (uint max); + public void set_wait_on_eos (bool wait); public Gst.Caps caps { owned get; set; } public bool drop { get; set; } public bool emit_signals { get; set; } [NoAccessorMethod] public virtual bool eos { get; } public uint max_buffers { get; set; } + public bool wait_on_eos { get; set; } public virtual signal Gst.FlowReturn new_preroll (); public virtual signal Gst.FlowReturn new_sample (); [HasEmitter] diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index e20a299e0..d7831faf4 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -85,6 +85,14 @@ namespace Gst { [NoAccessorMethod] public uint track { get; set; } } + [CCode (cheader_filename = "gst/audio/audio.h")] + [Compact] + [GIR (name = "AudioChannelMixer")] + public class ChannelMixer { + public void free (); + public bool is_passthrough (); + public void samples (void* @in, void* @out, int samples); + } [CCode (cheader_filename = "gst/audio/audio.h", type_id = "gst_audio_clock_get_type ()")] [GIR (name = "AudioClock")] public class Clock : Gst.SystemClock { @@ -95,6 +103,19 @@ namespace Gst { public static void invalidate (Gst.Clock clock); public void reset (Gst.ClockTime time); } + [CCode (cheader_filename = "gst/audio/audio.h")] + [Compact] + [GIR (name = "AudioConverter")] + public class Converter { + public void free (); + public unowned Gst.Structure get_config (int in_rate, int out_rate); + public size_t get_in_frames (size_t out_frames); + public size_t get_max_latency (); + public size_t get_out_frames (size_t in_frames); + public void reset (); + public bool samples (Gst.Audio.ConverterFlags flags, void* @in, size_t in_frames, void* @out, size_t out_frames); + public bool update_config (int in_rate, int out_rate, owned Gst.Structure? config); + } [CCode (cheader_filename = "gst/audio/audio.h", type_id = "gst_audio_decoder_get_type ()")] [GIR (name = "AudioDecoder")] public abstract class Decoder : Gst.Element { @@ -285,6 +306,14 @@ namespace Gst { public void set_format (Gst.Audio.Format format, int rate, int channels, Gst.Audio.ChannelPosition position); public Gst.Caps to_caps (); } + [CCode (cheader_filename = "gst/audio/audio.h")] + [Compact] + [GIR (name = "AudioQuantize")] + public class Quantize { + public void free (); + public void reset (); + public void samples (void* @in, void* @out, uint samples); + } [CCode (cheader_filename = "gst/audio/audio.h", type_id = "gst_audio_ring_buffer_get_type ()")] [GIR (name = "AudioRingBuffer")] public abstract class RingBuffer : Gst.Object { @@ -399,6 +428,15 @@ namespace Gst { public weak Gst.TagList tags; } [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] + [GIR (name = "AudioClippingMeta")] + [Version (since = "1.8")] + public struct ClippingMeta { + public Gst.Meta meta; + public Gst.Format format; + public uint64 start; + public uint64 end; + } + [CCode (cheader_filename = "gst/audio/audio.h", has_type_id = false)] [GIR (name = "AudioDownmixMeta")] public struct DownmixMeta { public Gst.Meta meta; @@ -472,6 +510,15 @@ namespace Gst { [CCode (cname = "Stream consists of the whole disc")] CONTINUOUS } + [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_CHANNEL_MIXER_FLAGS_", type_id = "gst_audio_channel_mixer_flags_get_type ()")] + [Flags] + [GIR (name = "AudioChannelMixerFlags")] + public enum ChannelMixerFlags { + NONE, + NON_INTERLEAVED, + UNPOSITIONED_IN, + UNPOSITIONED_OUT + } [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_CHANNEL_POSITION_", type_id = "gst_audio_channel_position_get_type ()")] [GIR (name = "AudioChannelPosition")] public enum ChannelPosition { @@ -507,6 +554,22 @@ namespace Gst { SURROUND_LEFT, SURROUND_RIGHT } + [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_CONVERTER_FLAG_", type_id = "gst_audio_converter_flags_get_type ()")] + [Flags] + [GIR (name = "AudioConverterFlags")] + public enum ConverterFlags { + NONE, + IN_WRITABLE, + VARIABLE_RATE + } + [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_DITHER_", type_id = "gst_audio_dither_method_get_type ()")] + [GIR (name = "AudioDitherMethod")] + public enum DitherMethod { + NONE, + RPDF, + TPDF, + TPDF_HF + } [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_FLAG_", type_id = "gst_audio_flags_get_type ()")] [Flags] [GIR (name = "AudioFlags")] @@ -580,10 +643,28 @@ namespace Gst { INTERLEAVED, NON_INTERLEAVED } + [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_NOISE_SHAPING_", type_id = "gst_audio_noise_shaping_method_get_type ()")] + [GIR (name = "AudioNoiseShapingMethod")] + public enum NoiseShapingMethod { + NONE, + ERROR_FEEDBACK, + SIMPLE, + MEDIUM, + HIGH + } [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_PACK_FLAG_", type_id = "gst_audio_pack_flags_get_type ()")] + [Flags] [GIR (name = "AudioPackFlags")] public enum PackFlags { - NONE + NONE, + TRUNCATE_RANGE + } + [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_QUANTIZE_FLAG_", type_id = "gst_audio_quantize_flags_get_type ()")] + [Flags] + [GIR (name = "AudioQuantizeFlags")] + public enum QuantizeFlags { + NONE, + NON_INTERLEAVED } [CCode (cheader_filename = "gst/audio/audio.h", cprefix = "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_", type_id = "gst_audio_ring_buffer_format_type_get_type ()")] [GIR (name = "AudioRingBufferFormatType")] @@ -629,6 +710,12 @@ namespace Gst { public delegate void RingBufferCallback (Gst.Audio.RingBuffer rbuf, [CCode (array_length_cname = "len", array_length_pos = 2.1, array_length_type = "guint")] uint8[] data); [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_CHANNELS_RANGE")] public const string CHANNELS_RANGE; + [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_CONVERTER_OPT_DITHER_METHOD")] + public const string CONVERTER_OPT_DITHER_METHOD; + [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD")] + public const string CONVERTER_OPT_NOISE_SHAPING_METHOD; + [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_CONVERTER_OPT_QUANTIZATION")] + public const string CONVERTER_OPT_QUANTIZATION; [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_DECODER_MAX_ERRORS")] public const int DECODER_MAX_ERRORS; [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_AUDIO_DECODER_SINK_NAME")] @@ -650,6 +737,9 @@ namespace Gst { [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_META_TAG_AUDIO_CHANNELS_STR")] [Version (since = "1.2")] public const string META_TAG_AUDIO_CHANNELS_STR; + [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_META_TAG_AUDIO_RATE_STR")] + [Version (since = "1.8")] + public const string META_TAG_AUDIO_RATE_STR; [CCode (cheader_filename = "gst/audio/audio.h", cname = "GST_META_TAG_AUDIO_STR")] [Version (since = "1.2")] public const string META_TAG_AUDIO_STR; @@ -659,6 +749,9 @@ namespace Gst { public static Gst.Buffer audio_buffer_clip (owned Gst.Buffer buffer, Gst.Segment segment, int rate, int bpf); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_buffer_reorder_channels")] public static bool audio_buffer_reorder_channels (Gst.Buffer buffer, Gst.Audio.Format format, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_channel_get_fallback_mask")] + [Version (since = "1.8")] + public static uint64 audio_channel_get_fallback_mask (int channels); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_channel_positions_from_mask")] public static bool audio_channel_positions_from_mask (uint64 channel_mask, [CCode (array_length_cname = "channels", array_length_pos = 0.5)] Gst.Audio.ChannelPosition[] position); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_channel_positions_to_mask")] @@ -667,6 +760,10 @@ namespace Gst { public static bool audio_channel_positions_to_valid_order ([CCode (array_length_cname = "channels", array_length_pos = 1.1)] Gst.Audio.ChannelPosition[] position); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_check_valid_channel_positions")] public static bool audio_check_valid_channel_positions ([CCode (array_length_cname = "channels", array_length_pos = 1.5)] Gst.Audio.ChannelPosition[] position, bool force_order); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_clipping_meta_api_get_type")] + public static GLib.Type audio_clipping_meta_api_get_type (); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_clipping_meta_get_info")] + public static unowned Gst.MetaInfo? audio_clipping_meta_get_info (); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_downmix_meta_api_get_type")] public static GLib.Type audio_downmix_meta_api_get_type (); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_downmix_meta_get_info")] @@ -691,6 +788,9 @@ namespace Gst { public static bool audio_iec61937_payload ([CCode (array_length_cname = "src_n", array_length_pos = 1.5, array_length_type = "guint")] uint8[] src, [CCode (array_length_cname = "dst_n", array_length_pos = 2.5, array_length_type = "guint")] uint8[] dst, Gst.Audio.RingBufferSpec spec, int endianness); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_audio_reorder_channels")] public static bool audio_reorder_channels ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, Gst.Audio.Format format, int channels, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] from, [CCode (array_length = false)] Gst.Audio.ChannelPosition[] to); + [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_clipping_meta")] + [Version (since = "1.8")] + public static unowned Gst.Audio.ClippingMeta? buffer_add_audio_clipping_meta (Gst.Buffer buffer, Gst.Format format, uint64 start, uint64 end); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_add_audio_downmix_meta")] public static unowned Gst.Audio.DownmixMeta? buffer_add_audio_downmix_meta (Gst.Buffer buffer, [CCode (array_length_cname = "from_channels", array_length_pos = 2.5)] Gst.Audio.ChannelPosition[] from_position, [CCode (array_length_cname = "to_channels", array_length_pos = 3.5)] Gst.Audio.ChannelPosition[] to_position, float matrix); [CCode (cheader_filename = "gst/audio/audio.h", cname = "gst_buffer_get_audio_downmix_meta_for_channels")] diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi index f8aa9e1d0..bf6a3d1ba 100644 --- a/vapi/gstreamer-check-1.0.vapi +++ b/vapi/gstreamer-check-1.0.vapi @@ -25,6 +25,8 @@ namespace Gst { [CCode (has_construct_function = false, type = "GstClock*")] public TestClock (); public void advance_time (Gst.ClockTimeDiff delta); + [Version (since = "1.8")] + public bool crank (); public Gst.ClockTime get_next_entry_time (); public bool has_id (Gst.ClockID id); [Version (since = "1.4")] @@ -175,6 +177,9 @@ namespace Gst { [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareBufferFunc", has_target = false)] [Version (since = "1.6")] public delegate Gst.Buffer HarnessPrepareBufferFunc (Gst.Check.Harness h, void* data); + [CCode (cheader_filename = "gst/check/check.h", cname = "GstHarnessPrepareEventFunc", has_target = false)] + [Version (since = "1.8")] + public delegate Gst.Event HarnessPrepareEventFunc (Gst.Check.Harness h, void* data); [CCode (cheader_filename = "gst/check/check.h")] public static void abi_list (Gst.Check.ABIStruct list, bool have_abi_sizes); [CCode (cheader_filename = "gst/check/check.h")] diff --git a/vapi/gstreamer-controller-1.0.vapi b/vapi/gstreamer-controller-1.0.vapi index be45c3d8d..65e89a014 100644 --- a/vapi/gstreamer-controller-1.0.vapi +++ b/vapi/gstreamer-controller-1.0.vapi @@ -23,6 +23,12 @@ namespace Gst { public class ControlPoint { [CCode (cname = "cache.cubic.h")] public double cache_cubic_h; + [CCode (cname = "cache.cubic_monotonic.c1s")] + public double cache_cubic_monotonic_c1s; + [CCode (cname = "cache.cubic_monotonic.c2s")] + public double cache_cubic_monotonic_c2s; + [CCode (cname = "cache.cubic_monotonic.c3s")] + public double cache_cubic_monotonic_c3s; [CCode (cname = "cache.cubic.z")] public double cache_cubic_z; public Gst.ClockTime timestamp; @@ -105,7 +111,8 @@ namespace Gst { public enum InterpolationMode { NONE, LINEAR, - CUBIC + CUBIC, + CUBIC_MONOTONIC } [CCode (cheader_filename = "gst/controller/controller.h", cname = "GstLFOWaveform", cprefix = "GST_LFO_WAVEFORM_", type_id = "gst_lfo_waveform_get_type ()")] [GIR (name = "LFOWaveform")] diff --git a/vapi/gstreamer-net-1.0.vapi b/vapi/gstreamer-net-1.0.vapi index b2a4849e9..20d6c817c 100644 --- a/vapi/gstreamer-net-1.0.vapi +++ b/vapi/gstreamer-net-1.0.vapi @@ -39,7 +39,11 @@ namespace Gst { [NoAccessorMethod] public uint domain { get; construct; } [NoAccessorMethod] + public uint64 grandmaster_clock_id { get; } + [NoAccessorMethod] public Gst.Clock internal_clock { owned get; } + [NoAccessorMethod] + public uint64 master_clock_id { get; } } [CCode (cheader_filename = "gst/net/net.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_net_time_packet_get_type ()")] [Compact] @@ -59,17 +63,17 @@ namespace Gst { } [CCode (cheader_filename = "gst/net/net.h", type_id = "gst_net_time_provider_get_type ()")] [GIR (name = "NetTimeProvider")] - public class TimeProvider : Gst.Object { + public class TimeProvider : Gst.Object, GLib.Initable { [CCode (has_construct_function = false)] public TimeProvider (Gst.Clock clock, string? address, int port); [NoAccessorMethod] public bool active { get; set; } [NoAccessorMethod] - public string address { owned get; set; } + public string address { owned get; construct; } [NoAccessorMethod] - public Gst.Clock clock { owned get; set; } + public Gst.Clock clock { owned get; construct; } [NoAccessorMethod] - public int port { get; set; } + public int port { get; construct; } } [CCode (cheader_filename = "gst/net/net.h", has_type_id = false)] [GIR (name = "NetAddressMeta")] @@ -103,6 +107,8 @@ namespace Gst { public static unowned Gst.Net.AddressMeta? buffer_add_net_address_meta (Gst.Buffer buffer, GLib.SocketAddress addr); [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_add_net_control_message_meta")] public static unowned Gst.Net.ControlMessageMeta? buffer_add_net_control_message_meta (Gst.Buffer buffer, GLib.SocketControlMessage message); + [CCode (cheader_filename = "gst/net/net.h", cname = "gst_buffer_get_net_address_meta")] + public static unowned Gst.Net.AddressMeta? buffer_get_net_address_meta (Gst.Buffer buffer); [CCode (cheader_filename = "gst/net/net.h")] public static GLib.Type control_message_meta_api_get_type (); [CCode (cheader_filename = "gst/net/net.h")] diff --git a/vapi/gstreamer-pbutils-1.0.vapi b/vapi/gstreamer-pbutils-1.0.vapi index 2fbc4c4e3..19bb6aacf 100644 --- a/vapi/gstreamer-pbutils-1.0.vapi +++ b/vapi/gstreamer-pbutils-1.0.vapi @@ -35,6 +35,14 @@ namespace Gst { public static unowned string get_profile (uint8 vis_obj_seq, uint len); } } + [CCode (cheader_filename = "gst/pbutils/pbutils.h", lower_case_cprefix = "gst_audio_visualizer_", lower_case_csuffix = "audio_visualizer", type_id = "gst_audio_visualizer_get_type ()")] + [GIR (name = "AudioVisualizer-BaseExtLibvisual")] + public abstract class AudioVisualizer-BaseExtLibvisual : Gst.Element { + [CCode (has_construct_function = false)] + protected AudioVisualizer-BaseExtLibvisual (); + [NoAccessorMethod] + public uint shade_amount { get; set; } + } [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscoverer", lower_case_cprefix = "gst_discoverer_", type_id = "gst_discoverer_get_type ()")] [GIR (name = "Discoverer")] public class Discoverer : GLib.Object { @@ -227,6 +235,28 @@ namespace Gst { public void set_startup_notification_id (string startup_id); public void set_xid (uint xid); } + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstAudioVisualizer", has_type_id = false)] + [GIR (name = "AudioVisualizer")] + public struct AudioVisualizer { + public weak Gst.Element parent; + public uint req_spf; + public weak Gst.Video.Info vinfo; + public weak Gst.Audio.Info ainfo; + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstAudioVisualizerShader", cprefix = "GST_AUDIO_VISUALIZER_SHADER_", type_id = "gst_audio_visualizer_shader_get_type ()")] + [GIR (name = "AudioVisualizerShader")] + public enum AudioVisualizerShader { + NONE, + FADE, + FADE_AND_MOVE_UP, + FADE_AND_MOVE_DOWN, + FADE_AND_MOVE_LEFT, + FADE_AND_MOVE_RIGHT, + FADE_AND_MOVE_HORIZ_OUT, + FADE_AND_MOVE_HORIZ_IN, + FADE_AND_MOVE_VERT_OUT, + FADE_AND_MOVE_VERT_IN + } [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstDiscovererResult", cprefix = "GST_DISCOVERER_", type_id = "gst_discoverer_result_get_type ()")] [GIR (name = "DiscovererResult")] public enum DiscovererResult { @@ -263,6 +293,8 @@ namespace Gst { HELPER_MISSING, INSTALL_IN_PROGRESS } + [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); [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GstInstallPluginsResultFunc", instance_pos = 1.9)] public delegate void InstallPluginsResultFunc (Gst.PbUtils.InstallPluginsReturn result); [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "GST_ENCODING_CATEGORY_CAPTURE")] @@ -293,6 +325,21 @@ namespace Gst { public static unowned string codec_utils_h265_get_profile (uint8 profile_tier_level, uint len); [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_h265_get_tier")] public static unowned string codec_utils_h265_get_tier (uint8 profile_tier_level, uint len); + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_caps")] + [Version (since = "1.8")] + public static Gst.Caps codec_utils_opus_create_caps (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, uint8? channel_mapping); + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_caps_from_header")] + [Version (since = "1.8")] + public static Gst.Caps codec_utils_opus_create_caps_from_header (Gst.Buffer header, Gst.Buffer? comments); + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_create_header")] + [Version (since = "1.8")] + public static Gst.Buffer codec_utils_opus_create_header (uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, uint8? channel_mapping, uint16 pre_skip, int16 output_gain); + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_parse_caps")] + [Version (since = "1.8")] + public static bool codec_utils_opus_parse_caps (Gst.Caps caps, uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, uint8 channel_mapping); + [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_codec_utils_opus_parse_header")] + [Version (since = "1.8")] + public static bool codec_utils_opus_parse_header (Gst.Buffer header, uint32 rate, uint8 channels, uint8 channel_mapping_family, uint8 stream_count, uint8 coupled_count, uint8 channel_mapping, uint16 pre_skip, int16 output_gain); [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_encoding_list_all_targets")] public static GLib.List encoding_list_all_targets (string? categoryname); [CCode (cheader_filename = "gst/pbutils/pbutils.h", cname = "gst_encoding_list_available_categories")] diff --git a/vapi/gstreamer-rtsp-1.0.vapi b/vapi/gstreamer-rtsp-1.0.vapi index 6e127254a..ea09c08ac 100644 --- a/vapi/gstreamer-rtsp-1.0.vapi +++ b/vapi/gstreamer-rtsp-1.0.vapi @@ -10,6 +10,7 @@ namespace Gst { public void clear_auth_params (); public Gst.RTSP.Result close (); public Gst.RTSP.Result connect (GLib.TimeVal timeout); + public Gst.RTSP.Result connect_with_response (GLib.TimeVal timeout, Gst.RTSP.Message response); public Gst.RTSP.Result do_tunnel (Gst.RTSP.Connection conn2); public Gst.RTSP.Result flush (bool flush); public Gst.RTSP.Result free (); diff --git a/vapi/gstreamer-sdp-1.0.vapi b/vapi/gstreamer-sdp-1.0.vapi index c01195114..ff53cf941 100644 --- a/vapi/gstreamer-sdp-1.0.vapi +++ b/vapi/gstreamer-sdp-1.0.vapi @@ -42,12 +42,17 @@ namespace Gst { public bool add_t (Gst.SDP.MIKEYTSType type, [CCode (array_length = false)] uint8[] ts_value); [Version (since = "1.4")] public bool add_t_now_ntp_utc (); + [Version (since = "1.8")] + public string base64_encode (); [Version (since = "1.4")] public unowned Gst.SDP.MIKEYPayload find_payload (Gst.SDP.MIKEYPayloadType type, uint nth); [CCode (has_construct_function = false)] [Version (since = "1.4")] public MIKEYMessage.from_bytes (GLib.Bytes bytes, Gst.SDP.MIKEYDecryptInfo info) throws GLib.Error; [CCode (has_construct_function = false)] + [Version (since = "1.8")] + public MIKEYMessage.from_caps (Gst.Caps caps); + [CCode (has_construct_function = false)] [Version (since = "1.4")] public MIKEYMessage.from_data ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] data, Gst.SDP.MIKEYDecryptInfo info) throws GLib.Error; [Version (since = "1.4")] @@ -199,6 +204,8 @@ namespace Gst { public Gst.SDP.Result add_zone (string adj_time, string typed_time); public string as_text (); public uint attributes_len (); + [Version (since = "1.8")] + public Gst.SDP.Result attributes_to_caps (Gst.Caps caps); public uint bandwidths_len (); [Version (since = "1.2")] public Gst.SDP.Result copy (out Gst.SDP.Message copy); @@ -343,6 +350,8 @@ namespace Gst { public Gst.SDP.Result add_format (string format); public string as_text (); public uint attributes_len (); + [Version (since = "1.8")] + public Gst.SDP.Result attributes_to_caps (Gst.Caps caps); public uint bandwidths_len (); public uint connections_len (); [Version (since = "1.2")] @@ -353,6 +362,8 @@ namespace Gst { public unowned string get_attribute_val (string key); public unowned string get_attribute_val_n (string key, uint nth); public unowned Gst.SDP.Bandwidth? get_bandwidth (uint idx); + [Version (since = "1.8")] + public Gst.Caps get_caps_from_media (int pt); public unowned Gst.SDP.Connection? get_connection (uint idx); public unowned string get_format (uint idx); public unowned string get_information (); @@ -553,8 +564,14 @@ namespace Gst { [CCode (cheader_filename = "gst/sdp/sdp.h")] public static bool address_is_multicast (string nettype, string addrtype, string addr); [CCode (cheader_filename = "gst/sdp/sdp.h")] + [Version (since = "1.8")] + public static string make_keymgmt (string uri, string base64); + [CCode (cheader_filename = "gst/sdp/sdp.h")] public static Gst.SDP.Result media_new (out Gst.SDP.Media media); [CCode (cheader_filename = "gst/sdp/sdp.h")] + [Version (since = "1.8")] + public static Gst.SDP.Result media_set_media_from_caps (Gst.Caps caps, Gst.SDP.Media media); + [CCode (cheader_filename = "gst/sdp/sdp.h")] public static string message_as_uri (string scheme, Gst.SDP.Message msg); [CCode (cheader_filename = "gst/sdp/sdp.h")] public static Gst.SDP.Result message_new (out Gst.SDP.Message msg); diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi index d723af1c6..e9f7c9f10 100644 --- a/vapi/gstreamer-video-1.0.vapi +++ b/vapi/gstreamer-video-1.0.vapi @@ -405,6 +405,15 @@ namespace Gst { public bool try_set_render_rectangle (int x, int y, int width, int height); } [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)] + [GIR (name = "VideoAffineTransformationMeta")] + public struct AffineTransformationMeta { + public Gst.Meta meta; + [CCode (array_length = false, array_null_terminated = true)] + public weak float[] matrix; + [Version (since = "1.8")] + public void apply_matrix (float matrix); + } + [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)] [GIR (name = "VideoAlignment")] public struct Alignment { public uint padding_top; @@ -482,8 +491,6 @@ namespace Gst { public Gst.Video.TileMode tile_mode; public uint tile_ws; public uint tile_hs; - [CCode (array_length = false, array_null_terminated = true)] - public weak void*[] _gst_reserved; } [CCode (cheader_filename = "gst/video/video.h", has_type_id = false)] [GIR (name = "VideoFrame")] @@ -668,7 +675,8 @@ namespace Gst { SMPTE170M, SMPTE240M, FILM, - BT2020 + BT2020, + ADOBERGB } [CCode (cheader_filename = "gst/video/video.h", cprefix = "GST_VIDEO_COLOR_RANGE_", type_id = "gst_video_color_range_get_type ()")] [GIR (name = "VideoColorRange")] @@ -1013,8 +1021,11 @@ namespace Gst { GAMMA28, LOG100, LOG316, - BT2020_12 + BT2020_12, + ADOBERGB } + [CCode (cheader_filename = "gst/video/video.h", has_target = false)] + public delegate bool AffineTransformationGetMatrix (Gst.Video.AffineTransformationMeta meta, float matrix); [CCode (cheader_filename = "gst/video/video.h", instance_pos = 2.9)] public delegate void ConvertSampleCallback (Gst.Sample sample, GLib.Error error); [CCode (cheader_filename = "gst/video/video.h", has_target = false)] @@ -1023,6 +1034,8 @@ 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", 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")] public const string BUFFER_POOL_OPTION_VIDEO_ALIGNMENT; [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META")] @@ -1030,6 +1043,8 @@ namespace Gst { public const string BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META; [CCode (cheader_filename = "gst/video/video.h", cname = "GST_BUFFER_POOL_OPTION_VIDEO_META")] public const string BUFFER_POOL_OPTION_VIDEO_META; + [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META")] + public const string CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META; [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META")] public const string CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META; [CCode (cheader_filename = "gst/video/video.h", cname = "GST_CAPS_FEATURE_META_GST_VIDEO_META")] @@ -1164,9 +1179,16 @@ namespace Gst { [CCode (cheader_filename = "gst/video/video.h", cname = "GST_VIDEO_TILE_Y_TILES_SHIFT")] public const int TILE_Y_TILES_SHIFT; [CCode (cheader_filename = "gst/video/video.h")] + public static GLib.Type affine_transformation_meta_api_get_type (); + [CCode (cheader_filename = "gst/video/video.h")] + public static unowned Gst.MetaInfo? affine_transformation_meta_get_info (); + [CCode (cheader_filename = "gst/video/video.h")] public static bool blend (Gst.Video.Frame dest, Gst.Video.Frame src, int x, int y, float global_alpha); [CCode (cheader_filename = "gst/video/video.h")] public static void blend_scale_linear_RGBA (Gst.Video.Info src, Gst.Buffer src_buffer, int dest_height, int dest_width, out unowned Gst.Video.Info dest, out Gst.Buffer dest_buffer); + [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_affine_transformation_meta")] + [Version (since = "1.8")] + public static unowned Gst.Video.AffineTransformationMeta? buffer_add_video_affine_transformation_meta (Gst.Buffer buffer); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_gl_texture_upload_meta")] public static unowned Gst.Video.GLTextureUploadMeta? buffer_add_video_gl_texture_upload_meta (Gst.Buffer buffer, Gst.Video.GLTextureOrientation texture_orientation, uint n_textures, Gst.Video.GLTextureType texture_type, [CCode (delegate_target_pos = 5.5)] Gst.Video.GLTextureUpload upload, GLib.BoxedCopyFunc user_data_copy, GLib.BoxedFreeFunc user_data_free); [CCode (cheader_filename = "gst/video/video.h", cname = "gst_buffer_add_video_meta")] diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata index 7986226fc..fe27c5a00 100644 --- a/vapi/metadata/Gst-1.0.metadata +++ b/vapi/metadata/Gst-1.0.metadata @@ -217,6 +217,11 @@ ElementFactory.get_static_pad_templates type="GLib.List