/** * Checks if the value of the Compression 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 satisfiesCompression (TiffIFD ifd, int [] values) { int compression = ifd.getNisoImageMetadata ().getCompressionScheme (); for (int i = 0; i < values.length; i++) { if (compression == values[i]) { return true; } } return false; }
/** * Returns true if the IFD satisfies the requirements of the * profile. See the Photoshop specification for details. */ public boolean satisfiesThisProfile (IFD ifd) { if (!(ifd instanceof TiffIFD)) { return false; } TiffIFD tifd = (TiffIFD) ifd; /* Check required values. */ NisoImageMetadata niso = tifd.getNisoImageMetadata (); int pi = niso.getCompressionScheme (); if (pi == 6 || pi == 8) { return true; } if (tifd.getImageSourceData () != null) { return true; } return false; } }
/** * Returns true if the IFD satisfies the requirements of a * thumbnail IFD for an * Exif profile. See the Exif specification for details. */ public boolean satisfiesThisProfile (IFD ifd) { if (!(ifd instanceof TiffIFD)) { return false; } TiffIFD tifd = (TiffIFD) ifd; if (!satisfiesCompression (tifd, new int [] {1, 6} )) { return false; } // If the main IFD is uncompressed, the thumbnail must be too if (mainCompression == 1 && tifd.getNisoImageMetadata().getCompressionScheme() != 1) { return false; } return true; } }
int comp = niso.getCompressionScheme (); int level = niso.getCompressionLevel (); if (comp != NisoImageMetadata.NULL || level != NisoImageMetadata.NULL) {
int comp = niso.getCompressionScheme (); int level = niso.getCompressionLevel (); String compStr;
if (n != NisoImageMetadata.NULL) { val.add (new DefaultMutableTreeNode ("CompressionScheme: " + integerRepresentation
useFBuf = true; int comp = niso.getCompressionScheme (); int level = niso.getCompressionLevel (); if (comp != NisoImageMetadata.NULL || level != NisoImageMetadata.NULL) {
niso.getBitsPerSample () == null || niso.getColorSpace () == NisoImageMetadata.NULL || niso.getCompressionScheme () == NisoImageMetadata.NULL || if (niso.getCompressionScheme () == 3) { if (ifd.getT4Options () == IFD.NULL) { return false;
int n = niso.getCompressionScheme (); if (n != NisoImageMetadata.NULL) { _writer.println (margn2 + "CompressionScheme: " +
_writer.println (margn2 + "ByteOrder: " + s); int n = niso.getCompressionScheme (); if (n != NisoImageMetadata.NULL) { _writer.println (margn2 + "CompressionScheme: " +
.getNisoImageMetadata().getCompressionScheme()); } else if (ifd.isThumbnail()) { _exifThumbnailFlag = _exifThumbnailProfile
int compression = niso.getCompressionScheme (); if (compression != NisoImageMetadata.NULL) { if (!(compression == 1 || compression == 7)) {
if (niso.getCompressionScheme () == 32895) { int pad = tifd.getRasterPadding (); if (pad != 0 && pad != 1 && pad != 2 && pad != 9 && pad != 10) {
if (niso.getCompressionScheme() == 6 && ifd.getJPEGProc() == IFD.NULL) { reportInvalid(MessageConstants.ERR_JPEGPROC_NO_DEF, info);
/** 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; int cmp = niso.getCompressionScheme(); if (cmp != 9) { return false;
if (niso.getCompressionScheme() != 3) { return false;
if (niso.getCompressionScheme () == 4) { if (tifd.getT6Options () != 0) { return false;
int cmpr = niso.getCompressionScheme (); if (cmpr == 3) {
int compression = niso.getCompressionScheme (); if (compression != NisoImageMetadata.NULL) {