Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx2.pub.mailpod8-cph3.one.com ([10.27.38.12])
	by mailstorage22.cst.mailpod8-cph3.one.com with LMTP
	id EFyOFL0eOGTXYwAAwT5NuQ
	(envelope-from <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>)
	for <filtered@awaresystems.be>; Thu, 13 Apr 2023 15:24:45 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=custmx.one.com; s=20201015;
	h=sender:content-type:list-subscribe:list-help:list-post:list-unsubscribe:
	 list-id:subject:cc:to:message-id:date:from:in-reply-to:references:mime-version:
	 x-halone-refid:x-halone-sa:from:x-halone-sa:x-halone-refid;
	bh=8S0ZANmffBehAarUZJUXDY8KTSKjSA+gcQyRSUOLc3k=;
	b=3KFDcks3Tr6AtgxAKR8Vfe11ciaTGbGmZodu2QeP3xzSO0/BiVky6qzE88tZTGjY6Tm2cB3Zz2aj6
	 u6TKHOO8NSPan3piuXvCp9ZBhOceZQqvXZbYGiNiNnrP3S+N/CCBufIIuFAJbU//8xzOUb3AP1Akvr
	 +oG83dWbh31l5XKYo/3mWOHnmFC1hrnmx5g5bzYHZki7sIuy/j2SrHrGYDf2Fgtiez4EGwQmn2jyBV
	 AsFQ/rT6RLRAm1lqEtj1xcHCdB6gl+C7LyCaqEmC81Ho2ZmQlrhxKQUyTsi7nLB7YLIJW0+iX2gujx
	 N+3f1o4ecJ6slxZpKqqaCxypIAJB/DA==
X-HalOne-SA: -0.8
X-HalOne-RefID: 155866::1681399484-82F18CA9-7A1CD141/0/0
X-HalOne-ID: 50bb64c2-da0f-11ed-a520-98039b05783e
Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179])
	by mx2.pub.mailpod8-cph3.one.com (Halon) with ESMTPS
	id 50bb64c2-da0f-11ed-a520-98039b05783e;
	Thu, 13 Apr 2023 15:24:44 +0000 (UTC)
Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-329465f10fbso762665ab.1
        for <filtered@awaresystems.be>; Thu, 13 Apr 2023 08:24:43 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20221208; t=1681399482; x=1683991482;
        h=sender:errors-to:list-subscribe:list-help:list-post
         :list-unsubscribe:list-id:precedence:x-beenthere:subject:cc:to
         :message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature:delivered-to:x-gm-message-state:from:to:cc:subject
         :date:message-id:reply-to;
        bh=8S0ZANmffBehAarUZJUXDY8KTSKjSA+gcQyRSUOLc3k=;
        b=aR82FITX+p+cyAgXEHD69YW+xEKihFghHGQA4coJok0VPLRbtKd4zzWAXXAeR0XB67
         77D1F+EYqIp6EgH33CuJM6AGj8ceVd7DsCvr9zy52PO5mS8z+91W0y2q5TkGxCR8bIHA
         MfobwokvL2qmbuUsSykGen0PZ8zmVTt/fWOuTeH22hPZLtyd19uNgZRsz0uCjzIMXrw/
         ipnuJTunqZyhBbddF5uFi3EQHDgxxATvZmDZtCmRsTtPnQjYIue3DWPKZGB/lV6h89fD
         33M/5D0h69/jzn7CesmSr7Q24GtcwPx4vgZmQeUhYuMDRxk1da2H2DNX+5Kd5vgW12Se
         0tFw==
X-Gm-Message-State: AAQBX9cn+o8y4y8MjOrxObpUqVypcca69GwWXyWQI+osrWnS7VyvMeZP
	sWyf7U1fR8Uzu9zBUBsfBWT7/IXA3ZU6dPmWk29Ls1Clb0lzBqJjbA==
X-Received: by 2002:a92:b04:0:b0:326:6e97:8137 with SMTP id b4-20020a920b04000000b003266e978137mr861194ilf.6.1681399482598;
        Thu, 13 Apr 2023 08:24:42 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 2002:a92:6d07:0:b0:32a:87ba:be62 with SMTP id i7csp182877ilc;
        Thu, 13 Apr 2023 08:24:41 -0700 (PDT)
X-Google-Smtp-Source: AKy350bYAMC9byPItXRz9cZqyI8zypiD6esQHr1ywIdJvXwSSskm8y01OBjRTPTPKrT9Ui3WJeH3
X-Received: by 2002:a05:6a00:24c4:b0:63b:5496:7af5 with SMTP id d4-20020a056a0024c400b0063b54967af5mr2560199pfv.1.1681399481251;
        Thu, 13 Apr 2023 08:24:41 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1681399481; cv=none;
        d=google.com; s=arc-20160816;
        b=f33FS+Z2UZU7pnyehldnlAHd2m59w0lF76zYJEamj/PjAkWlCTxzgbbr74OpIzfMH/
         g8sFxaRA6nhqmUVaQ1tAumApmU37Q3cg+zLSkEH36OHq9WxDPCj26+cXWZhHzP9B9LdX
         A5q2H/8sX7g73wtxN+VUw/JiC3CfzaIG9R+BStXE5zzZJJYmTslKmWjWvpGddmXkY6o5
         WqpaJksW9hgBwNf9sVu96JTPPY6lmKKGkcw947ShRmGNMsCxIeQ0396ohfHi8ZQ17vkm
         mVjWjVQy16XQ24qpf+e3u6eYcOjiwkI63Ovp/0c7ybJeeDphUuapMFjgJo8aS+rl8Mgs
         lcMg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=sender:errors-to:list-subscribe:list-help:list-post
         :list-unsubscribe:list-id:precedence:subject:cc:to:message-id:date
         :from:in-reply-to:references:mime-version:dkim-signature;
        bh=8S0ZANmffBehAarUZJUXDY8KTSKjSA+gcQyRSUOLc3k=;
        b=Z8S8+6trsUG1fkub1BFy5EV8nd4ow8LYNW5nYoWI2RonYl0ohebQa8sJoPmDSXPVfi
         vTrtFFA0UNAQmXlw/lxva/J9mElmX/obJjCtPoiLUss+FkFpJL47IufGuxkeeZRy/1AO
         2Dcz1c8ujeVCeiXzoWjIqf4HA5udIBUGQ3eub+oOVQGztg4rdTah0xtMbODoTwItCFWH
         1EsbAtMXtakwWhIfnToOjKde+zl/0/drgVkhEhTHibtGtxgH26LnB5nylmbnst/QXB9K
         sOscOs1UeMMgV2lDENT0GYeu7jJA6tBw43GTcIu16Ekg98FBmCsWi+UGUOXXRuGfZipR
         lZYA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=QYvPa7VH;
       spf=pass (google.com: domain of srs0=hj1s=ae=lists.osgeo.org=tiff-bounces@osgeo.org designates 140.211.15.3 as permitted sender) smtp.mailfrom="SRS0=HJ1s=AE=lists.osgeo.org=tiff-bounces@osgeo.org";
       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Return-Path: <SRS0=HJ1s=AE=lists.osgeo.org=tiff-bounces@osgeo.org>
Received: from lists.osgeo.org (osgeo6.osgeo.osuosl.org. [140.211.15.3])
        by mx.google.com with ESMTPS id q1-20020aa79601000000b006265c3706f5si2103077pfg.42.2023.04.13.08.24.40
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 13 Apr 2023 08:24:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of srs0=hj1s=ae=lists.osgeo.org=tiff-bounces@osgeo.org designates 140.211.15.3 as permitted sender) client-ip=140.211.15.3;
Authentication-Results: mx.google.com;
       dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20221208 header.b=QYvPa7VH;
       spf=pass (google.com: domain of srs0=hj1s=ae=lists.osgeo.org=tiff-bounces@osgeo.org designates 140.211.15.3 as permitted sender) smtp.mailfrom="SRS0=HJ1s=AE=lists.osgeo.org=tiff-bounces@osgeo.org";
       dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id E2FDE612143A;
	Thu, 13 Apr 2023 08:24:39 -0700 (PDT)
Authentication-Results: lists.osgeo.org;
	dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QYvPa7VH";
	dkim-atps=neutral
Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com
 [209.85.208.175])
 by lists.osgeo.org (Postfix) with ESMTPS id F0A846121424
 for <tiff@lists.osgeo.org>; Thu, 13 Apr 2023 08:24:38 -0700 (PDT)
Received: by mail-lj1-f175.google.com with SMTP id m5so1222541ljc.4
 for <tiff@lists.osgeo.org>; Thu, 13 Apr 2023 08:24:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1681399477; x=1683991477;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=wqZvlXa0Q+AdOeUixK6mjEs7V3Kk6ShYbKUn3oiV/GM=;
 b=QYvPa7VHwCZMduD1vqzCrYcoFjizNkEp3zsLVSqR+5vBrZ3daBqdt9mS5fIREz6EvF
 L3N7/UOtEEcRNBoSD61f3PuLkEhKkhCtVA8j5NyZEvasofm/NMA3oLEJvFkeaifGUzMl
 9PFiPXhr84WlJ6WQQDBFC7YdoxSB7tp+uEbjD2+42aAnu44wGHh/UYMz9Im8TGYZHEU2
 KtiqnfWdhUt5VOJ0lPIEBzztJj+TER69a8hc9PK3aa/GokRyynYrthkRHU+GufcaUJVF
 x0190CZFeexIAmy5cH2JSvn6xw/EGCxUZrFHPHj2w5XunMWXWAqwG86xgKzU8QlxK/YK
 APoA==
X-Received: by 2002:a2e:940e:0:b0:29f:caf0:f77f with SMTP id
 i14-20020a2e940e000000b0029fcaf0f77fmr906136ljh.3.1681399476629; Thu, 13 Apr
 2023 08:24:36 -0700 (PDT)
MIME-Version: 1.0
References: <!&!AAAAAAAAAAAYAAAAAAAAAEUNXr1cc6FEs82BI4LfFJfCgAAAEAAAAM418k/4OelCqjx5kNnQZp4BAAAAAA==@freenet.de>
 <00a001d96d7c$c68c8350$53a589f0$@perdrix.co.uk>
 <000001d96dea$e109f000$a31dd000$@perdrix.co.uk>
 <007901d96e01$afd64c60$0f82e520$@perdrix.co.uk>
 <CAAcuQeZ5t7oK_4xT3AX2UnJB4CxKnyJ8TG6Qc06LUHitijavng@mail.gmail.com>
 <009a01d96e06$d0f72fe0$72e58fa0$@perdrix.co.uk>
 <CAAcuQea04gVjNDCmGSP-ay56HQdFBdddQQ38KHi_UTeaB4K=Eg@mail.gmail.com>
 <00bb01d96e10$ec1c9ad0$c455d070$@perdrix.co.uk>
In-Reply-To: <00bb01d96e10$ec1c9ad0$c455d070$@perdrix.co.uk>
From: Olivier Paquet <olivier.paquet@gmail.com>
Date: Thu, 13 Apr 2023 11:24:25 -0400
Message-ID: <CAAcuQeZfXOBVZ0r9uDeGZ+3M42jArH__d2h4fEokR8Z8avCxuw@mail.gmail.com>
To: "David C. Partridge" <david.partridge@perdrix.co.uk>
Cc: tiff@lists.osgeo.org
Subject: Re: [Tiff] TIffWriteDirectory() causes problems
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0684261103594165604=="
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

--===============0684261103594165604==
Content-Type: multipart/alternative; boundary="00000000000087b47905f939527e"

--00000000000087b47905f939527e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It isn't the same. As far as I can tell, multiple TIFFCheckpointDirectory
calls will reuse the same space in the file but the final directory write
will still allocate new space at the end. I'm not fully familiar with the
write code but I suspect there are assumptions made, like you shouldn't add
tags between checkpoints but you're allowed to before the final write. Or,
just as likely, it just happened this way when checkpointing was
implemented. I don't think it is a widely used feature and the wasted space
may not have bothered anyone. I certainly never noticed it before.

Olivier

Le jeu. 13 avr. 2023, =C3=A0 10 h 04, David C. Partridge <
david.partridge@perdrix.co.uk> a =C3=A9crit :

> Thanks again,
>
>
>
> Any answer on my Q about CheckPointDirectory?
>
>
>
> Thanks
>
> D.
>
>
>

--00000000000087b47905f939527e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>It isn&#39;t the same. As far as I can tell, multiple=
 TIFFCheckpointDirectory calls will reuse the same space in the file but th=
e final directory write will still allocate new space at the end. I&#39;m n=
ot fully familiar with the write code but I suspect there are assumptions m=
ade, like you shouldn&#39;t add tags between checkpoints but you&#39;re all=
owed to before the final write. Or, just as likely, it just happened this w=
ay when checkpointing was implemented. I don&#39;t think it is a widely use=
d feature and the wasted space may not have bothered anyone. I certainly ne=
ver noticed it before.</div><div><br></div><div>Olivier</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Le jeu. 13 avr. 2023=
, =C3=A0 10 h 04, David C. Partridge &lt;<a href=3D"mailto:david.partridge@=
perdrix.co.uk">david.partridge@perdrix.co.uk</a>&gt; a =C3=A9crit=C2=A0:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D"msg4=
986463731498045824"><div lang=3D"EN-GB" style=3D"overflow-wrap: break-word;=
"><div class=3D"m_4986463731498045824WordSection1"><p class=3D"MsoNormal"><=
span>Thanks again,<u></u><u></u></span></p><p class=3D"MsoNormal"><span><u>=
</u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span>Any answer on my Q=
 about CheckPointDirectory?<u></u><u></u></span></p><p class=3D"MsoNormal">=
<span><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span>Thanks<u>=
</u><u></u></span></p><p class=3D"MsoNormal"><span>D.<u></u><u></u></span><=
/p><p class=3D"MsoNormal"><br></p></div></div></div></blockquote></div></di=
v>

--00000000000087b47905f939527e--

--===============0684261103594165604==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff

--===============0684261103594165604==--
