Release 1.22.7
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Audio / AudioFormatInfo.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.Audio {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct AudioFormatInfo : IEquatable<AudioFormatInfo> {
14
15                 public Gst.Audio.AudioFormat Format;
16                 public string Name;
17                 public string Description;
18                 public Gst.Audio.AudioFormatFlags Flags;
19                 public int Endianness;
20                 public int Width;
21                 public int Depth;
22                 [MarshalAs (UnmanagedType.ByValArray, SizeConst=8)]
23                 public byte[] Silence;
24                 public Gst.Audio.AudioFormat UnpackFormat;
25                 private Gst.AudioSharp.AudioFormatUnpackNative _unpack_func;
26                 public Gst.Audio.AudioFormatUnpack UnpackFunc {
27                         get {
28                                 return Gst.AudioSharp.AudioFormatUnpackWrapper.GetManagedDelegate (_unpack_func);
29                         }
30                 }
31                 private Gst.AudioSharp.AudioFormatPackNative _pack_func;
32                 public Gst.Audio.AudioFormatPack PackFunc {
33                         get {
34                                 return Gst.AudioSharp.AudioFormatPackWrapper.GetManagedDelegate (_pack_func);
35                         }
36                 }
37                 [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
38                 private IntPtr[] _gstGstReserved;
39
40                 public static Gst.Audio.AudioFormatInfo Zero = new Gst.Audio.AudioFormatInfo ();
41
42                 public static Gst.Audio.AudioFormatInfo New(IntPtr raw) {
43                         if (raw == IntPtr.Zero)
44                                 return Gst.Audio.AudioFormatInfo.Zero;
45                         return (Gst.Audio.AudioFormatInfo) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioFormatInfo));
46                 }
47
48                 public bool Equals (AudioFormatInfo other)
49                 {
50                         return true && Format.Equals (other.Format) && Name.Equals (other.Name) && Description.Equals (other.Description) && Flags.Equals (other.Flags) && Endianness.Equals (other.Endianness) && Width.Equals (other.Width) && Depth.Equals (other.Depth) && Silence.Equals (other.Silence) && UnpackFormat.Equals (other.UnpackFormat) && UnpackFunc.Equals (other.UnpackFunc) && PackFunc.Equals (other.PackFunc);
51                 }
52
53                 public override bool Equals (object other)
54                 {
55                         return other is AudioFormatInfo && Equals ((AudioFormatInfo) other);
56                 }
57
58                 public override int GetHashCode ()
59                 {
60                         return this.GetType ().FullName.GetHashCode () ^ Format.GetHashCode () ^ Name.GetHashCode () ^ Description.GetHashCode () ^ Flags.GetHashCode () ^ Endianness.GetHashCode () ^ Width.GetHashCode () ^ Depth.GetHashCode () ^ Silence.GetHashCode () ^ UnpackFormat.GetHashCode () ^ UnpackFunc.GetHashCode () ^ PackFunc.GetHashCode ();
61                 }
62
63                 private static GLib.GType GType {
64                         get { return GLib.GType.Pointer; }
65                 }
66 #endregion
67         }
68 }