From: Arun Raghavan Date: Thu, 18 Nov 2010 15:10:58 +0000 (+0530) Subject: gstreamer-pbutils-0.10: Update for 0.10.31 X-Git-Tag: 0.11.3~61 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c8ac07a5f74b7f968a031410298d5e7ee82d77b6;p=thirdparty%2Fvala.git gstreamer-pbutils-0.10: Update for 0.10.31 --- diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi index 07aa1f321..08a64e5cd 100644 --- a/vapi/gstreamer-pbutils-0.10.vapi +++ b/vapi/gstreamer-pbutils-0.10.vapi @@ -2,6 +2,70 @@ [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")] namespace Gst { + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class Discoverer : GLib.Object { + [CCode (has_construct_function = false)] + public Discoverer (Gst.ClockTime timeout) throws GLib.Error; + public Gst.DiscovererInfo discover_uri (string uri) throws GLib.Error; + public bool discover_uri_async (string uri); + public void start (); + public void stop (); + [NoAccessorMethod] + public uint64 timeout { get; set construct; } + public virtual signal void discovered (Gst.DiscovererInfo info, GLib.Error err); + public virtual signal void finished (); + public virtual signal void starting (); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class DiscovererAudioInfo : Gst.DiscovererStreamInfo { + public uint get_bitrate (); + public uint get_channels (); + public uint get_depth (); + public uint get_max_bitrate (); + public uint get_sample_rate (); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class DiscovererContainerInfo : Gst.DiscovererStreamInfo { + public GLib.List get_streams (); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class DiscovererInfo : Gst.MiniObject { + public GLib.List get_audio_streams (); + public GLib.List get_container_streams (); + public Gst.ClockTime get_duration (); + public unowned Gst.Structure get_misc (); + public Gst.DiscovererResult get_result (); + public Gst.DiscovererStreamInfo get_stream_info (); + public GLib.List get_stream_list (); + public GLib.List get_streams (GLib.Type streamtype); + public unowned Gst.TagList get_tags (); + public unowned string get_uri (); + public GLib.List get_video_streams (); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class DiscovererStreamInfo : Gst.MiniObject { + public Gst.Caps get_caps (); + public unowned Gst.Structure get_misc (); + public Gst.DiscovererStreamInfo get_next (); + public Gst.DiscovererStreamInfo get_previous (); + public unowned string get_stream_type_nick (); + public unowned Gst.TagList get_tags (); + public static void list_free (GLib.List infos); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class DiscovererVideoInfo : Gst.DiscovererStreamInfo { + public uint get_bitrate (); + public uint get_depth (); + public uint get_framerate_denom (); + public uint get_framerate_num (); + public uint get_height (); + public uint get_max_bitrate (); + public uint get_par_denom (); + public uint get_par_num (); + public uint get_width (); + public bool is_image (); + public bool is_interlaced (); + } [Compact] [CCode (type_id = "GST_TYPE_INSTALL_PLUGINS_CONTEXT", cheader_filename = "gst/pbutils/pbutils.h")] public class InstallPluginsContext { @@ -9,6 +73,15 @@ namespace Gst { public InstallPluginsContext (); public void set_xid (uint xid); } + [CCode (cprefix = "GST_DISCOVERER_", cheader_filename = "gst/pbutils/pbutils.h")] + public enum DiscovererResult { + OK, + URI_INVALID, + ERROR, + TIMEOUT, + BUSY, + MISSING_PLUGINS + } [CCode (cprefix = "GST_INSTALL_PLUGINS_", cheader_filename = "gst/pbutils/pbutils.h")] public enum InstallPluginsReturn { SUCCESS, @@ -26,6 +99,34 @@ namespace Gst { [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public delegate void InstallPluginsResultFunc (Gst.InstallPluginsReturn result); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const int PLUGINS_BASE_VERSION_MAJOR; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const int PLUGINS_BASE_VERSION_MICRO; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const int PLUGINS_BASE_VERSION_MINOR; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const int PLUGINS_BASE_VERSION_NANO; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static bool codec_utils_aac_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] audio_config); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_aac_get_level ([CCode (array_length_pos = 1.9)] uchar[] audio_config); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_aac_get_profile ([CCode (array_length_pos = 1.9)] uchar[] audio_config); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static uint codec_utils_aac_get_sample_rate_from_index (uint sr_idx); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static bool codec_utils_h264_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] sps); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_h264_get_level ([CCode (array_length_pos = 1.9)] uchar[] sps); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_h264_get_profile ([CCode (array_length_pos = 1.9)] uchar[] sps); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static bool codec_utils_mpeg4video_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] vis_obj_seq); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_mpeg4video_get_level ([CCode (array_length_pos = 1.9)] uchar[] vis_obj_seq); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string codec_utils_mpeg4video_get_profile ([CCode (array_length_pos = 1.9)] uchar[] vis_obj_seq); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public static Gst.InstallPluginsReturn install_plugins_async ([CCode (array_length = false)] string[] details, Gst.InstallPluginsContext? ctx, Gst.InstallPluginsResultFunc func); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public static bool install_plugins_installation_in_progress (); @@ -77,4 +178,8 @@ namespace Gst { public static unowned string pb_utils_get_source_description (string protocol); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public static void pb_utils_init (); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static void plugins_base_version (uint major, uint minor, uint micro, uint nano); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static unowned string plugins_base_version_string (); } diff --git a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi index f7c0a3784..3c6bfa526 100644 --- a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi +++ b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.gi @@ -1,6 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -159,6 +231,18 @@ + + + + + + + + + + + + @@ -166,6 +250,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -184,6 +505,14 @@ + + + + + + + + @@ -197,5 +526,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata index f873f1989..a7045c088 100644 --- a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata +++ b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata @@ -13,3 +13,57 @@ gst_missing_decoder_installer_detail_new transfer_ownership="1" gst_missing_encoder_installer_detail_new transfer_ownership="1" gst_install_plugins_async.details is_array="1" no_array_length="1" gst_install_plugins_async.ctx nullable="1" + +gst_codec_utils_aac_caps_set_level_and_profile.audio_config is_array="1" array_length_pos="2.9" +gst_codec_utils_aac_caps_set_level_and_profile.len hidden="1" +gst_codec_utils_aac_get_level.audio_config is_array="1" array_length_pos="1.9" +gst_codec_utils_aac_get_level.len hidden="1" +gst_codec_utils_aac_get_profile.audio_config is_array="1" array_length_pos="1.9" +gst_codec_utils_aac_get_profile.len hidden="1" +gst_codec_utils_h264_caps_set_level_and_profile.sps is_array="1" array_length_pos="2.9" +gst_codec_utils_h264_caps_set_level_and_profile.len hidden="1" +gst_codec_utils_h264_get_level.sps is_array="1" array_length_pos="1.9" +gst_codec_utils_h264_get_level.len hidden="1" +gst_codec_utils_h264_get_profile.sps is_array="1" array_length_pos="1.9" +gst_codec_utils_h264_get_profile.len hidden="1" +gst_codec_utils_mpeg4video_caps_set_level_and_profile.vis_obj_seq is_array="1" array_length_pos="2.9" +gst_codec_utils_mpeg4video_caps_set_level_and_profile.len hidden="1" +gst_codec_utils_mpeg4video_get_level.vis_obj_seq is_array="1" array_length_pos="1.9" +gst_codec_utils_mpeg4video_get_level.len hidden="1" +gst_codec_utils_mpeg4video_get_profile.vis_obj_seq is_array="1" array_length_pos="1.9" +gst_codec_utils_mpeg4video_get_profile.len hidden="1" + +GstDiscovererStreamInfo base_class="GstMiniObject" +GstDiscovererStreamInfoClass hidden="1" +GstDiscovererAudioInfo base_class="GstDiscovererStreamInfo" +GstDiscovererAudioInfoClass hidden="1" +GstDiscovererContainerInfo base_class="GstDiscovererStreamInfo" +GstDiscovererContainerInfoClass hidden="1" +GstDiscovererVideoInfo base_class="GstDiscovererStreamInfo" +GstDiscovererVideoInfoClass hidden="1" +GstDiscovererInfo base_class="GstMiniObject" +GstDiscovererInfoClass hidden="1" + +gst_discoverer_discover_uri transfer_ownership="1" + +# note, we're not using gst_discoverer_stream_information_list_free for freeing +# the lists returned by the various getters below. This is fine for now since +# Vala does the right thing (unrefs each element then g_list_free()). If either +# the way these lists are supposed to be freed changes, or it becomes possible +# to attach a free-function to a returned object, this needs to change. + +gst_discoverer_info_copy transfer_ownership="1" hidden="1" +# The real type is actually an argument to the function, so we just use the parent class +gst_discoverer_info_get_streams namespace_name="Gst" type_arguments="MiniObject" transfer_ownership="1" +gst_discoverer_info_get_stream_list namespace_name="Gst" type_arguments="DiscovererStreamInfo" transfer_ownership="1" +gst_discoverer_info_get_audio_streams namespace_name="Gst" type_arguments="DiscovererAudioInfo" transfer_ownership="1" +gst_discoverer_info_get_container_streams namespace_name="Gst" type_arguments="DiscovererVideoInfo" transfer_ownership="1" +gst_discoverer_info_get_video_streams namespace_name="Gst" type_arguments="DiscovererVideoInfo" transfer_ownership="1" +gst_discoverer_info_get_stream_info transfer_ownership="1" + +gst_discoverer_stream_info_get_caps transfer_ownership="1" +gst_discoverer_stream_info_get_next transfer_ownership="1" +gst_discoverer_stream_info_get_previous transfer_ownership="1" + +# The real type is actually an argument to the function, so we just use the parent class +gst_discoverer_container_info_get_streams namespace_name="Gst" type_arguments="MiniObject" transfer_ownership="1"