return _niso.getSamplesPerPixel();
/** * Checks if the value of the SamplesPerPixel 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 satisfiesSamplesPerPixel (TiffIFD ifd, int [] values) { int spp = ifd.getNisoImageMetadata ().getSamplesPerPixel (); for (int i = 0; i < values.length; i++) { if (spp == values[i]) { return true; } } return false; }
niso.getSamplesPerPixel () == NisoImageMetadata.NULL || niso.getSamplingFrequencyUnit () == NisoImageMetadata.NULL) { return false; int spp = niso.getSamplesPerPixel (); int numInks = tifd.getNumberOfInks (); if (numInks != NisoImageMetadata.NULL && numInks != spp) {
niso.getSamplesPerPixel () == NisoImageMetadata.NULL) { return false; int spp = niso.getSamplesPerPixel (); int numInks = tifd.getNumberOfInks (); if (numInks != IFD.NULL && numInks != spp) {
useColorEncBuf = true; n = niso.getSamplesPerPixel(); if (n != NisoImageMetadata.NULL) { colorEncBuf.append (margn4 + element ("mix:samplesPerPixel",
useColorEncBuf = true; n = niso.getSamplesPerPixel(); if (n != NisoImageMetadata.NULL) { colorEncBuf.append (margn4 + element ("mix:samplesPerPixel",
int spp = niso.getSamplesPerPixel (); int numInks = tifd.getNumberOfInks (); if (numInks != IFD.NULL && numInks != spp) {
int samplesPerPixel = _niso.getSamplesPerPixel (); int [] bitsPerSample = _niso.getBitsPerSample (); if (bitsPerSample == null) {
_blackLevel = new Rational [_blackLevelRepeatDim[0] * _blackLevelRepeatDim[1] * _niso.getSamplesPerPixel()]; for (int i = 0; i < _blackLevel.length; i++) { _blackLevel[i] = zero; _whiteLevel = new long[_niso.getSamplesPerPixel()]; long defWhite = (1L << _niso.getBitsPerSample()[0] - 1); for (int i = 0; i < _whiteLevel.length; i++) {
if (niso.getSamplesPerPixel () > 1) { return false;
if (niso.getSamplesPerPixel () < 3) { return false;
int samplesPerPixel = niso.getSamplesPerPixel();
if (numInks != 4 || numInks != niso.getSamplesPerPixel ()) { return false;
if (niso.getSamplesPerPixel () > 1) { return false;
if (numInks != 4 || numInks != niso.getSamplesPerPixel ()) { return false;
/** Set the initial Niso values from a default Niso object. * This doesn't attempt to be complete, but sets * the values which we know could have been set from the * JP2 header. */ public void setDefaultNiso (NisoImageMetadata dNiso) { _niso.setByteOrder(dNiso.getByteOrder ()); _niso.setMimeType (dNiso.getMimeType ()); _niso.setBitsPerSample (dNiso.getBitsPerSample ()); _niso.setImageLength (dNiso.getImageLength ()); _niso.setImageWidth (dNiso.getImageWidth ()); _niso.setSamplesPerPixel (dNiso.getSamplesPerPixel ()); _niso.setCompressionScheme (dNiso.getCompressionScheme ()); _niso.setYSamplingFrequency (dNiso.getYSamplingFrequency ()); _niso.setXSamplingFrequency (dNiso.getXSamplingFrequency ()); _niso.setSamplingFrequencyUnit (dNiso.getSamplingFrequencyUnit ()); }
return false; if (niso.getSamplesPerPixel () != 1) { return false;
return false; if (niso.getSamplesPerPixel () != 3) { return false;
int spp = niso.getSamplesPerPixel (); if (pi == 0 || pi == 1 || pi == 3) { if (spp != 1) {
int samplesPerPixel = niso.getSamplesPerPixel (); if (pInterpretation == 1 || pInterpretation == 32803) { if (samplesPerPixel != 1) {