AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.03.16 10:33 "[Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Andrey Kiselev
2005.03.16 18:18 "Re: [Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Jeff Breidenbach
2005.03.16 18:27 "Re: [Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Frank Warmerdam
2005.03.17 01:00 "Re: [Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Ron
2005.03.17 01:41 "[Tiff] I/O support for FILE *", by Jeff Breidenbach
2005.03.19 17:58 "Re: [Tiff] [ANNOUNCE]: Libtiff 3.7.2 released", by Thom DeCarlo

2005.03.17 01:41 "[Tiff] I/O support for FILE *", by Jeff Breidenbach

Sorry if this has been raised before, but would it be better to have TIFFFILEOpen( FILE*, char* ) instead?

Yes, it would. Portability gets even easier if applications don't need to call fileno (which is part of POSIX.1 but not ANSI C89). There just happens to be longstanding libtiff support for TIFFFdOpen, so I suspect it may be the path of least resistance.

which makes generalising code that needs to support eg. tiff and jpeg a bit more pleasant.

Yes, exactly.

is there any reason not to provide it by default here?

Beats me. It sure would make life simpler for me.

Cheers,
Jeff

--
Jeff Breidenbach <jbreiden@parc.com>
Palo Alto Research Center (PARC)