1998.03.17 14:23 "TIFF port to Win95", by Alan Goodridge

Just read the "Bugs and the TIFF Mailing List" page... apologies for sending two messages.

Sam,

I don't know if you're still at SGI, but I guess this is worth a try. I incorporated your TIFF reader into a Win95 project under MSVC++, using the Makefile and additional source file provided by Philippe Tenenhaus. For the most part it went smoothly, but there were a couple of difficulties in getting the contributed LoadTIFFinDIB function integrated. Mainly:

1) a problem with MSVC++'s compilation (or my ignorance in how to configure it) of TIFFGetField for the case of a TIFFTAG_COLORMAP tag. On disassembly, It appears that

                   *va_arg(ap, uint16**) = td->td_colormap[0];

from the file tif_dir.c does not result in the fetching or storage of the required pointer. I don't know whether this has anything to do with there being three arguments in the variable argument list instead of one or two, but TIFFGetField seems to work fine in the other cases.

2) initializations (to 0) are needed for some stack-allocated variables, eg int PhotometricInterpretation, since the library only overwrites 16 lsbs.

3) some type casts needed to get code to compile

Let me know if you are interested in further details. I have only tested this on a few files so far (8-bit and 24-bit), so it is likely that other problems will eventually show up.

Regards,

Alan Goodridge
email: agardner@slip.net
tel: (650) 938-2925