public override int GetHashCode() { var hashCode = 1182625657; hashCode = hashCode * -1521134295 + Codec.GetHashCode(); hashCode = hashCode * -1521134295 + ChannelLayout.GetHashCode(); hashCode = hashCode * -1521134295 + SampleRate.GetHashCode(); hashCode = hashCode * -1521134295 + BitsPerChannel.GetHashCode(); hashCode = hashCode * -1521134295 + BitRate.GetHashCode(); return(hashCode); }
public ColorSource(double component0, double component1, double component2, double component3, BitsPerChannel bitsPerChannel) { this.component0 = component0; this.component1 = component1; this.component2 = component2; this.component3 = component3; switch (bitsPerChannel) { case BitsPerChannel.Eight: maxChannelValue = 255; break; default: throw new InvalidEnumArgumentException("bitsPerChannel", (int)bitsPerChannel, typeof(BitsPerChannel)); } }
public ColorSource(double component0, double component1, double component2, BitsPerChannel bitsPerChannel) : this(component0, component1, component2, 0.0, bitsPerChannel) { }