tiffinfo: fix dump of Tiled images

fixes #80
This commit is contained in:
Thomas Bernard 2020-04-05 00:46:12 +02:00
parent 632f6a1a4f
commit 691427ea8d
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -407,11 +407,11 @@ ShowRawWords(uint16* pp, uint32 n)
putchar('\n');
}
void
TIFFReadRawData(TIFF* tif, int bitrev)
static void
TIFFReadRawDataStriped(TIFF* tif, int bitrev)
{
tstrip_t nstrips = TIFFNumberOfStrips(tif);
const char* what = TIFFIsTiled(tif) ? "Tile" : "Strip";
const char* what = "Strip";
uint64* stripbc=NULL;
TIFFGetField(tif, TIFFTAG_STRIPBYTECOUNTS, &stripbc);
@ -455,6 +455,22 @@ TIFFReadRawData(TIFF* tif, int bitrev)
}
}
static void
TIFFReadRawDataTiled(TIFF* tif, int bitrev)
{
const char* what = "Tile";
}
void
TIFFReadRawData(TIFF* tif, int bitrev)
{
if (TIFFIsTiled(tif)) {
TIFFReadRawDataTiled(tif, bitrev);
} else {
TIFFReadRawDataStriped(tif, bitrev);
}
}
static void
tiffinfo(TIFF* tif, uint16 order, long flags, int is_image)
{