Release 1.20.0
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.PbUtils / EncodingContainerProfile.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.PbUtils {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         public partial class EncodingContainerProfile : Gst.PbUtils.EncodingProfile {
13
14                 public EncodingContainerProfile (IntPtr raw) : base(raw) {}
15
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);
18
19                 public EncodingContainerProfile (string name, string description, Gst.Caps format, string preset) : base (IntPtr.Zero)
20                 {
21                         if (GetType () != typeof (EncodingContainerProfile)) {
22                                 var vals = new List<GLib.Value> ();
23                                 var names = new List<string> ();
24                                 CreateNativeObject (names.ToArray (), vals.ToArray ());
25                                 return;
26                         }
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);
34                 }
35
36
37                 // Internal representation of the wrapped structure ABI.
38                 static GLib.AbiStruct _class_abi = null;
39                 static public new GLib.AbiStruct class_abi {
40                         get {
41                                 if (_class_abi == null)
42                                         _class_abi = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.class_abi.Fields);
43
44                                 return _class_abi;
45                         }
46                 }
47
48
49                 // End of the ABI representation.
50
51                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
52                 static extern IntPtr gst_encoding_container_profile_get_type();
53
54                 public static new GLib.GType GType { 
55                         get {
56                                 IntPtr raw_ret = gst_encoding_container_profile_get_type();
57                                 GLib.GType ret = new GLib.GType(raw_ret);
58                                 return ret;
59                         }
60                 }
61
62                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
63                 static extern bool gst_encoding_container_profile_add_profile(IntPtr raw, IntPtr profile);
64
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);
67                         bool ret = raw_ret;
68                         return ret;
69                 }
70
71                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
72                 static extern bool gst_encoding_container_profile_contains_profile(IntPtr raw, IntPtr profile);
73
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);
76                         bool ret = raw_ret;
77                         return ret;
78                 }
79
80                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
81                 static extern IntPtr gst_encoding_container_profile_get_profiles(IntPtr raw);
82
83                 public Gst.PbUtils.EncodingProfile[] Profiles { 
84                         get {
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));
87                                 return ret;
88                         }
89                 }
90
91
92                 static EncodingContainerProfile ()
93                 {
94                         GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
95                 }
96
97                 // Internal representation of the wrapped structure ABI.
98                 static GLib.AbiStruct _abi_info = null;
99                 static public new GLib.AbiStruct abi_info {
100                         get {
101                                 if (_abi_info == null)
102                                         _abi_info = new GLib.AbiStruct (Gst.PbUtils.EncodingProfile.abi_info.Fields);
103
104                                 return _abi_info;
105                         }
106                 }
107
108
109                 // End of the ABI representation.
110
111 #endregion
112         }
113 }