1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
4 namespace Gst.PbUtils {
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class Global {
14 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15 static extern bool gst_codec_utils_aac_caps_set_level_and_profile(IntPtr caps, byte[] audio_config, uint len);
17 public static bool CodecUtilsAacCapsSetLevelAndProfile(Gst.Caps caps, byte[] audio_config, uint len) {
18 bool raw_ret = gst_codec_utils_aac_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, audio_config, len);
23 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
24 static extern uint gst_codec_utils_aac_get_channels(byte[] audio_config, uint len);
26 public static uint CodecUtilsAacGetChannels(byte[] audio_config, uint len) {
27 uint raw_ret = gst_codec_utils_aac_get_channels(audio_config, len);
32 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
33 static extern int gst_codec_utils_aac_get_index_from_sample_rate(uint rate);
35 public static int CodecUtilsAacGetIndexFromSampleRate(uint rate) {
36 int raw_ret = gst_codec_utils_aac_get_index_from_sample_rate(rate);
41 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
42 static extern IntPtr gst_codec_utils_aac_get_level(byte[] audio_config, uint len);
44 public static string CodecUtilsAacGetLevel(byte[] audio_config, uint len) {
45 IntPtr raw_ret = gst_codec_utils_aac_get_level(audio_config, len);
46 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
50 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
51 static extern IntPtr gst_codec_utils_aac_get_profile(byte[] audio_config, uint len);
53 public static string CodecUtilsAacGetProfile(byte[] audio_config, uint len) {
54 IntPtr raw_ret = gst_codec_utils_aac_get_profile(audio_config, len);
55 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
59 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
60 static extern uint gst_codec_utils_aac_get_sample_rate(byte[] audio_config, uint len);
62 public static uint CodecUtilsAacGetSampleRate(byte[] audio_config, uint len) {
63 uint raw_ret = gst_codec_utils_aac_get_sample_rate(audio_config, len);
68 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
69 static extern uint gst_codec_utils_aac_get_sample_rate_from_index(uint sr_idx);
71 public static uint CodecUtilsAacGetSampleRateFromIndex(uint sr_idx) {
72 uint raw_ret = gst_codec_utils_aac_get_sample_rate_from_index(sr_idx);
77 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
78 static extern bool gst_codec_utils_h264_caps_set_level_and_profile(IntPtr caps, byte[] sps, uint len);
80 public static bool CodecUtilsH264CapsSetLevelAndProfile(Gst.Caps caps, byte[] sps, uint len) {
81 bool raw_ret = gst_codec_utils_h264_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, sps, len);
86 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
87 static extern IntPtr gst_codec_utils_h264_get_level(byte[] sps, uint len);
89 public static string CodecUtilsH264GetLevel(byte[] sps, uint len) {
90 IntPtr raw_ret = gst_codec_utils_h264_get_level(sps, len);
91 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
95 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
96 static extern byte gst_codec_utils_h264_get_level_idc(IntPtr level);
98 public static byte CodecUtilsH264GetLevelIdc(string level) {
99 IntPtr native_level = GLib.Marshaller.StringToPtrGStrdup (level);
100 byte raw_ret = gst_codec_utils_h264_get_level_idc(native_level);
102 GLib.Marshaller.Free (native_level);
106 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
107 static extern IntPtr gst_codec_utils_h264_get_profile(byte[] sps, uint len);
109 public static string CodecUtilsH264GetProfile(byte[] sps, uint len) {
110 IntPtr raw_ret = gst_codec_utils_h264_get_profile(sps, len);
111 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
115 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
116 static extern bool gst_codec_utils_h265_caps_set_level_tier_and_profile(IntPtr caps, byte[] profile_tier_level, uint len);
118 public static bool CodecUtilsH265CapsSetLevelTierAndProfile(Gst.Caps caps, byte[] profile_tier_level, uint len) {
119 bool raw_ret = gst_codec_utils_h265_caps_set_level_tier_and_profile(caps == null ? IntPtr.Zero : caps.Handle, profile_tier_level, len);
124 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
125 static extern IntPtr gst_codec_utils_h265_get_level(byte[] profile_tier_level, uint len);
127 public static string CodecUtilsH265GetLevel(byte[] profile_tier_level, uint len) {
128 IntPtr raw_ret = gst_codec_utils_h265_get_level(profile_tier_level, len);
129 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
133 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
134 static extern byte gst_codec_utils_h265_get_level_idc(IntPtr level);
136 public static byte CodecUtilsH265GetLevelIdc(string level) {
137 IntPtr native_level = GLib.Marshaller.StringToPtrGStrdup (level);
138 byte raw_ret = gst_codec_utils_h265_get_level_idc(native_level);
140 GLib.Marshaller.Free (native_level);
144 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
145 static extern IntPtr gst_codec_utils_h265_get_profile(byte[] profile_tier_level, uint len);
147 public static string CodecUtilsH265GetProfile(byte[] profile_tier_level, uint len) {
148 IntPtr raw_ret = gst_codec_utils_h265_get_profile(profile_tier_level, len);
149 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
153 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
154 static extern IntPtr gst_codec_utils_h265_get_tier(byte[] profile_tier_level, uint len);
156 public static string CodecUtilsH265GetTier(byte[] profile_tier_level, uint len) {
157 IntPtr raw_ret = gst_codec_utils_h265_get_tier(profile_tier_level, len);
158 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
162 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
163 static extern bool gst_codec_utils_mpeg4video_caps_set_level_and_profile(IntPtr caps, byte[] vis_obj_seq, uint len);
165 public static bool CodecUtilsMpeg4videoCapsSetLevelAndProfile(Gst.Caps caps, byte[] vis_obj_seq, uint len) {
166 bool raw_ret = gst_codec_utils_mpeg4video_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, vis_obj_seq, len);
171 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
172 static extern IntPtr gst_codec_utils_mpeg4video_get_level(byte[] vis_obj_seq, uint len);
174 public static string CodecUtilsMpeg4videoGetLevel(byte[] vis_obj_seq, uint len) {
175 IntPtr raw_ret = gst_codec_utils_mpeg4video_get_level(vis_obj_seq, len);
176 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
180 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
181 static extern IntPtr gst_codec_utils_mpeg4video_get_profile(byte[] vis_obj_seq, uint len);
183 public static string CodecUtilsMpeg4videoGetProfile(byte[] vis_obj_seq, uint len) {
184 IntPtr raw_ret = gst_codec_utils_mpeg4video_get_profile(vis_obj_seq, len);
185 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
189 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
190 static extern IntPtr gst_codec_utils_opus_create_caps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping);
192 public static Gst.Caps CodecUtilsOpusCreateCaps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping) {
193 IntPtr raw_ret = gst_codec_utils_opus_create_caps(rate, channels, channel_mapping_family, stream_count, coupled_count, channel_mapping);
194 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
198 public static Gst.Caps CodecUtilsOpusCreateCaps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count) {
199 return CodecUtilsOpusCreateCaps (rate, channels, channel_mapping_family, stream_count, coupled_count, null);
202 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
203 static extern IntPtr gst_codec_utils_opus_create_caps_from_header(IntPtr header, IntPtr comments);
205 public static Gst.Caps CodecUtilsOpusCreateCapsFromHeader(Gst.Buffer header, Gst.Buffer comments) {
206 IntPtr raw_ret = gst_codec_utils_opus_create_caps_from_header(header == null ? IntPtr.Zero : header.Handle, comments == null ? IntPtr.Zero : comments.Handle);
207 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
211 public static Gst.Caps CodecUtilsOpusCreateCapsFromHeader(Gst.Buffer header) {
212 return CodecUtilsOpusCreateCapsFromHeader (header, null);
215 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
216 static extern IntPtr gst_codec_utils_opus_create_header(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping, ushort pre_skip, short output_gain);
218 public static Gst.Buffer CodecUtilsOpusCreateHeader(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping, ushort pre_skip, short output_gain) {
219 IntPtr raw_ret = gst_codec_utils_opus_create_header(rate, channels, channel_mapping_family, stream_count, coupled_count, channel_mapping, pre_skip, output_gain);
220 Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
224 public static Gst.Buffer CodecUtilsOpusCreateHeader(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, ushort pre_skip, short output_gain) {
225 return CodecUtilsOpusCreateHeader (rate, channels, channel_mapping_family, stream_count, coupled_count, null, pre_skip, output_gain);
228 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
229 static extern IntPtr gst_encoding_list_all_targets(IntPtr categoryname);
231 public static Gst.PbUtils.EncodingTarget[] EncodingListAllTargets(string categoryname) {
232 IntPtr native_categoryname = GLib.Marshaller.StringToPtrGStrdup (categoryname);
233 IntPtr raw_ret = gst_encoding_list_all_targets(native_categoryname);
234 Gst.PbUtils.EncodingTarget[] ret = (Gst.PbUtils.EncodingTarget[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.PbUtils.EncodingTarget));
235 GLib.Marshaller.Free (native_categoryname);
239 public static Gst.PbUtils.EncodingTarget[] EncodingListAllTargets() {
240 return EncodingListAllTargets (null);
243 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
244 static extern IntPtr gst_encoding_list_available_categories();
246 public static string[] EncodingListAvailableCategories() {
247 IntPtr raw_ret = gst_encoding_list_available_categories();
248 string[] ret = (string[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(string));
252 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
253 static extern bool gst_install_plugins_installation_in_progress();
255 public static bool InstallPluginsInstallationInProgress() {
256 bool raw_ret = gst_install_plugins_installation_in_progress();
261 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
262 static extern IntPtr gst_install_plugins_return_get_name(int _ret);
264 public static string InstallPluginsReturnGetName(Gst.PbUtils.InstallPluginsReturn _ret) {
265 IntPtr raw_ret = gst_install_plugins_return_get_name((int) _ret);
266 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
270 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
271 static extern bool gst_install_plugins_supported();
273 public static bool InstallPluginsSupported() {
274 bool raw_ret = gst_install_plugins_supported();
279 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
280 static extern bool gst_is_missing_plugin_message(IntPtr msg);
282 public static bool IsMissingPluginMessage(Gst.Message msg) {
283 bool raw_ret = gst_is_missing_plugin_message(msg == null ? IntPtr.Zero : msg.Handle);
288 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
289 static extern IntPtr gst_missing_decoder_installer_detail_new(IntPtr decode_caps);
291 public static string MissingDecoderInstallerDetailNew(Gst.Caps decode_caps) {
292 IntPtr raw_ret = gst_missing_decoder_installer_detail_new(decode_caps == null ? IntPtr.Zero : decode_caps.Handle);
293 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
297 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
298 static extern IntPtr gst_missing_decoder_message_new(IntPtr element, IntPtr decode_caps);
300 public static Gst.Message MissingDecoderMessageNew(Gst.Element element, Gst.Caps decode_caps) {
301 IntPtr raw_ret = gst_missing_decoder_message_new(element == null ? IntPtr.Zero : element.Handle, decode_caps == null ? IntPtr.Zero : decode_caps.Handle);
302 Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
306 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
307 static extern IntPtr gst_missing_element_installer_detail_new(IntPtr factory_name);
309 public static string MissingElementInstallerDetailNew(string factory_name) {
310 IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
311 IntPtr raw_ret = gst_missing_element_installer_detail_new(native_factory_name);
312 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
313 GLib.Marshaller.Free (native_factory_name);
317 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
318 static extern IntPtr gst_missing_element_message_new(IntPtr element, IntPtr factory_name);
320 public static Gst.Message MissingElementMessageNew(Gst.Element element, string factory_name) {
321 IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
322 IntPtr raw_ret = gst_missing_element_message_new(element == null ? IntPtr.Zero : element.Handle, native_factory_name);
323 Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
324 GLib.Marshaller.Free (native_factory_name);
328 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
329 static extern IntPtr gst_missing_encoder_installer_detail_new(IntPtr encode_caps);
331 public static string MissingEncoderInstallerDetailNew(Gst.Caps encode_caps) {
332 IntPtr raw_ret = gst_missing_encoder_installer_detail_new(encode_caps == null ? IntPtr.Zero : encode_caps.Handle);
333 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
337 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
338 static extern IntPtr gst_missing_encoder_message_new(IntPtr element, IntPtr encode_caps);
340 public static Gst.Message MissingEncoderMessageNew(Gst.Element element, Gst.Caps encode_caps) {
341 IntPtr raw_ret = gst_missing_encoder_message_new(element == null ? IntPtr.Zero : element.Handle, encode_caps == null ? IntPtr.Zero : encode_caps.Handle);
342 Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
346 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
347 static extern IntPtr gst_missing_plugin_message_get_description(IntPtr msg);
349 public static string MissingPluginMessageGetDescription(Gst.Message msg) {
350 IntPtr raw_ret = gst_missing_plugin_message_get_description(msg == null ? IntPtr.Zero : msg.Handle);
351 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
355 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
356 static extern IntPtr gst_missing_plugin_message_get_installer_detail(IntPtr msg);
358 public static string MissingPluginMessageGetInstallerDetail(Gst.Message msg) {
359 IntPtr raw_ret = gst_missing_plugin_message_get_installer_detail(msg == null ? IntPtr.Zero : msg.Handle);
360 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
364 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
365 static extern IntPtr gst_missing_uri_sink_installer_detail_new(IntPtr protocol);
367 public static string MissingUriSinkInstallerDetailNew(string protocol) {
368 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
369 IntPtr raw_ret = gst_missing_uri_sink_installer_detail_new(native_protocol);
370 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
371 GLib.Marshaller.Free (native_protocol);
375 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
376 static extern IntPtr gst_missing_uri_sink_message_new(IntPtr element, IntPtr protocol);
378 public static Gst.Message MissingUriSinkMessageNew(Gst.Element element, string protocol) {
379 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
380 IntPtr raw_ret = gst_missing_uri_sink_message_new(element == null ? IntPtr.Zero : element.Handle, native_protocol);
381 Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
382 GLib.Marshaller.Free (native_protocol);
386 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
387 static extern IntPtr gst_missing_uri_source_installer_detail_new(IntPtr protocol);
389 public static string MissingUriSourceInstallerDetailNew(string protocol) {
390 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
391 IntPtr raw_ret = gst_missing_uri_source_installer_detail_new(native_protocol);
392 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
393 GLib.Marshaller.Free (native_protocol);
397 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
398 static extern IntPtr gst_missing_uri_source_message_new(IntPtr element, IntPtr protocol);
400 public static Gst.Message MissingUriSourceMessageNew(Gst.Element element, string protocol) {
401 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
402 IntPtr raw_ret = gst_missing_uri_source_message_new(element == null ? IntPtr.Zero : element.Handle, native_protocol);
403 Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
404 GLib.Marshaller.Free (native_protocol);
408 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
409 static extern bool gst_pb_utils_add_codec_description_to_tag_list(IntPtr taglist, IntPtr codec_tag, IntPtr caps);
411 public static bool PbUtilsAddCodecDescriptionToTagList(Gst.TagList taglist, string codec_tag, Gst.Caps caps) {
412 IntPtr native_codec_tag = GLib.Marshaller.StringToPtrGStrdup (codec_tag);
413 bool raw_ret = gst_pb_utils_add_codec_description_to_tag_list(taglist == null ? IntPtr.Zero : taglist.Handle, native_codec_tag, caps == null ? IntPtr.Zero : caps.Handle);
415 GLib.Marshaller.Free (native_codec_tag);
419 public static bool PbUtilsAddCodecDescriptionToTagList(Gst.TagList taglist, Gst.Caps caps) {
420 return PbUtilsAddCodecDescriptionToTagList (taglist, null, caps);
423 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
424 static extern IntPtr gst_pb_utils_get_codec_description(IntPtr caps);
426 public static string PbUtilsGetCodecDescription(Gst.Caps caps) {
427 IntPtr raw_ret = gst_pb_utils_get_codec_description(caps == null ? IntPtr.Zero : caps.Handle);
428 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
432 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
433 static extern IntPtr gst_pb_utils_get_decoder_description(IntPtr caps);
435 public static string PbUtilsGetDecoderDescription(Gst.Caps caps) {
436 IntPtr raw_ret = gst_pb_utils_get_decoder_description(caps == null ? IntPtr.Zero : caps.Handle);
437 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
441 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
442 static extern IntPtr gst_pb_utils_get_element_description(IntPtr factory_name);
444 public static string PbUtilsGetElementDescription(string factory_name) {
445 IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
446 IntPtr raw_ret = gst_pb_utils_get_element_description(native_factory_name);
447 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
448 GLib.Marshaller.Free (native_factory_name);
452 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
453 static extern IntPtr gst_pb_utils_get_encoder_description(IntPtr caps);
455 public static string PbUtilsGetEncoderDescription(Gst.Caps caps) {
456 IntPtr raw_ret = gst_pb_utils_get_encoder_description(caps == null ? IntPtr.Zero : caps.Handle);
457 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
461 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
462 static extern IntPtr gst_pb_utils_get_sink_description(IntPtr protocol);
464 public static string PbUtilsGetSinkDescription(string protocol) {
465 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
466 IntPtr raw_ret = gst_pb_utils_get_sink_description(native_protocol);
467 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
468 GLib.Marshaller.Free (native_protocol);
472 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
473 static extern IntPtr gst_pb_utils_get_source_description(IntPtr protocol);
475 public static string PbUtilsGetSourceDescription(string protocol) {
476 IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
477 IntPtr raw_ret = gst_pb_utils_get_source_description(native_protocol);
478 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
479 GLib.Marshaller.Free (native_protocol);
483 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
484 static extern void gst_pb_utils_init();
486 public static void PbUtilsInit() {
490 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
491 static extern void gst_plugins_base_version(out uint major, out uint minor, out uint micro, out uint nano);
493 public static void PluginsBaseVersion(out uint major, out uint minor, out uint micro, out uint nano) {
494 gst_plugins_base_version(out major, out minor, out micro, out nano);
497 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
498 static extern IntPtr gst_plugins_base_version_string();
500 public static string PluginsBaseVersionString() {
501 IntPtr raw_ret = gst_plugins_base_version_string();
502 string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);