From: Arun Raghavan Date: Wed, 19 Jan 2011 07:48:33 +0000 (+0530) Subject: gstreamer-pbutils-0.10: Update for 0.10.32 X-Git-Tag: 0.11.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efbcb15be78cbdd5eca6e9e9b47b4b7759e7c92;p=thirdparty%2Fvala.git gstreamer-pbutils-0.10: Update for 0.10.32 Main change is the addition of encoding profiles and related API. --- diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi index 08a64e5cd..aafffca9f 100644 --- a/vapi/gstreamer-pbutils-0.10.vapi +++ b/vapi/gstreamer-pbutils-0.10.vapi @@ -35,6 +35,7 @@ namespace Gst { public Gst.ClockTime get_duration (); public unowned Gst.Structure get_misc (); public Gst.DiscovererResult get_result (); + public bool get_seekable (); public Gst.DiscovererStreamInfo get_stream_info (); public GLib.List get_stream_list (); public GLib.List get_streams (GLib.Type streamtype); @@ -66,6 +67,64 @@ namespace Gst { public bool is_image (); public bool is_interlaced (); } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class EncodingAudioProfile : Gst.EncodingProfile { + [CCode (has_construct_function = false)] + public EncodingAudioProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, uint presence); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class EncodingContainerProfile : Gst.EncodingProfile { + [CCode (has_construct_function = false)] + public EncodingContainerProfile (string? name, string? description, Gst.Caps format, string? preset); + public bool add_profile (owned Gst.EncodingProfile profile); + public bool contains_profile (Gst.EncodingProfile profile); + public unowned GLib.List get_profiles (); + } + [CCode (ref_function = "gst_encoding_profile_ref", unref_function = "gst_encoding_profile_unref", cheader_filename = "gst/pbutils/pbutils.h")] + public class EncodingProfile : Gst.MiniObject { + public static Gst.EncodingProfile find (string targetname, string profilename, string category); + public unowned string get_description (); + public unowned Gst.Caps get_format (); + public Gst.Caps get_input_caps (); + public unowned string get_name (); + public uint get_presence (); + public unowned string get_preset (); + public unowned Gst.Caps get_restriction (); + public unowned string get_type_nick (); + public bool is_equal (Gst.EncodingProfile b); + public unowned Gst.EncodingProfile @ref (); + public void set_description (string description); + public void set_format (Gst.Caps format); + public void set_name (string name); + public void set_presence (uint presence); + public void set_preset (string preset); + public void set_restriction (Gst.Caps restriction); + public void unref (); + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class EncodingTarget : Gst.MiniObject { + [CCode (has_construct_function = false)] + public EncodingTarget (string name, string category, string description, GLib.List profiles); + public bool add_profile (owned Gst.EncodingProfile profile); + public unowned string get_category (); + public unowned string get_description (); + public unowned string get_name (); + public Gst.EncodingProfile get_profile (string name); + public unowned GLib.List get_profiles (); + public static Gst.EncodingTarget load (string name, string category) throws GLib.Error; + public static Gst.EncodingTarget load_from_file (string filepath) throws GLib.Error; + public bool save () throws GLib.Error; + public bool save_to_file (string filepath) throws GLib.Error; + } + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public class EncodingVideoProfile : Gst.EncodingProfile { + [CCode (has_construct_function = false)] + public EncodingVideoProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, uint presence); + public uint get_pass (); + public bool get_variableframerate (); + public void set_pass (uint pass); + public void set_variableframerate (bool variableframerate); + } [Compact] [CCode (type_id = "GST_TYPE_INSTALL_PLUGINS_CONTEXT", cheader_filename = "gst/pbutils/pbutils.h")] public class InstallPluginsContext { @@ -99,6 +158,14 @@ 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 string ENCODING_CATEGORY_CAPTURE; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const string ENCODING_CATEGORY_DEVICE; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const string ENCODING_CATEGORY_ONLINE_SERVICE; + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public const string ENCODING_CATEGORY_STORAGE_EDITING; + [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; @@ -127,6 +194,10 @@ namespace Gst { [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 GLib.List encoding_list_all_targets (string categoryname); + [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + public static GLib.List encoding_list_available_categories (); + [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 (); diff --git a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala new file mode 100644 index 000000000..cd0cf6e15 --- /dev/null +++ b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10-custom.vala @@ -0,0 +1,29 @@ +/* gstreamer-0.10-custom.vala + * + * Copyright (C) 2011 Collabora Multimedia + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Arun Raghavan + */ + +namespace Gst { + [CCode (ref_function = "gst_encoding_profile_ref", unref_function = "gst_encoding_profile_unref")] + public class EncodingProfile : Gst.MiniObject { + public unowned EncodingProfile @ref (); + public void unref (); + } +} 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 3c6bfa526..2d07c6afb 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 @@ -73,6 +73,15 @@ + + + + + + + + + @@ -331,6 +340,12 @@ + + + + + + @@ -487,6 +502,281 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -583,9 +873,13 @@ + + + + - + 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 a7045c088..b6434068e 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 @@ -67,3 +67,39 @@ 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" + +GstEncodingAudioProfile base_class="GstEncodingProfile" +GstEncodingAudioProfileClass hidden="1" +GstEncodingVideoProfile base_class="GstEncodingProfile" +GstEncodingVideoProfileClass hidden="1" +GstEncodingContainerProfile base_class="GstEncodingProfile" +GstEncodingContainerProfileClass hidden="1" +GstEncodingProfile base_class="GstMiniObject" +GstEncodingProfileClass hidden="1" +GstEncodingTarget base_class="GstMiniObject" +GstEncodingTargetClass hidden="1" + +gst_encoding_profile_find transfer_ownership="1" +gst_encoding_profile_get_input_caps transfer_ownership="1" + +gst_encoding_video_profile_new.preset nullable=1 +gst_encoding_video_profile_new.restriction nullable=1 + +gst_encoding_audio_profile_new.preset nullable=1 +gst_encoding_audio_profile_new.restriction nullable=1 + +gst_encoding_container_profile_new.name nullable="1" +gst_encoding_container_profile_new.description nullable="1" +gst_encoding_container_profile_new.preset nullable="1" +gst_encoding_container_profile_add_profile.profile transfer_ownership="1" +gst_encoding_container_profile_get_profiles namespace_name="Gst" type_arguments="EncodingProfile" + +gst_encoding_target_new.profiles namespace_name="Gst" type_arguments="EncodingProfile" +gst_encoding_target_add_profile.profile transfer_ownership="1" +gst_encoding_target_get_profile transfer_ownership="1" +gst_encoding_target_get_profiles namespace_name="Gst" type_arguments="EncodingProfile" +gst_encoding_target_load transfer_ownership="1" +gst_encoding_target_load_from_file transfer_ownership="1" + +gst_encoding_list_all_targets namespace_name="Gst" type_arguments="EncodingTarget" transfer_ownership="1" +gst_encoding_list_available_categories type_arguments="string" transfer_ownership="1"