//device coordinates are ignored for now
/*int[] deviceCoord =*/ readUInt16Array(din, numDeviceCoord);
switch (profile.getPCSType()) {
case ColorSpace.TYPE_XYZ:
result[i] = new NamedColorSpace(name, colorvalue, profileName, profileURI);
break;
case ColorSpace.TYPE_Lab:
//Not sure if this always D50 here,
//but the illuminant in the header is fixed to D50.
CIELabColorSpace labCS = ColorSpaces.getCIELabColorSpaceD50();
result[i] = new NamedColorSpace(name, labCS.toColor(colorvalue, 1.0f),
profileName, profileURI);
break;
default:
throw new UnsupportedOperationException(
"PCS type is not supported: " + profile.getPCSType());