gstreamer/subprojects/gstreamer-sharp/sources/generated/Gst.Audio/AudioFormatInfo.cs

68 lines
2.5 KiB
C#

// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Audio {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct AudioFormatInfo : IEquatable<AudioFormatInfo> {
public Gst.Audio.AudioFormat Format;
public string Name;
public string Description;
public Gst.Audio.AudioFormatFlags Flags;
public int Endianness;
public int Width;
public int Depth;
[MarshalAs (UnmanagedType.ByValArray, SizeConst=8)]
public byte[] Silence;
public Gst.Audio.AudioFormat UnpackFormat;
private Gst.AudioSharp.AudioFormatUnpackNative _unpack_func;
public Gst.Audio.AudioFormatUnpack UnpackFunc {
get {
return Gst.AudioSharp.AudioFormatUnpackWrapper.GetManagedDelegate (_unpack_func);
}
}
private Gst.AudioSharp.AudioFormatPackNative _pack_func;
public Gst.Audio.AudioFormatPack PackFunc {
get {
return Gst.AudioSharp.AudioFormatPackWrapper.GetManagedDelegate (_pack_func);
}
}
[MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
private IntPtr[] _gstGstReserved;
public static Gst.Audio.AudioFormatInfo Zero = new Gst.Audio.AudioFormatInfo ();
public static Gst.Audio.AudioFormatInfo New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Audio.AudioFormatInfo.Zero;
return (Gst.Audio.AudioFormatInfo) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioFormatInfo));
}
public bool Equals (AudioFormatInfo other)
{
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);
}
public override bool Equals (object other)
{
return other is AudioFormatInfo && Equals ((AudioFormatInfo) other);
}
public override int GetHashCode ()
{
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 ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}