Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by mailst034.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i8HF7K5I027924
        for <joris.at.lebbeke@skynet.be>; Fri, 17 Sep 2004 17:07:20 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i8HF6qK3010043
        for <joris.at.lebbeke@skynet.be>; Fri, 17 Sep 2004 17:06:54 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 0A89A2F6397; Fri, 17 Sep 2004 11:06:38 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id 4E3592F6374
	for <tiff@remotesensing.org>; Fri, 17 Sep 2004 11:06:35 -0400 (EDT)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	i8HF6Y9p020370; Fri, 17 Sep 2004 10:06:34 -0500 (CDT)
Date: Fri, 17 Sep 2004 10:06:34 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Joris <joris.at.lebbeke@skynet.be>
Subject: Re: [Tiff] BigTIFF Tag Value Count issue
In-Reply-To: <000a01c49cc6$20209380$32d6f151@dfgrrxsknr4e>
Message-ID: <Pine.SOC.4.60.0409171003120.15634@blade.simplesystems.org>
References: <001c01c49c21$2bf33730$c325c850@dfgrrxsknr4e><Pine.SOC.4.60.0409161905220.15634@blade.simplesystems.org><001401c49c4d$bff536f0$379688d9@dfgrrxsknr4e><Pine.SOC.4.60.0409162021080.15634@blade.simplesystems.org><p05210618bd7003f36f75@[153.32.48.223]><Pine.SOC.4.60.0409162303330.15634@blade.simplesystems.org><p0521061ebd70184c3453@[153.32.48.223]><005601c49cab$344b3060$4c24c850@dfgrrxsknr4e>
	<Pine.SOC.4.60.0409170929380.15634@blade.simplesystems.org>
	<000a01c49cc6$20209380$32d6f151@dfgrrxsknr4e>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: Tiff mailing list <tiff@remotesensing.org>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: cb8e9317ac4135fef770258686e6ba4d

On Fri, 17 Sep 2004, Joris wrote:
>
> But I wish you would draw conclusions, as, to me, you seem to be stepping on
> your own point. If misaligned data can cause such disasters, and you're memory
> mapping the file, you'll have to design your code to check correct alignment
> anyway, and be prepared to copy the structures if needed to properly aligned
> locations, since we can't trust everyone to align the IFD structure as we lay it
> out in the BigTIFF spec. If all this code logic has to be built anyway, does
> this not make designing aligment in the spec less important, and is this not
> another argument pro regular IO instead of memory mapping for this kind of codec
> application?

I certainly agree that if other factors make memory alignment 
impossible to assure, then it is not worth agonizing over it. 
Unaligned data does not rule out use of memory mapping, it just means 
that the data needs to be copied first using types which require less 
alignment (which is what libtiff does).

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
