summaryrefslogtreecommitdiff
path: root/sources/generated/Gst.Video/VideoAncillary.cs
blob: 7801833c533a4cc6a6f785155490274e26217fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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 VideoAncillary : IEquatable<VideoAncillary> {

		public byte DID;
		public byte SDIDBlockNumber;
		public byte DataCount;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=0)]
		public byte[] Data;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
		private IntPtr[] _gstGstReserved;

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

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

		public bool Equals (VideoAncillary other)
		{
			return true && DID.Equals (other.DID) && SDIDBlockNumber.Equals (other.SDIDBlockNumber) && DataCount.Equals (other.DataCount) && Data.Equals (other.Data);
		}

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

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ DID.GetHashCode () ^ SDIDBlockNumber.GetHashCode () ^ DataCount.GetHashCode () ^ Data.GetHashCode ();
		}

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