case 4:
if (extendImageHeader.isSawAdobeMarker()) {
switch (extendImageHeader.getAdobeTransform()) {
case 0:
rawImage.setRawColorspace(JPEGColorSpace.CMYK);
colorConvertor = new InverseColorConvertor();
break;
case 2:
rawImage.setRawColorspace(JPEGColorSpace.YCCK);
colorConvertor = new YCCK2CMYKColorConvertor();
break;
default:
/* assume it's YCCK */
rawImage.setRawColorspace(JPEGColorSpace.YCCK);
colorConvertor = new YCCK2CMYKColorConvertor();
break;
}
} else {
/* No special markers, assume straight CMYK. */
rawImage.setRawColorspace(JPEGColorSpace.CMYK);
colorConvertor = new InverseColorConvertor();
}
rawImage.setColorspace(JPEGColorSpace.CMYK);
break;
default: