// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gst.PbUtils {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	[StructLayout(LayoutKind.Sequential)]
	public partial struct H264LevelLimits : IEquatable<H264LevelLimits> {

		public string Name;
		public byte LevelIdc;
		public uint MaxMbps;
		public uint MaxFs;
		public uint MaxDpbMbs;
		public uint MaxBr;
		public uint MaxCpb;
		public uint MinCr;

		public static Gst.PbUtils.H264LevelLimits Zero = new Gst.PbUtils.H264LevelLimits ();

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

		public bool Equals (H264LevelLimits other)
		{
			return true && Name.Equals (other.Name) && LevelIdc.Equals (other.LevelIdc) && MaxMbps.Equals (other.MaxMbps) && MaxFs.Equals (other.MaxFs) && MaxDpbMbs.Equals (other.MaxDpbMbs) && MaxBr.Equals (other.MaxBr) && MaxCpb.Equals (other.MaxCpb) && MinCr.Equals (other.MinCr);
		}

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

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ Name.GetHashCode () ^ LevelIdc.GetHashCode () ^ MaxMbps.GetHashCode () ^ MaxFs.GetHashCode () ^ MaxDpbMbs.GetHashCode () ^ MaxBr.GetHashCode () ^ MaxCpb.GetHashCode () ^ MinCr.GetHashCode ();
		}

		private static GLib.GType GType {
			get { return GLib.GType.Pointer; }
		}
#endregion
	}
}
