Because TIFF is an extensible format, the reader requires information about any tags used by TIFF extensions in order to emit meaningful metadata. Also, TIFF extensions may define new compression types. Both types of information about extensions may be provided by this interface.
Additional TIFF tags must be organized into TIFFTagSets. A TIFFTagSet may be provided to the reader by means of the addAllowedTagSet method. By default, the tag sets BaselineTIFFTagSet, FaxTIFFTagSet, EXIFParentTIFFTagSet, and GeoTIFFTagSet are included.
New TIFF decompressors are handled in a simple fashion. If a non-null TIFFDecompressor is provided by means of the setTIFFDecompressor method, it will override the reader's usual choice of decompressor. Thus, to read an image with a non-standard compression type, the application should first attempt to read the image's metadata and extract the compression type. The application may then use its own logic to choose a suitable TIFFDecompressor, instantiate it, and pass it to the ImageReadParam being used. The reader's read method may be called with the ImageReadParam set.
| |
| |
| |