/** * Checks if the value of the PhotometricInterpretation tag matches * any of the values in the array passed to it. * * @param ifd The IFD being checked * @param values An array of values, any of which will * satisfy the test. */ protected boolean satisfiesPhotometricInterpretation (TiffIFD ifd, int [] values) { int pInt = ifd.getNisoImageMetadata ().getColorSpace (); for (int i = 0; i < values.length; i++) { if (pInt == values[i]) { return true; } } return false; }
val.add (new DefaultMutableTreeNode ("ColorSpace: " + integerRepresentation (n, NisoImageMetadata.COLORSPACE,
(margn4 + elementStart ("mix:PhotometricInterpretation") + EOL); boolean usePIBuf = false; int n = niso.getColorSpace (); if (n != NisoImageMetadata.NULL) { piBuf.append (margn5 + element ("mix:colorSpace",
(margn4 + elementStart ("mix:PhotometricInterpretation") + EOL); boolean usePIBuf = false; int n = niso.getColorSpace (); if (n != NisoImageMetadata.NULL) { piBuf.append (margn5 + element ("mix:colorSpace", if (niso.getColorSpace() == 6) { // yCbCr switch (i) { case 0:
(margn4 + elementStart ("mix:PhotometricInterpretation") + EOL); boolean usePIBuf = false; int n = niso.getColorSpace (); if (n != NisoImageMetadata.NULL) { piBuf.append (margn5 + element ("mix:ColorSpace",
_writer.println (margn2 + "CompressionLevel: " + n); if ((n = niso.getColorSpace ()) != NisoImageMetadata.NULL) { _writer.println (margn2 + "ColorSpace: " + addIntegerValue (n, NisoImageMetadata.COLORSPACE,
_writer.println (margn2 + "ImageHeight: " + ln); if ((n = niso.getColorSpace ()) != NisoImageMetadata.NULL) { _writer.println (margn2 + "ColorSpace: " + addIntegerValue (n, NisoImageMetadata.COLORSPACE,
int pInterpretation = niso.getColorSpace (); if (!(pInterpretation == CFA || pInterpretation == LINEAR_RAW)) { return false;
niso.getImageWidth () == NisoImageMetadata.NULL || niso.getBitsPerSample () == null || niso.getColorSpace () == NisoImageMetadata.NULL || niso.getCompressionScheme () == NisoImageMetadata.NULL ||
int photometricInterpretation = niso.getColorSpace(); if (photometricInterpretation == NisoImageMetadata.NULL) { reportInvalid(MessageConstants.INF_PHO_NO_DEF, info);
int pint = niso.getColorSpace (); int inkSet = tifd.getInkSet (); int nInks = tifd.getNumberOfInks ();
return false; int pInterpretation = niso.getColorSpace (); if (!(pInterpretation == 2 || pInterpretation == 6)) { return false;
int pint = niso.getColorSpace (); int nInks = tifd.getNumberOfInks (); if (pint == 5 && (nInks != 4 || !satisfiesDotRange (tifd, 0, 255))) {
int pi = niso.getColorSpace (); if (pi != 0 && pi != 1 && pi != 2 && pi != 3 && pi != 5 && pi != 8 && pi != 9) {
int pint = niso.getColorSpace (); int nInks = tifd.getNumberOfInks (); if (pint == 5 && (nInks != 4 || !satisfiesDotRange (tifd, 0, 255))) {
int pInterpretation = niso.getColorSpace (); if (!(pInterpretation == 1 || pInterpretation == 2 ||
int colorSpace = _niso.getColorSpace (); if (colorSpace == 3 || colorSpace == 4) { if (_version < 5) {