/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="JpegLSMetadataInfo"/>. /// </returns> public override int GetHashCode() { unchecked { int result = Width; result = (result * 397) ^ Height; result = (result * 397) ^ BitsPerComponent; result = (result * 397) ^ BytesPerLine; result = (result * 397) ^ ComponentCount; result = (result * 397) ^ AllowedLossyError; result = (result * 397) ^ InterleaveMode.GetHashCode(); result = (result * 397) ^ OutputBgr.GetHashCode(); return(result); } }
public static ProcessResultArray <Clip> Apply(Command command, ClipMetaData metadata, Clip[] clips, InterleaveMode mode) { var(success, msg) = OptionParser.TryParseOptions(command, out InterleaveOptions options); if (!success) { return(new ProcessResultArray <Clip>(msg)); } if (mode != NotSpecified) { options.Mode = mode; } return(Apply(options, metadata, clips)); }