// 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 H274RegisteredUserData : IEquatable<H274RegisteredUserData> {

		public byte CountryCode;
		public byte CountryCodeExtension;
		public uint Size;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=0)]
		public byte[] Data;

		public static Gst.Video.H274RegisteredUserData Zero = new Gst.Video.H274RegisteredUserData ();

		public static Gst.Video.H274RegisteredUserData New(IntPtr raw) {
			if (raw == IntPtr.Zero)
				return Gst.Video.H274RegisteredUserData.Zero;
			return (Gst.Video.H274RegisteredUserData) Marshal.PtrToStructure (raw, typeof (Gst.Video.H274RegisteredUserData));
		}

		[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_h274_registered_user_data_get_type();

		public static GLib.GType GType { 
			get {
				IntPtr raw_ret = gst_h274_registered_user_data_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		public bool Equals (H274RegisteredUserData other)
		{
			return true && CountryCode.Equals (other.CountryCode) && CountryCodeExtension.Equals (other.CountryCodeExtension) && Size.Equals (other.Size) && Data.Equals (other.Data);
		}

		public override bool Equals (object other)
		{
			return other is H274RegisteredUserData && Equals ((H274RegisteredUserData) other);
		}

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ CountryCode.GetHashCode () ^ CountryCodeExtension.GetHashCode () ^ Size.GetHashCode () ^ Data.GetHashCode ();
		}

		public static explicit operator GLib.Value (Gst.Video.H274RegisteredUserData boxed)
		{
			GLib.Value val = GLib.Value.Empty;
			val.Init (Gst.Video.H274RegisteredUserData.GType);
			val.Val = boxed;
			return val;
		}

		public static explicit operator Gst.Video.H274RegisteredUserData (GLib.Value val)
		{
			return (Gst.Video.H274RegisteredUserData) val.Val;
		}
#endregion
	}
}
