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 EncodingProfile : GLib.Object {
14 public EncodingProfile (IntPtr raw) : base(raw) {}
16 protected EncodingProfile() : base(IntPtr.Zero)
18 CreateNativeObject (new string [0], new GLib.Value [0]);
21 [GLib.Property ("restriction-caps")]
22 public Gst.Caps RestrictionCaps {
24 GLib.Value val = GetProperty ("restriction-caps");
25 Gst.Caps ret = (Gst.Caps) val;
30 GLib.Value val = new GLib.Value(value, "GstCaps*");
31 SetProperty("restriction-caps", val);
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 (GLib.Object.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_profile_get_type();
54 public static new GLib.GType GType {
56 IntPtr raw_ret = gst_encoding_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 IntPtr gst_encoding_profile_find(IntPtr targetname, IntPtr profilename, IntPtr category);
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);
77 public static Gst.PbUtils.EncodingProfile Find(string targetname) {
78 return Find (targetname, null, null);
81 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
82 static extern IntPtr gst_encoding_profile_from_discoverer(IntPtr info);
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;
90 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
91 static extern IntPtr gst_encoding_profile_copy(IntPtr raw);
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;
99 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
100 static extern bool gst_encoding_profile_get_allow_dynamic_output(IntPtr raw);
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);
105 public bool AllowDynamicOutput {
107 bool raw_ret = gst_encoding_profile_get_allow_dynamic_output(Handle);
112 gst_encoding_profile_set_allow_dynamic_output(Handle, value);
116 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
117 static extern IntPtr gst_encoding_profile_get_description(IntPtr raw);
119 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
120 static extern void gst_encoding_profile_set_description(IntPtr raw, IntPtr description);
122 public string Description {
124 IntPtr raw_ret = gst_encoding_profile_get_description(Handle);
125 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
129 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
130 gst_encoding_profile_set_description(Handle, native_value);
131 GLib.Marshaller.Free (native_value);
135 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
136 static extern IntPtr gst_encoding_profile_get_file_extension(IntPtr raw);
138 public string FileExtension {
140 IntPtr raw_ret = gst_encoding_profile_get_file_extension(Handle);
141 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
146 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
147 static extern IntPtr gst_encoding_profile_get_format(IntPtr raw);
149 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
150 static extern void gst_encoding_profile_set_format(IntPtr raw, IntPtr format);
152 public Gst.Caps Format {
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);
159 gst_encoding_profile_set_format(Handle, value == null ? IntPtr.Zero : value.Handle);
163 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
164 static extern IntPtr gst_encoding_profile_get_input_caps(IntPtr raw);
166 public Gst.Caps InputCaps {
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);
174 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
175 static extern IntPtr gst_encoding_profile_get_name(IntPtr raw);
177 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
178 static extern void gst_encoding_profile_set_name(IntPtr raw, IntPtr name);
182 IntPtr raw_ret = gst_encoding_profile_get_name(Handle);
183 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
187 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
188 gst_encoding_profile_set_name(Handle, native_value);
189 GLib.Marshaller.Free (native_value);
193 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
194 static extern uint gst_encoding_profile_get_presence(IntPtr raw);
196 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
197 static extern void gst_encoding_profile_set_presence(IntPtr raw, uint presence);
199 public uint Presence {
201 uint raw_ret = gst_encoding_profile_get_presence(Handle);
206 gst_encoding_profile_set_presence(Handle, value);
210 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
211 static extern IntPtr gst_encoding_profile_get_preset(IntPtr raw);
213 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
214 static extern void gst_encoding_profile_set_preset(IntPtr raw, IntPtr preset);
216 public string Preset {
218 IntPtr raw_ret = gst_encoding_profile_get_preset(Handle);
219 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
223 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
224 gst_encoding_profile_set_preset(Handle, native_value);
225 GLib.Marshaller.Free (native_value);
229 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
230 static extern IntPtr gst_encoding_profile_get_preset_name(IntPtr raw);
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);
235 public string PresetName {
237 IntPtr raw_ret = gst_encoding_profile_get_preset_name(Handle);
238 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
242 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
243 gst_encoding_profile_set_preset_name(Handle, native_value);
244 GLib.Marshaller.Free (native_value);
248 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
249 static extern IntPtr gst_encoding_profile_get_restriction(IntPtr raw);
251 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
252 static extern void gst_encoding_profile_set_restriction(IntPtr raw, IntPtr restriction);
254 public Gst.Caps Restriction {
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);
262 gst_encoding_profile_set_restriction(Handle, value == null ? IntPtr.Zero : value.Handle);
266 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
267 static extern bool gst_encoding_profile_get_single_segment(IntPtr raw);
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);
272 public bool SingleSegment {
274 bool raw_ret = gst_encoding_profile_get_single_segment(Handle);
279 gst_encoding_profile_set_single_segment(Handle, value);
283 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
284 static extern IntPtr gst_encoding_profile_get_type_nick(IntPtr raw);
286 public string TypeNick {
288 IntPtr raw_ret = gst_encoding_profile_get_type_nick(Handle);
289 string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
294 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
295 static extern bool gst_encoding_profile_is_enabled(IntPtr raw);
297 public bool IsEnabled {
299 bool raw_ret = gst_encoding_profile_is_enabled(Handle);
305 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
306 static extern bool gst_encoding_profile_is_equal(IntPtr raw, IntPtr b);
308 public bool IsEqual(Gst.PbUtils.EncodingProfile b) {
309 bool raw_ret = gst_encoding_profile_is_equal(Handle, b == null ? IntPtr.Zero : b.Handle);
314 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
315 static extern void gst_encoding_profile_set_enabled(IntPtr raw, bool enabled);
317 public bool Enabled {
319 gst_encoding_profile_set_enabled(Handle, value);
324 static EncodingProfile ()
326 GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
329 // Internal representation of the wrapped structure ABI.
330 static GLib.AbiStruct _abi_info = null;
331 static public new GLib.AbiStruct abi_info {
333 if (_abi_info == null)
334 _abi_info = new GLib.AbiStruct (GLib.Object.abi_info.Fields);
341 // End of the ABI representation.