Received: from [207.176.88.85] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Mon, 29 Nov 1999 14:38:27 -0500
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id NAA14200;
	Mon, 29 Nov 1999 13:51:32 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 29 Nov 1999 13:51:04 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id NAA14157
	for tiff-outgoing; Mon, 29 Nov 1999 13:51:03 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from mimas.island.net (mimas.island.net [199.60.19.4])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id NAA14154
	for <tiff@olympiakos.com>; Mon, 29 Nov 1999 13:50:58 -0500
Received: from openbay (dyn54.cr.island.net [209.52.234.64])
	by mimas.island.net (8.9.3/8.9.3/island) with SMTP id KAA11906;
	Mon, 29 Nov 1999 10:50:46 -0800
Message-Id: <3.0.5.32.19991129105107.014f9af0@mail.island.net>
X-Sender: plsmith@mail.island.net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Mon, 29 Nov 1999 10:51:07 -0800
To: Frank Warmerdam <warmerda@home.com>,
        TIFF Mailing List <tiff@olympiakos.com>
From: Peter Smith <psmith@creo.com>
Subject: Re: 2-4 GB TIFF Files
In-Reply-To: <38428BE4.34C3C18D@home.com>
Mime-Version: 1.0
Content-Type: text/plain
Sender: owner-tiff@olympiakos.com

I have made the 4Gb file fix for the win32 build.  I haven't yet submitted
the changes for general distribution, due mainly to time constraints.  Some
OS specific routines need to be modified as well as other generic routines.
 I only work with win32 at this point, so I can't test the changes on other
OS's.  Anyways, the changes I made are detailed in the attached file.  Here
is an overview of what I did:

 - added an unsigned version of toff_t, toffu_t, and changed all references
to toff_t to toffu_t

 - changed _tiffSeekProc() in win32.c to accept 32 bit unsigned offset

 - changed a negative relative seek in TiffLinkDirectory() to an absolute seek

The amount of testing I've done is limited, restricted to reading bilevel
files with G4, G3, and Packbits compression and no compression.

Peter

At 09:21 AM 11/29/99 -0500, Frank Warmerdam wrote:
>
>Folks,
>
>On behalf of a client I am looking into generation of TIFF files in the
>2-4GB range.  My first shock was to find that ext2fs on Linux doesn't 
>support files larger than 2GB.  My second shock was to find that the 
>toff_t type in tiffio.h (used for seeking for instance) is int32, a signed
>32 bit integer, not unsigned as I would have assumed. 
>
>While TIFF format is clearly limited to at most 4GB in a file, I had assumed
>producing and consuming files in the 2-4GB range would not be particularly 
>difficult.  Has anyone done this with libtiff?  Were changes to libtiff
>required?  
>
>Best regards,
>
>---------------------------------------+-----------------------------------
---
>I set the clouds in motion - turned up | Frank Warmerdam, warmerda@home.com
>light and sound - activate the windows | http://members.home.com/warmerda
>and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>
Attachment Converted: "C:\Eudora\Attach\4GbChanges.txt"

-----------------------------------------------------------------
Peter Smith
mailto:plsmith@island.net  
mailto:psmith@creo.com (forwarded directly to the above address)
Phone: 250-285-2294
