MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / writeEntry

Method writeEntry

ij/src/main/java/ij/io/TiffEncoder.java:269–278  ·  view source on GitHub ↗

Writes one 12-byte IFD entry.

(OutputStream out, int tag, int fieldType, int count, int value)

Source from the content-addressed store, hash-verified

267
268 /** Writes one 12-byte IFD entry. */
269 void writeEntry(OutputStream out, int tag, int fieldType, int count, int value) throws IOException {
270 writeShort(out, tag);
271 writeShort(out, fieldType);
272 writeInt(out, count);
273 if (count==1 && fieldType==TiffDecoder.SHORT) {
274 writeShort(out, value);
275 writeShort(out, 0);
276 } else
277 writeInt(out, value); // may be an offset
278 }
279
280 /** Writes one IFD (Image File Directory). */
281 void writeIFD(OutputStream out, int imageOffset, int nextIFD) throws IOException {

Callers 1

writeIFDMethod · 0.95

Calls 2

writeShortMethod · 0.95
writeIntMethod · 0.95

Tested by

no test coverage detected