identify all supported tiff version by leptonica

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@931 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop 2013-12-22 21:47:07 +00:00
parent 9041990be5
commit fced05f419

View File

@ -962,8 +962,9 @@ PERF_COUNT_START("ProcessPages")
Pix *pix;
pix = pixRead(filename);
format = pixGetInputFormat(pix);
if (format == IFF_TIFF || format == IFF_TIFF_G4 ||
format == IFF_TIFF_G3 || format == IFF_TIFF_PACKBITS)
if (format == IFF_TIFF || format == IFF_TIFF_PACKBITS ||
format == IFF_TIFF_RLE || format == IFF_TIFF_G3 ||
format == IFF_TIFF_G4 || format == IFF_TIFF_LZW || IFF_TIFF_ZIP)
tiffGetCount(fp, &npages);
fclose(fp);