internal void ReadMatrixProcessElement(byte[] data, IccMatrixProcessElement expected, int inChannelCount, int outChannelCount) { IccDataReader reader = this.CreateReader(data); IccMatrixProcessElement output = reader.ReadMatrixProcessElement(inChannelCount, outChannelCount); Assert.Equal(expected, output); }
internal void WriteMatrixProcessElement(byte[] expected, IccMatrixProcessElement data, int inChannelCount, int outChannelCount) { IccDataWriter writer = this.CreateWriter(); writer.WriteMatrixProcessElement(data); byte[] output = writer.GetData(); Assert.Equal(expected, output); }
/// <summary> /// Writes a Matrix <see cref="IccMultiProcessElement"/> /// </summary> /// <param name="value">The element to write</param> /// <returns>The number of bytes written</returns> public int WriteMatrixProcessElement(IccMatrixProcessElement value) { return(this.WriteMatrix(value.MatrixIxO, true) + this.WriteMatrix(value.MatrixOx1, true)); }