AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 2012

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2012.04.19 13:12 "TIFFSeekProc", by Christopher Cameron
2012.04.19 13:48 "Re: TIFFSeekProc", by Olivier Paquet
2012.04.19 14:15 "Re: TIFFSeekProc", by Christopher Cameron

2012.04.19 13:48 "Re: TIFFSeekProc", by Olivier Paquet

On Thu, Apr 19, 2012 at 9:12 AM, Christopher Cameron <ccameron@qnx.com> wrote:
> An issue came up in the development of a codec that uses libtiff. We are
> passing the TIFFSeekProc down through some layers to lseek().
>
> typedef toff_t (*TIFFSeekProc)(thandle_t, toff_t, int);
>
> Based on the definition, toff_t is always unsigned. Does this mean we can
> expect libtiff will never ask for a negative offset, for example with
> SEEK_END and SEEK_CUR?

That's how it is for now as far as I can see. SEEK_END is only used
with 0 and SEEK_CUR with positive offsets. I'd call it unfortunate
design but sticking with it does not really limit what libtiff can do.

Olivier