Release 1.20.0
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.PbUtils / EncodingProfile.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 EncodingProfile : GLib.Object {
13
14                 public EncodingProfile (IntPtr raw) : base(raw) {}
15
16                 protected EncodingProfile() : base(IntPtr.Zero)
17                 {
18                         CreateNativeObject (new string [0], new GLib.Value [0]);
19                 }
20
21                 [GLib.Property ("restriction-caps")]
22                 public Gst.Caps RestrictionCaps {
23                         get {
24                                 GLib.Value val = GetProperty ("restriction-caps");
25                                 Gst.Caps ret = (Gst.Caps) val;
26                                 val.Dispose ();
27                                 return ret;
28                         }
29                         set {
30                                 GLib.Value val = new GLib.Value(value, "GstCaps*");
31                                 SetProperty("restriction-caps", val);
32                                 val.Dispose ();
33                         }
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 (GLib.Object.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_profile_get_type();
53
54                 public static new GLib.GType GType { 
55                         get {
56                                 IntPtr raw_ret = gst_encoding_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 IntPtr gst_encoding_profile_find(IntPtr targetname, IntPtr profilename, IntPtr category);
64
65                 public static Gst.PbUtils.EncodingProfile Find(string targetname, string profilename, string category) {
66                         IntPtr native_targetname = GLib.Marshaller.StringToPtrGStrdup (targetname);
67                         IntPtr native_profilename = GLib.Marshaller.StringToPtrGStrdup (profilename);
68                         IntPtr native_category = GLib.Marshaller.StringToPtrGStrdup (category);
69                         IntPtr raw_ret = gst_encoding_profile_find(native_targetname, native_profilename, native_category);
70                         Gst.PbUtils.EncodingProfile ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.EncodingProfile;
71                         GLib.Marshaller.Free (native_targetname);
72                         GLib.Marshaller.Free (native_profilename);
73                         GLib.Marshaller.Free (native_category);
74                         return ret;
75                 }
76
77                 public static Gst.PbUtils.EncodingProfile Find(string targetname) {
78                         return Find (targetname, null, null);
79                 }
80
81                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
82                 static extern IntPtr gst_encoding_profile_from_discoverer(IntPtr info);
83
84                 public static Gst.PbUtils.EncodingProfile FromDiscoverer(Gst.PbUtils.DiscovererInfo info) {
85                         IntPtr raw_ret = gst_encoding_profile_from_discoverer(info == null ? IntPtr.Zero : info.Handle);
86                         Gst.PbUtils.EncodingProfile ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.EncodingProfile;
87                         return ret;
88                 }
89
90                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
91                 static extern IntPtr gst_encoding_profile_copy(IntPtr raw);
92
93                 public Gst.PbUtils.EncodingProfile Copy() {
94                         IntPtr raw_ret = gst_encoding_profile_copy(Handle);
95                         Gst.PbUtils.EncodingProfile ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.EncodingProfile;
96                         return ret;
97                 }
98
99                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
100                 static extern bool gst_encoding_profile_get_allow_dynamic_output(IntPtr raw);
101
102                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
103                 static extern void gst_encoding_profile_set_allow_dynamic_output(IntPtr raw, bool allow_dynamic_output);
104
105                 public bool AllowDynamicOutput { 
106                         get {
107                                 bool raw_ret = gst_encoding_profile_get_allow_dynamic_output(Handle);
108                                 bool ret = raw_ret;
109                                 return ret;
110                         }
111                         set {
112                                 gst_encoding_profile_set_allow_dynamic_output(Handle, value);
113                         }
114                 }
115
116                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
117                 static extern IntPtr gst_encoding_profile_get_description(IntPtr raw);
118
119                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
120                 static extern void gst_encoding_profile_set_description(IntPtr raw, IntPtr description);
121
122                 public string Description { 
123                         get {
124                                 IntPtr raw_ret = gst_encoding_profile_get_description(Handle);
125                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
126                                 return ret;
127                         }
128                         set {
129                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
130                                 gst_encoding_profile_set_description(Handle, native_value);
131                                 GLib.Marshaller.Free (native_value);
132                         }
133                 }
134
135                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
136                 static extern IntPtr gst_encoding_profile_get_file_extension(IntPtr raw);
137
138                 public string FileExtension { 
139                         get {
140                                 IntPtr raw_ret = gst_encoding_profile_get_file_extension(Handle);
141                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
142                                 return ret;
143                         }
144                 }
145
146                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
147                 static extern IntPtr gst_encoding_profile_get_format(IntPtr raw);
148
149                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
150                 static extern void gst_encoding_profile_set_format(IntPtr raw, IntPtr format);
151
152                 public Gst.Caps Format { 
153                         get {
154                                 IntPtr raw_ret = gst_encoding_profile_get_format(Handle);
155                                 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
156                                 return ret;
157                         }
158                         set {
159                                 gst_encoding_profile_set_format(Handle, value == null ? IntPtr.Zero : value.Handle);
160                         }
161                 }
162
163                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
164                 static extern IntPtr gst_encoding_profile_get_input_caps(IntPtr raw);
165
166                 public Gst.Caps InputCaps { 
167                         get {
168                                 IntPtr raw_ret = gst_encoding_profile_get_input_caps(Handle);
169                                 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
170                                 return ret;
171                         }
172                 }
173
174                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
175                 static extern IntPtr gst_encoding_profile_get_name(IntPtr raw);
176
177                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
178                 static extern void gst_encoding_profile_set_name(IntPtr raw, IntPtr name);
179
180                 public string Name { 
181                         get {
182                                 IntPtr raw_ret = gst_encoding_profile_get_name(Handle);
183                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
184                                 return ret;
185                         }
186                         set {
187                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
188                                 gst_encoding_profile_set_name(Handle, native_value);
189                                 GLib.Marshaller.Free (native_value);
190                         }
191                 }
192
193                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
194                 static extern uint gst_encoding_profile_get_presence(IntPtr raw);
195
196                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
197                 static extern void gst_encoding_profile_set_presence(IntPtr raw, uint presence);
198
199                 public uint Presence { 
200                         get {
201                                 uint raw_ret = gst_encoding_profile_get_presence(Handle);
202                                 uint ret = raw_ret;
203                                 return ret;
204                         }
205                         set {
206                                 gst_encoding_profile_set_presence(Handle, value);
207                         }
208                 }
209
210                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
211                 static extern IntPtr gst_encoding_profile_get_preset(IntPtr raw);
212
213                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
214                 static extern void gst_encoding_profile_set_preset(IntPtr raw, IntPtr preset);
215
216                 public string Preset { 
217                         get {
218                                 IntPtr raw_ret = gst_encoding_profile_get_preset(Handle);
219                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
220                                 return ret;
221                         }
222                         set {
223                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
224                                 gst_encoding_profile_set_preset(Handle, native_value);
225                                 GLib.Marshaller.Free (native_value);
226                         }
227                 }
228
229                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
230                 static extern IntPtr gst_encoding_profile_get_preset_name(IntPtr raw);
231
232                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
233                 static extern void gst_encoding_profile_set_preset_name(IntPtr raw, IntPtr preset_name);
234
235                 public string PresetName { 
236                         get {
237                                 IntPtr raw_ret = gst_encoding_profile_get_preset_name(Handle);
238                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
239                                 return ret;
240                         }
241                         set {
242                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
243                                 gst_encoding_profile_set_preset_name(Handle, native_value);
244                                 GLib.Marshaller.Free (native_value);
245                         }
246                 }
247
248                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
249                 static extern IntPtr gst_encoding_profile_get_restriction(IntPtr raw);
250
251                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
252                 static extern void gst_encoding_profile_set_restriction(IntPtr raw, IntPtr restriction);
253
254                 public Gst.Caps Restriction { 
255                         get {
256                                 IntPtr raw_ret = gst_encoding_profile_get_restriction(Handle);
257                                 Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
258                                 return ret;
259                         }
260                         set {
261                                 value.Owned = false;
262                                 gst_encoding_profile_set_restriction(Handle, value == null ? IntPtr.Zero : value.Handle);
263                         }
264                 }
265
266                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
267                 static extern bool gst_encoding_profile_get_single_segment(IntPtr raw);
268
269                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
270                 static extern void gst_encoding_profile_set_single_segment(IntPtr raw, bool single_segment);
271
272                 public bool SingleSegment { 
273                         get {
274                                 bool raw_ret = gst_encoding_profile_get_single_segment(Handle);
275                                 bool ret = raw_ret;
276                                 return ret;
277                         }
278                         set {
279                                 gst_encoding_profile_set_single_segment(Handle, value);
280                         }
281                 }
282
283                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
284                 static extern IntPtr gst_encoding_profile_get_type_nick(IntPtr raw);
285
286                 public string TypeNick { 
287                         get {
288                                 IntPtr raw_ret = gst_encoding_profile_get_type_nick(Handle);
289                                 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
290                                 return ret;
291                         }
292                 }
293
294                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
295                 static extern bool gst_encoding_profile_is_enabled(IntPtr raw);
296
297                 public bool IsEnabled { 
298                         get {
299                                 bool raw_ret = gst_encoding_profile_is_enabled(Handle);
300                                 bool ret = raw_ret;
301                                 return ret;
302                         }
303                 }
304
305                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
306                 static extern bool gst_encoding_profile_is_equal(IntPtr raw, IntPtr b);
307
308                 public bool IsEqual(Gst.PbUtils.EncodingProfile b) {
309                         bool raw_ret = gst_encoding_profile_is_equal(Handle, b == null ? IntPtr.Zero : b.Handle);
310                         bool ret = raw_ret;
311                         return ret;
312                 }
313
314                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
315                 static extern void gst_encoding_profile_set_enabled(IntPtr raw, bool enabled);
316
317                 public bool Enabled { 
318                         set {
319                                 gst_encoding_profile_set_enabled(Handle, value);
320                         }
321                 }
322
323
324                 static EncodingProfile ()
325                 {
326                         GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
327                 }
328
329                 // Internal representation of the wrapped structure ABI.
330                 static GLib.AbiStruct _abi_info = null;
331                 static public new GLib.AbiStruct abi_info {
332                         get {
333                                 if (_abi_info == null)
334                                         _abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
335
336                                 return _abi_info;
337                         }
338                 }
339
340
341                 // End of the ABI representation.
342
343 #endregion
344         }
345 }