/// ************************************************************************** /// /// $Id: LookUpTable8.java,v 1.1 2002/07/25 14:56:48 grosbois Exp $ /// /// Copyright Eastman Kodak Company, 343 State Street, Rochester, NY 14650 /// $Date $ /// *************************************************************************** /// using System; using ICCCurveType = CSJ2K.Icc.Tags.ICCCurveType; namespace CSJ2K.Icc.Lut { /// Toplevel class for a byte [] lut. /// /// /// 1.0 /// /// Bruce A. Kern /// public abstract class LookUpTable8:LookUpTable { /// Maximum output value of the LUT //UPGRADE_NOTE: Final was removed from the declaration of 'dwMaxOutput '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'" protected internal byte dwMaxOutput; /// The lut values. // Maximum output value of the LUT //UPGRADE_NOTE: Final was removed from the declaration of 'lut '. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1003'" protected internal byte[] lut; /// Create an abbreviated string representation of a 16 bit lut. /// the lut as a String /// public override System.String ToString() { System.Text.StringBuilder rep = new System.Text.StringBuilder("[LookUpTable8 "); //int row, col; rep.Append("max= " + dwMaxOutput); rep.Append(", nentries= " + dwMaxOutput); return rep.Append("]").ToString(); } public virtual System.String toStringWholeLut() { System.Text.StringBuilder rep = new System.Text.StringBuilder("LookUpTable8" + eol); rep.Append("maxOutput = " + dwMaxOutput + eol); for (int i = 0; i < dwNumInput; ++i) rep.Append("lut[" + i + "] = " + lut[i] + eol); return rep.Append("]").ToString(); } protected internal LookUpTable8(int dwNumInput, byte dwMaxOutput):base(null, dwNumInput) { lut = new byte[dwNumInput]; this.dwMaxOutput = dwMaxOutput; } /// Create the string representation of a 16 bit lut. /// the lut as a String /// protected internal LookUpTable8(ICCCurveType curve, int dwNumInput, byte dwMaxOutput):base(curve, dwNumInput) { this.dwMaxOutput = dwMaxOutput; lut = new byte[dwNumInput]; } /// lut accessor /// of the element /// /// the lut [index] /// public byte elementAt(int index) { return lut[index]; } /* end class LookUpTable8 */ } }