From: Rico Tzschichholz Date: Thu, 5 Oct 2017 12:17:07 +0000 (+0200) Subject: gstreamer-1.0: Update from 1.13+ git master X-Git-Tag: 0.39.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd9b9b7d085dcb306645b98839ca94787e61ac0;p=thirdparty%2Fvala.git gstreamer-1.0: Update from 1.13+ git master --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index fef7826a6..6c0271e9b 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -670,10 +670,10 @@ gstreamer-net-1.0: $(GENVAPI) --library $(srcdir)/gstreamer-net-1.0 --pkg gstreamer-1.0 --pkg gio-2.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstNet-1.0.gir gstreamer-pbutils-1.0: - $(GENVAPI) --library $(srcdir)/gstreamer-pbutils-1.0 --pkg gstreamer-base-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstPbutils-1.0.gir + $(GENVAPI) --library $(srcdir)/gstreamer-pbutils-1.0 --pkg gstreamer-base-1.0 --pkg gstreamer-audio-1.0 --pkg gstreamer-video-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstPbutils-1.0.gir gstreamer-player-1.0: - $(GENVAPI) --library $(srcdir)/gstreamer-player-1.0 --pkg gstreamer-1.0 --pkg gstreamer-video-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstPlayer-1.0.gir + $(GENVAPI) --library $(srcdir)/gstreamer-player-1.0 --pkg gstreamer-1.0 --pkg gstreamer-pbutils-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstPlayer-1.0.gir gstreamer-riff-1.0: $(GENVAPI) --library $(srcdir)/gstreamer-riff-1.0 --pkg gstreamer-1.0 --metadatadir $(METADATADIR) $(GIRDIR)/GstRiff-1.0.gir diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi index 79abbb526..3a1b18ddf 100644 --- a/vapi/gstreamer-1.0.vapi +++ b/vapi/gstreamer-1.0.vapi @@ -727,10 +727,14 @@ namespace Gst { public class BufferList : Gst.MiniObject { [CCode (has_construct_function = false)] public BufferList (); + [Version (since = "1.14")] + public size_t calculate_size (); [Version (since = "1.6")] public Gst.BufferList copy_deep (); public bool @foreach (Gst.BufferListFunc func); public unowned Gst.Buffer? @get (uint idx); + [Version (since = "1.14")] + public unowned Gst.Buffer? get_writable (uint idx); public void insert (int idx, owned Gst.Buffer buffer); public uint length (); public void remove (uint idx, uint length); @@ -2991,6 +2995,7 @@ namespace Gst { OTHER } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_DEBUG_", type_id = "gst_debug_color_flags_get_type ()")] + [Flags] public enum DebugColorFlags { FG_BLACK, FG_RED, @@ -3357,7 +3362,8 @@ namespace Gst { RECURSE, PATHS_ARE_DEFAULT_ONLY, FILE_NAME_IS_SUFFIX, - FILE_NAME_IS_PREFIX + FILE_NAME_IS_PREFIX, + PATHS_ARE_RELATIVE_TO_EXE } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_PLUGIN_FLAG_", type_id = "gst_plugin_flags_get_type ()")] [Flags] @@ -3466,6 +3472,7 @@ namespace Gst { } [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_STACK_TRACE_SHOW_", type_id = "gst_stack_trace_flags_get_type ()")] [Flags] + [Version (since = "1.12")] public enum StackTraceFlags { FULL } @@ -3958,6 +3965,9 @@ namespace Gst { [CCode (cheader_filename = "gst/gst.h")] public static GLib.Quark flow_to_quark (Gst.FlowReturn ret); [CCode (cheader_filename = "gst/gst.h")] + [Version (since = "1.14")] + public static unowned string get_main_executable_path (); + [CCode (cheader_filename = "gst/gst.h")] public static void init ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv); [CCode (cheader_filename = "gst/gst.h")] public static bool init_check ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv) throws GLib.Error; diff --git a/vapi/gstreamer-audio-1.0.vapi b/vapi/gstreamer-audio-1.0.vapi index bd2447030..82c11f266 100644 --- a/vapi/gstreamer-audio-1.0.vapi +++ b/vapi/gstreamer-audio-1.0.vapi @@ -426,6 +426,32 @@ namespace Gst { [NoWrapper] public virtual bool unprepare (); } + [CCode (cheader_filename = "gst/audio/audio.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_audio_stream_align_get_type ()")] + [Compact] + [GIR (name = "AudioStreamAlign")] + public class StreamAlign { + [CCode (has_construct_function = false)] + [Version (since = "1.14")] + public StreamAlign (int rate, Gst.ClockTime alignment_threshold, Gst.ClockTime discont_wait); + [Version (since = "1.14")] + public Gst.Audio.StreamAlign copy (); + [Version (since = "1.14")] + public void free (); + public Gst.ClockTime get_alignment_threshold (); + public Gst.ClockTime get_discont_wait (); + public int get_rate (); + [Version (since = "1.14")] + public uint64 get_samples_since_discont (); + [Version (since = "1.14")] + public Gst.ClockTime get_timestamp_at_discont (); + [Version (since = "1.14")] + public void mark_discont (); + [Version (since = "1.14")] + public bool process (bool discont, Gst.ClockTime timestamp, uint n_samples, out Gst.ClockTime out_timestamp, out Gst.ClockTime out_duration, out uint64 out_sample_position); + public void set_alignment_threshold (Gst.ClockTime alignment_threshold); + public void set_discont_wait (Gst.ClockTime discont_wait); + public void set_rate (int rate); + } [CCode (cheader_filename = "gst/audio/audio.h", cname = "GstStreamVolume", lower_case_cprefix = "gst_stream_volume_", type_cname = "GstStreamVolumeInterface", type_id = "gst_stream_volume_get_type ()")] [GIR (name = "StreamVolume")] public interface StreamVolume : GLib.Object { @@ -767,6 +793,8 @@ namespace Gst { 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_MIX_MATRIX")] + public const string CONVERTER_OPT_MIX_MATRIX; [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")] diff --git a/vapi/gstreamer-player-1.0.deps b/vapi/gstreamer-player-1.0.deps index 585ce323a..7a7c4d4c1 100644 --- a/vapi/gstreamer-player-1.0.deps +++ b/vapi/gstreamer-player-1.0.deps @@ -1,2 +1,2 @@ gstreamer-1.0 -gstreamer-video-1.0 +gstreamer-pbutils-1.0