@Test public void testSamplesPerPixel_BlendTiff() throws Exception { Tiff tiff = new Tiff(ByteBuffer.wrap(this.blendtiffData)); Subfile file = tiff.getSubfiles().get(0); int expectedValue = 1; int actualValue = file.samplesPerPixel; assertEquals("samples per pixel", expectedValue, actualValue); }
public List<Subfile> getSubfiles() { if (this.subfiles.isEmpty()) { this.buffer.position(4); int ifdOffset = readLimitedDWord(this.buffer); this.parseSubfiles(ifdOffset); } return this.subfiles; }
Tiff { public List<Subfile> getSubfiles() { if (this.subfiles.isEmpty()) { this.buffer.position(4); int ifdOffset = readLimitedDWord(this.buffer); this.parseSubfiles(ifdOffset); } return this.subfiles; } }
Tiff { public List<Subfile> getSubfiles() { if (this.subfiles.isEmpty()) { this.buffer.position(4); int ifdOffset = readLimitedDWord(this.buffer); this.parseSubfiles(ifdOffset); } return this.subfiles; } Tiff(ByteBuffer buffer); }
Tiff { public List<Subfile> getSubfiles() { if (this.subfiles.isEmpty()) { this.buffer.position(4); int ifdOffset = readLimitedDWord(this.buffer); this.parseSubfiles(ifdOffset); } return this.subfiles; } Tiff(ByteBuffer buffer); ByteBuffer getBuffer(); List<Subfile> getSubfiles(); }
Tiff { public List<Subfile> getSubfiles() { if (this.subfiles.isEmpty()) { this.buffer.position(4); int ifdOffset = readLimitedDWord(this.buffer); this.parseSubfiles(ifdOffset); } return this.subfiles; } Tiff(ByteBuffer buffer); ByteBuffer getBuffer(); List<Subfile> getSubfiles(); static final int NEW_SUBFILE_TYPE_TAG; static final int IMAGE_WIDTH_TAG; static final int IMAGE_LENGTH_TAG; static final int BITS_PER_SAMPLE_TAG; static final int COMPRESSION_TAG; static final int PHOTOMETRIC_INTERPRETATION_TAG; static final int SAMPLES_PER_PIXEL_TAG; static final int X_RESOLUTION_TAG; static final int Y_RESOLUTION_TAG; static final int PLANAR_CONFIGURATION_TAG; static final int RESOLUTION_UNIT_TAG; static final int STRIP_OFFSETS_TAG; static final int STRIP_BYTE_COUNTS_TAG; static final int ROWS_PER_STRIP_TAG; static final int COMPRESSION_PREDICTOR_TAG; static final int TILE_OFFSETS_TAG; static final int TILE_BYTE_COUNTS_TAG; static final int TILE_WIDTH_TAG; static final int TILE_LENGTH_TAG; static final int SAMPLE_FORMAT_TAG; static final int UNSIGNED_INT; static final int TWOS_COMP_SIGNED_INT; static final int FLOATING_POINT; static final int UNDEFINED; }