1 /* gstreamer-pbutils-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
6 public class Discoverer : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Discoverer (Gst.ClockTime timeout) throws GLib.Error;
9 public Gst.DiscovererInfo discover_uri (string uri) throws GLib.Error;
10 public bool discover_uri_async (string uri);
14 public uint64 timeout { get; set construct; }
15 public virtual signal void discovered (Gst.DiscovererInfo info, GLib.Error err);
16 public virtual signal void finished ();
17 public virtual signal void starting ();
19 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
20 public class DiscovererAudioInfo : Gst.DiscovererStreamInfo {
21 public uint get_bitrate ();
22 public uint get_channels ();
23 public uint get_depth ();
24 public uint get_max_bitrate ();
25 public uint get_sample_rate ();
27 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
28 public class DiscovererContainerInfo : Gst.DiscovererStreamInfo {
29 public GLib.List<Gst.MiniObject> get_streams ();
31 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
32 public class DiscovererInfo : Gst.MiniObject {
33 public GLib.List<Gst.DiscovererAudioInfo> get_audio_streams ();
34 public GLib.List<Gst.DiscovererVideoInfo> get_container_streams ();
35 public Gst.ClockTime get_duration ();
36 public unowned Gst.Structure get_misc ();
37 public Gst.DiscovererResult get_result ();
38 public bool get_seekable ();
39 public Gst.DiscovererStreamInfo get_stream_info ();
40 public GLib.List<Gst.DiscovererStreamInfo> get_stream_list ();
41 public GLib.List<Gst.MiniObject> get_streams (GLib.Type streamtype);
42 public unowned Gst.TagList get_tags ();
43 public unowned string get_uri ();
44 public GLib.List<Gst.DiscovererVideoInfo> get_video_streams ();
46 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
47 public class DiscovererStreamInfo : Gst.MiniObject {
48 public Gst.Caps get_caps ();
49 public unowned Gst.Structure get_misc ();
50 public Gst.DiscovererStreamInfo get_next ();
51 public Gst.DiscovererStreamInfo get_previous ();
52 public unowned string get_stream_type_nick ();
53 public unowned Gst.TagList get_tags ();
54 public static void list_free (GLib.List infos);
56 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
57 public class DiscovererVideoInfo : Gst.DiscovererStreamInfo {
58 public uint get_bitrate ();
59 public uint get_depth ();
60 public uint get_framerate_denom ();
61 public uint get_framerate_num ();
62 public uint get_height ();
63 public uint get_max_bitrate ();
64 public uint get_par_denom ();
65 public uint get_par_num ();
66 public uint get_width ();
67 public bool is_image ();
68 public bool is_interlaced ();
70 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
71 public class EncodingAudioProfile : Gst.EncodingProfile {
72 [CCode (has_construct_function = false)]
73 public EncodingAudioProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, uint presence);
75 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
76 public class EncodingContainerProfile : Gst.EncodingProfile {
77 [CCode (has_construct_function = false)]
78 public EncodingContainerProfile (string? name, string? description, Gst.Caps format, string? preset);
79 public bool add_profile (owned Gst.EncodingProfile profile);
80 public bool contains_profile (Gst.EncodingProfile profile);
81 public unowned GLib.List<Gst.EncodingProfile> get_profiles ();
83 [CCode (ref_function = "gst_encoding_profile_ref", unref_function = "gst_encoding_profile_unref", cheader_filename = "gst/pbutils/pbutils.h")]
84 public class EncodingProfile : Gst.MiniObject {
85 public static Gst.EncodingProfile find (string targetname, string profilename, string category);
86 public unowned string get_description ();
87 public unowned Gst.Caps get_format ();
88 public Gst.Caps get_input_caps ();
89 public unowned string get_name ();
90 public uint get_presence ();
91 public unowned string get_preset ();
92 public unowned Gst.Caps get_restriction ();
93 public unowned string get_type_nick ();
94 public bool is_equal (Gst.EncodingProfile b);
95 public unowned Gst.EncodingProfile @ref ();
96 public void set_description (string description);
97 public void set_format (Gst.Caps format);
98 public void set_name (string name);
99 public void set_presence (uint presence);
100 public void set_preset (string preset);
101 public void set_restriction (Gst.Caps restriction);
102 public void unref ();
104 [CCode (ref_function = "gst_encoding_target_ref", unref_function = "gst_encoding_target_unref", cheader_filename = "gst/pbutils/pbutils.h")]
105 public class EncodingTarget : Gst.MiniObject {
106 [CCode (has_construct_function = false)]
107 public EncodingTarget (string name, string category, string description, GLib.List<Gst.EncodingProfile> profiles);
108 public bool add_profile (owned Gst.EncodingProfile profile);
109 public unowned string get_category ();
110 public unowned string get_description ();
111 public unowned string get_name ();
112 public Gst.EncodingProfile get_profile (string name);
113 public unowned GLib.List<Gst.EncodingProfile> get_profiles ();
114 public static Gst.EncodingTarget load (string name, string category) throws GLib.Error;
115 public static Gst.EncodingTarget load_from_file (string filepath) throws GLib.Error;
116 public unowned Gst.EncodingTarget @ref ();
117 public bool save () throws GLib.Error;
118 public bool save_to_file (string filepath) throws GLib.Error;
119 public void unref ();
121 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
122 public class EncodingVideoProfile : Gst.EncodingProfile {
123 [CCode (has_construct_function = false)]
124 public EncodingVideoProfile (Gst.Caps format, string? preset, Gst.Caps? restriction, uint presence);
125 public uint get_pass ();
126 public bool get_variableframerate ();
127 public void set_pass (uint pass);
128 public void set_variableframerate (bool variableframerate);
131 [CCode (type_id = "GST_TYPE_INSTALL_PLUGINS_CONTEXT", cheader_filename = "gst/pbutils/pbutils.h")]
132 public class InstallPluginsContext {
133 [CCode (has_construct_function = false)]
134 public InstallPluginsContext ();
135 public void set_xid (uint xid);
137 [CCode (cprefix = "GST_DISCOVERER_", cheader_filename = "gst/pbutils/pbutils.h")]
138 public enum DiscovererResult {
146 [CCode (cprefix = "GST_INSTALL_PLUGINS_", cheader_filename = "gst/pbutils/pbutils.h")]
147 public enum InstallPluginsReturn {
160 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
161 public delegate void InstallPluginsResultFunc (Gst.InstallPluginsReturn result);
162 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
163 public const string ENCODING_CATEGORY_CAPTURE;
164 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
165 public const string ENCODING_CATEGORY_DEVICE;
166 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
167 public const string ENCODING_CATEGORY_ONLINE_SERVICE;
168 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
169 public const string ENCODING_CATEGORY_STORAGE_EDITING;
170 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
171 public const int PLUGINS_BASE_VERSION_MAJOR;
172 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
173 public const int PLUGINS_BASE_VERSION_MICRO;
174 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
175 public const int PLUGINS_BASE_VERSION_MINOR;
176 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
177 public const int PLUGINS_BASE_VERSION_NANO;
178 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
179 public static bool codec_utils_aac_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] audio_config);
180 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
181 public static unowned string codec_utils_aac_get_level ([CCode (array_length_pos = 1.9)] uchar[] audio_config);
182 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
183 public static unowned string codec_utils_aac_get_profile ([CCode (array_length_pos = 1.9)] uchar[] audio_config);
184 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
185 public static uint codec_utils_aac_get_sample_rate_from_index (uint sr_idx);
186 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
187 public static bool codec_utils_h264_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] sps);
188 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
189 public static unowned string codec_utils_h264_get_level ([CCode (array_length_pos = 1.9)] uchar[] sps);
190 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
191 public static unowned string codec_utils_h264_get_profile ([CCode (array_length_pos = 1.9)] uchar[] sps);
192 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
193 public static bool codec_utils_mpeg4video_caps_set_level_and_profile (Gst.Caps caps, [CCode (array_length_pos = 2.9)] uchar[] vis_obj_seq);
194 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
195 public static unowned string codec_utils_mpeg4video_get_level ([CCode (array_length_pos = 1.9)] uchar[] vis_obj_seq);
196 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
197 public static unowned string codec_utils_mpeg4video_get_profile ([CCode (array_length_pos = 1.9)] uchar[] vis_obj_seq);
198 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
199 public static GLib.List<Gst.EncodingTarget> encoding_list_all_targets (string categoryname);
200 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
201 public static GLib.List<string> encoding_list_available_categories ();
202 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
203 public static Gst.InstallPluginsReturn install_plugins_async ([CCode (array_length = false)] string[] details, Gst.InstallPluginsContext? ctx, Gst.InstallPluginsResultFunc func);
204 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
205 public static bool install_plugins_installation_in_progress ();
206 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
207 public static unowned string install_plugins_return_get_name (Gst.InstallPluginsReturn ret);
208 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
209 public static bool install_plugins_supported ();
210 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
211 public static Gst.InstallPluginsReturn install_plugins_sync (string details, Gst.InstallPluginsContext ctx);
212 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
213 public static bool is_missing_plugin_message (Gst.Message msg);
214 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
215 public static string missing_decoder_installer_detail_new (Gst.Caps decode_caps);
216 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
217 public static Gst.Message missing_decoder_message_new (Gst.Element element, Gst.Caps decode_caps);
218 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
219 public static string missing_element_installer_detail_new (string factory_name);
220 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
221 public static Gst.Message missing_element_message_new (Gst.Element element, string factory_name);
222 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
223 public static string missing_encoder_installer_detail_new (Gst.Caps encode_caps);
224 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
225 public static Gst.Message missing_encoder_message_new (Gst.Element element, Gst.Caps encode_caps);
226 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
227 public static string missing_plugin_message_get_description (Gst.Message msg);
228 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
229 public static string missing_plugin_message_get_installer_detail (Gst.Message msg);
230 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
231 public static string missing_uri_sink_installer_detail_new (string protocol);
232 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
233 public static Gst.Message missing_uri_sink_message_new (Gst.Element element, string protocol);
234 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
235 public static string missing_uri_source_installer_detail_new (string protocol);
236 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
237 public static Gst.Message missing_uri_source_message_new (Gst.Element element, string protocol);
238 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
239 public static bool pb_utils_add_codec_description_to_tag_list (Gst.TagList taglist, string codec_tag, Gst.Caps caps);
240 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
241 public static unowned string pb_utils_get_codec_description (Gst.Caps caps);
242 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
243 public static unowned string pb_utils_get_decoder_description (Gst.Caps caps);
244 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
245 public static unowned string pb_utils_get_element_description (string factory_name);
246 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
247 public static unowned string pb_utils_get_encoder_description (Gst.Caps caps);
248 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
249 public static unowned string pb_utils_get_sink_description (string protocol);
250 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
251 public static unowned string pb_utils_get_source_description (string protocol);
252 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
253 public static void pb_utils_init ();
254 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
255 public static void plugins_base_version (uint major, uint minor, uint micro, uint nano);
256 [CCode (cheader_filename = "gst/pbutils/pbutils.h")]
257 public static unowned string plugins_base_version_string ();