2018-01-29 18:56:49 +00:00
|
|
|
// This file was generated by the Gtk# code generator.
|
|
|
|
// Any changes made will be lost if regenerated.
|
|
|
|
|
|
|
|
namespace Gst.Video {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
#region Autogenerated code
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
public partial struct VideoRegionOfInterestMeta : IEquatable<VideoRegionOfInterestMeta> {
|
|
|
|
|
|
|
|
public Gst.Meta Meta;
|
|
|
|
public uint RoiType;
|
|
|
|
public int Id;
|
|
|
|
public int ParentId;
|
|
|
|
public uint X;
|
|
|
|
public uint Y;
|
|
|
|
public uint W;
|
|
|
|
public uint H;
|
2018-03-11 15:28:57 +00:00
|
|
|
private IntPtr _parms;
|
2018-01-29 18:56:49 +00:00
|
|
|
|
|
|
|
public static Gst.Video.VideoRegionOfInterestMeta Zero = new Gst.Video.VideoRegionOfInterestMeta ();
|
|
|
|
|
|
|
|
public static Gst.Video.VideoRegionOfInterestMeta New(IntPtr raw) {
|
|
|
|
if (raw == IntPtr.Zero)
|
|
|
|
return Gst.Video.VideoRegionOfInterestMeta.Zero;
|
|
|
|
return (Gst.Video.VideoRegionOfInterestMeta) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoRegionOfInterestMeta));
|
|
|
|
}
|
|
|
|
|
2019-10-24 14:00:17 +00:00
|
|
|
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
2018-03-11 15:28:57 +00:00
|
|
|
static extern void gst_video_region_of_interest_meta_add_param(IntPtr raw, IntPtr s);
|
|
|
|
|
|
|
|
public void AddParam(Gst.Structure s) {
|
|
|
|
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
|
|
|
|
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
|
|
|
s.Owned = false;
|
|
|
|
gst_video_region_of_interest_meta_add_param(this_as_native, s == null ? IntPtr.Zero : s.Handle);
|
|
|
|
ReadNative (this_as_native, ref this);
|
|
|
|
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
|
|
|
}
|
|
|
|
|
2019-10-24 14:00:17 +00:00
|
|
|
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
2018-03-11 15:28:57 +00:00
|
|
|
static extern IntPtr gst_video_region_of_interest_meta_get_param(IntPtr raw, IntPtr name);
|
|
|
|
|
|
|
|
public Gst.Structure GetParam(string name) {
|
|
|
|
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
|
|
|
|
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
|
|
|
|
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
|
|
|
|
IntPtr raw_ret = gst_video_region_of_interest_meta_get_param(this_as_native, native_name);
|
|
|
|
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
|
|
|
|
ReadNative (this_as_native, ref this);
|
|
|
|
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
|
|
|
|
GLib.Marshaller.Free (native_name);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2019-10-24 14:00:17 +00:00
|
|
|
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
2018-01-29 18:56:49 +00:00
|
|
|
static extern IntPtr gst_video_region_of_interest_meta_get_info();
|
|
|
|
|
|
|
|
public static Gst.MetaInfo Info {
|
|
|
|
get {
|
|
|
|
IntPtr raw_ret = gst_video_region_of_interest_meta_get_info();
|
|
|
|
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-11 15:28:57 +00:00
|
|
|
static void ReadNative (IntPtr native, ref Gst.Video.VideoRegionOfInterestMeta target)
|
|
|
|
{
|
|
|
|
target = New (native);
|
|
|
|
}
|
|
|
|
|
2018-01-29 18:56:49 +00:00
|
|
|
public bool Equals (VideoRegionOfInterestMeta other)
|
|
|
|
{
|
2018-03-11 15:28:57 +00:00
|
|
|
return true && Meta.Equals (other.Meta) && RoiType.Equals (other.RoiType) && Id.Equals (other.Id) && ParentId.Equals (other.ParentId) && X.Equals (other.X) && Y.Equals (other.Y) && W.Equals (other.W) && H.Equals (other.H) && _parms.Equals (other._parms);
|
2018-01-29 18:56:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override bool Equals (object other)
|
|
|
|
{
|
|
|
|
return other is VideoRegionOfInterestMeta && Equals ((VideoRegionOfInterestMeta) other);
|
|
|
|
}
|
|
|
|
|
|
|
|
public override int GetHashCode ()
|
|
|
|
{
|
2018-03-11 15:28:57 +00:00
|
|
|
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ RoiType.GetHashCode () ^ Id.GetHashCode () ^ ParentId.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode () ^ W.GetHashCode () ^ H.GetHashCode () ^ _parms.GetHashCode ();
|
2018-01-29 18:56:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private static GLib.GType GType {
|
|
|
|
get { return GLib.GType.Pointer; }
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|