TIFFREADDIRECTORY(3tiff) | LibTIFF | TIFFREADDIRECTORY(3tiff) |
NAME
TIFFReadDirectory - get the contents of the next directory in an open TIFF file
SYNOPSIS
#include <tiffio.h>
DESCRIPTION
Read the next directory in the specified file and make it the current directory. Applications only need to call TIFFReadDirectory() to read multiple subfiles in a single TIFF file—(the first directory in a file is automatically read when TIFFOpen() is called.
NOTES
If the library is compiled with STRIPCHOP_SUPPORT enabled, then images that have a single uncompressed strip or tile of data are automatically treated as if they were made up of multiple strips or tiles of approximately 8 kilobytes each. This operation is done only in-memory; it does not alter the contents of the file. However, the construction of the “chopped strips” is visible to the application through the number of strips [tiles] returned by TIFFNumberOfStrips() [TIFFNumberOfTiles()].
RETURN VALUES
If the next directory was successfully read, 1 is returned. Otherwise, 0 is returned if an error was encountered, or if there are no more directories to be read.
DIAGNOSTICS
All error messages are directed to the TIFFErrorExtR() routine. Likewise, warning messages are directed to the TIFFWarningExtR() routine.
Seek error accessing TIFF directory:
Wrong data type %d for field "%s":
TIFF directory is missing required "%s" field:
%s: Rational with zero denominator:
Incorrect count %d for field "%s" (%lu, expecting %lu); tag ignored:
Cannot handle different per-sample values for field "%s":
Count mismatch for field "%s"; expecting %d, got %d:
Invalid TIFF directory; tags are not sorted in ascending order:
Ignoring unknown field with tag %d (0x%x):
TIFF directory is missing required "ImageLength" field:
TIFF directory is missing required "PlanarConfig" field:
TIFF directory is missing required "StripOffsets" field:
TIFF directory is missing required "TileOffsets" field:
TIFF directory is missing required "StripByteCounts" field:
TIFF directory is missing required "StripByteCounts" field, calculating from imagelength:
Bogus "StripByteCounts" field, ignoring and calculating from imagelength:
SEE ALSO
TIFFOpen (3tiff), TIFFCreateDirectory (3tiff), TIFFCustomDirectory (3tiff), TIFFquery (3tiff), TIFFWriteDirectory (3tiff), TIFFSetDirectory (3tiff), Multi Page / Multi Image TIFF, libtiff (3tiff)
AUTHOR
LibTIFF contributors
COPYRIGHT
1988-2022, LibTIFF contributors
September 8, 2023 | 4.6 |