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

		public byte Id;
		public byte HashMethodType;
		public uint KeyRetrievalModeIdc;
		public byte UseKeyRegisterIdxFlag;
		public uint KeyRegisterIdx;
		public byte ContentUuidPresentFlag;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=16)]
		public byte[] ContentUuid;
		public uint NumVerificationSubstreams;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=0)]
		public byte[] RefSubstreamFlag;
		private UIntPtr ref_substream_flag_len;
		public ulong RefSubstreamFlagLen {
			get {
				return (ulong) ref_substream_flag_len;
			}
			set {
				ref_substream_flag_len = new UIntPtr (value);
			}
		}
		public byte VssImplicitAssociationModeFlag;
		public byte SignedContentStartFlag;
		public byte SeiSigningFlag;
		public string KeySourceUri;

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

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

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

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

		public bool Equals (H274DigitallySignedContentInitialization other)
		{
			return true && Id.Equals (other.Id) && HashMethodType.Equals (other.HashMethodType) && KeyRetrievalModeIdc.Equals (other.KeyRetrievalModeIdc) && UseKeyRegisterIdxFlag.Equals (other.UseKeyRegisterIdxFlag) && KeyRegisterIdx.Equals (other.KeyRegisterIdx) && ContentUuidPresentFlag.Equals (other.ContentUuidPresentFlag) && ContentUuid.Equals (other.ContentUuid) && NumVerificationSubstreams.Equals (other.NumVerificationSubstreams) && RefSubstreamFlag.Equals (other.RefSubstreamFlag) && RefSubstreamFlagLen.Equals (other.RefSubstreamFlagLen) && VssImplicitAssociationModeFlag.Equals (other.VssImplicitAssociationModeFlag) && SignedContentStartFlag.Equals (other.SignedContentStartFlag) && SeiSigningFlag.Equals (other.SeiSigningFlag) && KeySourceUri.Equals (other.KeySourceUri);
		}

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

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ Id.GetHashCode () ^ HashMethodType.GetHashCode () ^ KeyRetrievalModeIdc.GetHashCode () ^ UseKeyRegisterIdxFlag.GetHashCode () ^ KeyRegisterIdx.GetHashCode () ^ ContentUuidPresentFlag.GetHashCode () ^ ContentUuid.GetHashCode () ^ NumVerificationSubstreams.GetHashCode () ^ RefSubstreamFlag.GetHashCode () ^ RefSubstreamFlagLen.GetHashCode () ^ VssImplicitAssociationModeFlag.GetHashCode () ^ SignedContentStartFlag.GetHashCode () ^ SeiSigningFlag.GetHashCode () ^ KeySourceUri.GetHashCode ();
		}

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

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