int[] compIds = new int[nComponents]; int compIdsIndex = 0; for (int i = 0; i < nComponents; i++) { compIds[compIdsIndex] = i + 1; compIdsIndex++;
if (nComponents == 3) { return convertYCbCrToRGB();
byte[] decodeImageComponents() {	int[] compIds = new int[nComponents];	int compIdsIndex = 0;	for (int i = 0; i < nComponents; i++) {		compIds[compIdsIndex] = i + 1;		compIdsIndex++;	}	if ((compIds.length == 3) &&		(compIds[0] == 1) &&		(compIds[1] == 2) &&		(compIds[2] == 3)) {			return convertYCbCrToRGB();	}	if ((compIds.length == 3) &&		(compIds[0] == 1) &&		(compIds[1] == 4) &&		(compIds[2] == 5)) {			return convertYIQToRGB();	}	if (compIds.length == 4) {		return convertCMYKToRGB();	}	return convertYToRGB();}