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 EncodingContainerProfile : Gst.PbUtils.EncodingProfile {
14 public EncodingContainerProfile (IntPtr raw) : base(raw) {}
16 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17 static extern IntPtr gst_encoding_container_profile_new(IntPtr name, IntPtr description, IntPtr format, IntPtr preset);
19 public EncodingContainerProfile (string name, string description, Gst.Caps format, string preset) : base (IntPtr.Zero)
21 if (GetType () != typeof (EncodingContainerProfile)) {
22 var vals = new List<GLib.Value> ();
23 var names = new List<string> ();
24 CreateNativeObject (names.ToArray (), vals.ToArray ());
27 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
28 IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
29 IntPtr native_preset = GLib.Marshaller.StringToPtrGStrdup (preset);
30 Raw = gst_encoding_container_profile_new(native_name, native_description, format == null ? IntPtr.Zero : format.Handle, native_preset);
31 GLib.Marshaller.Free (native_name);
32 GLib.Marshaller.Free (native_description);
33 GLib.Marshaller.Free (native_preset);
37 // Internal representation of the wrapped structure ABI.
38 static GLib.AbiStruct _class_abi = null;
39 static public new GLib.AbiStruct class_abi {
41 if (_class_abi == null)
42 _class_abi = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.class_abi.Fields);
49 // End of the ABI representation.
51 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
52 static extern IntPtr gst_encoding_container_profile_get_type();
54 public static new GLib.GType GType {
56 IntPtr raw_ret = gst_encoding_container_profile_get_type();
57 GLib.GType ret = new GLib.GType(raw_ret);
62 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
63 static extern bool gst_encoding_container_profile_add_profile(IntPtr raw, IntPtr profile);
65 public bool AddProfile(Gst.PbUtils.EncodingProfile profile) {
66 bool raw_ret = gst_encoding_container_profile_add_profile(Handle, profile == null ? IntPtr.Zero : profile.OwnedHandle);
71 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
72 static extern bool gst_encoding_container_profile_contains_profile(IntPtr raw, IntPtr profile);
74 public bool ContainsProfile(Gst.PbUtils.EncodingProfile profile) {
75 bool raw_ret = gst_encoding_container_profile_contains_profile(Handle, profile == null ? IntPtr.Zero : profile.Handle);
80 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81 static extern IntPtr gst_encoding_container_profile_get_profiles(IntPtr raw);
83 public Gst.PbUtils.EncodingProfile[] Profiles {
85 IntPtr raw_ret = gst_encoding_container_profile_get_profiles(Handle);
86 Gst.PbUtils.EncodingProfile[] ret = (Gst.PbUtils.EncodingProfile[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), false, false, typeof(Gst.PbUtils.EncodingProfile));
92 static EncodingContainerProfile ()
94 GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
97 // Internal representation of the wrapped structure ABI.
98 static GLib.AbiStruct _abi_info = null;
99 static public new GLib.AbiStruct abi_info {
101 if (_abi_info == null)
102 _abi_info = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.abi_info.Fields);
109 // End of the ABI representation.