Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx1.public.one.com ([10.246.18.21])
	by mail6.local.one.com (Dovecot) with LMTP id +ec4Fb55oVlC/gEAsyOMew
	for <filtered@awaresystems.be>; Sat, 26 Aug 2017 13:57:58 +0000
X-HalOne-ID: 8f702245-8a66-11e7-b02f-b82a72d859f1
Received: from mail-oi0-f52.google.com (unknown [209.85.218.52])
	by mx1.public.one.com (Halon) with ESMTPS
	id 8f702245-8a66-11e7-b02f-b82a72d859f1;
	Sat, 26 Aug 2017 13:57:56 +0000 (UTC)
Received: by mail-oi0-f52.google.com with SMTP id k77so17804874oib.2
        for <filtered@awaresystems.be>; Sat, 26 Aug 2017 06:57:56 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :from:to:thread-topic:thread-index:date:message-id:references
         :in-reply-to:accept-language:content-language:spamdiagnosticoutput
         :spamdiagnosticmetadata:mime-version:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :mime-version:sender:errors-to;
        bh=+a4p2Jg8fxtAgeHBUCnLeGfU5GJBobmy2ddBdFxQ/uA=;
        b=MBV/xmP4cKyeFsqpSUWFhLhiOout5EJU98FBvoHbOqPwL3maxSsk29Mp7eSBDBhXgc
         oCz9USKTcfq5t68P1foTCHGWWrTynKByOTNn3LLLg7mHgoDTbD/yRUOmtO2Vgv0X+ulJ
         woYbJHtKfTdW9siHMLV+T0W9+lOKJcrnKTYXepEY+/aLrSVZDjZMqIWOKsNnjOt/P2gk
         bemJsDYh29M/Y/6guG/LUdXNCNf2rce7KXoxw906PjUyrNmq5kW+xhbLVEea5ax5Q+T0
         rnef2eQyJTADN0pi9R5y01mLAhtSxuXzxrTO8lygp7u9f68cv2cTi0xp7SvZ3UOlDWlz
         12KQ==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hotmail.com
X-Gm-Message-State: AHYfb5hgVk0NXpV3UeSno7EAfqxeG26+uQfDfax2rUF1qolqk8UmojVI
	JnS8FjUNmeenD14GiJ7pmhB2t7y4gFWQeUMiRq3X7Q==
X-Received: by 10.202.73.151 with SMTP id w145mr2412039oia.274.1503755875211;
        Sat, 26 Aug 2017 06:57:55 -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 10.74.90.4 with SMTP id v4csp2290981ooa;
        Sat, 26 Aug 2017 06:57:50 -0700 (PDT)
X-Received: by 10.28.71.219 with SMTP id m88mr825432wmi.190.1503755870868;
        Sat, 26 Aug 2017 06:57:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1503755870; cv=none;
        d=google.com; s=arc-20160816;
        b=ZLMbdex/x9OjEx0gabYVGE20g3TDl0oAv97taeqUapP8dXwHp9YKdBLOS5z5unEFU5
         O2xTAI0oRZXLiqpYinMTPS/6doFpS7euP/bGhbPfZYoKYpr4YDH1hD5h95TWG7/Kh/f6
         6IpI7TPiYhuOWEFOLbVs2BJJbM1PDM/VO48OoPb5Hz4ZXWRvLsPDYv96A8dFrzLTmOFs
         rbuoRVSLJwA02zXlPPgX4VCB3fJ3Gnq143s5ebLcx7YL0tPO+Mt0aaPEg8xKmRnp5bJj
         Dtgnp7SrrZNdI/u0fiw2c80mbM481dDpUsYoa85tn2z1uxP3uplFeuNx/gniXpahIh9g
         2Nsw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:mime-version:list-subscribe:list-help:list-post
         :list-archive:list-unsubscribe:list-id:precedence:subject
         :mime-version:spamdiagnosticmetadata:spamdiagnosticoutput
         :content-language:accept-language:in-reply-to:references:message-id
         :date:thread-index:thread-topic:to:from:arc-authentication-results;
        bh=+a4p2Jg8fxtAgeHBUCnLeGfU5GJBobmy2ddBdFxQ/uA=;
        b=qs+5hKEKpSERAkWaSTdyE3rSLfwl+h7xJGNZToIJcw2jKnrMZkqp1Y2o9oJpN5EWC6
         cmo07ZFN7NNpXiJxJyXupy9YrBnUoL4BZUU/PdBeJfL85yv/IdzxCRYR0o1dTuLRLTEn
         G1vMAtLFvqTJ2bBEjt0wH4rttJ8uHcROYmQaJJ/X0oh2XvNLuC00WgfOYN658hLKjrkQ
         SPwoybqEeyLhh96Q6n2zwb/IGm8I/2qAX72KKBQ6ni0vX2qRp++whpbRA0pzntXG2zeP
         T38EKuzInLAGfpG/ZjJ55VP3gF1v1szQPVQYGVEXUSlTwjg5qf8mz2da98F8SiR/IdZT
         ppcw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hotmail.com
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id 66si3008862wmt.255.2017.08.26.06.57.50;
        Sat, 26 Aug 2017 06:57:50 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hotmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id A1BFE35C030;
	Sat, 26 Aug 2017 08:56:47 -0500 (EST)
Received: from NAM01-BY2-obe.outbound.protection.outlook.com
	(mail-oln040092001099.outbound.protection.outlook.com [40.92.1.99])
	by lists.maptools.org (Postfix) with ESMTPS id B5F5235C02E
	for <tiff@lists.maptools.org>; Sat, 26 Aug 2017 08:56:31 -0500 (EST)
Received: from BY2NAM01FT019.eop-nam01.prod.protection.outlook.com
	(10.152.68.57) by BY2NAM01HT131.eop-nam01.prod.protection.outlook.com
	(10.152.68.178) with Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1341.15;
	Sat, 26 Aug 2017 13:56:29 +0000
Received: from BN3PR18MB0514.namprd18.prod.outlook.com (10.152.68.52) by
	BY2NAM01FT019.mail.protection.outlook.com (10.152.69.212) with
	Microsoft SMTP Server (version=TLS1_2,
	cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
	15.1.1341.15 via Frontend Transport; Sat, 26 Aug 2017 13:56:28 +0000
Received: from BN3PR18MB0514.namprd18.prod.outlook.com ([10.165.116.10]) by
	BN3PR18MB0514.namprd18.prod.outlook.com ([10.165.116.10]) with mapi id
	15.01.1362.019; Sat, 26 Aug 2017 13:56:28 +0000
From: Paul Hemmer <paulhemmer@hotmail.com>
To: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Thread-Topic: Determining use of "w" or "w8" in TIFFOpen 
Thread-Index: AQHTHnMdAToKd//z4EC7K/SA9LLyUA==
Date: Sat, 26 Aug 2017 13:56:28 +0000
Message-ID: <BN3PR18MB0514E9E442AAFF6E1F447FE7DD980@BN3PR18MB0514.namprd18.prod.outlook.com>
References: <BN3PR0701MB1672CAFB60F99887B811593DDDA80@BN3PR0701MB1672.namprd07.prod.outlook.com>,
	<MWHPR18MB1472E355835CFDFD4059450DDD260@MWHPR18MB1472.namprd18.prod.outlook.com>
In-Reply-To: <MWHPR18MB1472E355835CFDFD4059450DDD260@MWHPR18MB1472.namprd18.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: lists.maptools.org; dkim=none (message not signed)
	header.d=none;lists.maptools.org; dmarc=none action=none
	header.from=hotmail.com;
x-incomingtopheadermarker: OriginalChecksum:00B0936FD72820192207FA17A94E97E931A514185238E5B066BB0D56D49259E8;
	UpperCasedChecksum:F9DF75BF1A0B9C54868439AB4BFFD7913183932A77FBE551399BF3BF2B673916;
	SizeAsReceived:7125; Count:46
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [S8jweEpYBEd6OpNaOh+NkxxtyfAixfP5]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BY2NAM01HT131;
	6:rR+/OHNwdY9lfc9R5MDzz+WQreSfAafOTTbKL1byO3ifaitPm7h7Zu/rr9V9yABlmjIhonGF6Ocr/71ILGHwO9+5CAARbnj8YsANc8r/AaVV+3D+kI/vu4xHEGZh1tDW4yGeWUl9vkOA0RBz85/j/dQxiXT6E3imideV+CR+J6TAKYBZQBkPFErb5dc8nxBEaiauc+sHvE1PKCCaKU4Rcf3H/g+JM5hLc68K6ika9/0EkCiSbdqQaLlI0TKbNSFWocLgEbXgE0Ibghvscgi2gj3SaH9qYLzmDM438RX9xwZzTWiI4bowsuuC2NLUuxwLcbEcG1Y2zVszL1ZRD8EDnA==;
	5:PEfRCmy76D0z5og6mD0GbETk9wp+AesT8wdrMUB2w3hlf8bBtHOS7M89rTrHmA+Lua2lrN3d9hFWOvVhPoDC1sM+utKYQXZTTwNjpRXQJ/hloZFWFgKowl2ag05ajF77UhlUeQgasXHA7FBAFxuXLw==;
	24:l28DOtHkpnGBjJcD/RJDIePEn1r65I412pbFQ05FkTukWKdfFU3qhbzdFtOP6dzeZ+uRlaa0MQ6BBdEO101OyOoPJJt9QP+1Em3sYHek5FQ=;
	7:A70MZgAbuVifGgy7pCQI4lqXbF9EIWMjzq3jGy86ziy6o5ebnE7aau6Hgld4OvEQQTvFxBhWPkZG2SkQjUWK12J40lbDNEl/aLOo9VaHc+HaJ4PggPK+l/Xs2qbcCCqChVF4oO/bXvvGTw1CFA7GmFukNKjWQhhgfVu7+vRLKYRuw94qkFnEmpdsGPG3i6y2mN9nXN84yjz3mKKJ1pdPteGQaYpgKpVti/fY0I79wWM=
x-incomingheadercount: 46
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: f1dba3aa-977d-4791-7359-08d4ec8a3ff4
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);
	SRVR:BY2NAM01HT131; 
x-ms-traffictypediagnostic: BY2NAM01HT131:
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);
	SRVR:BY2NAM01HT131; BCL:0; PCL:0;
	RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);
	SRVR:BY2NAM01HT131; 
x-forefront-prvs: 04111BAC64
x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT;
	SFP:1901; SCL:1; SRVR:BY2NAM01HT131;
	H:BN3PR18MB0514.namprd18.prod.outlook.com; FPR:; SPF:None;
	LANG:en; 
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2017 13:56:28.8084 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT131
Subject: [Tiff] Determining use of "w" or "w8" in TIFFOpen
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0111838130=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0111838130==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_BN3PR18MB0514E9E442AAFF6E1F447FE7DD980BN3PR18MB0514namp_"

--_000_BN3PR18MB0514E9E442AAFF6E1F447FE7DD980BN3PR18MB0514namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello!


If I have a buffer of 16bit grayscale data, and a known width and height, I=
 could calculate the size by w*h*2


If that size is greater than 4GB, I should specify "w8" and if less than, I=
 should specify "w" when calling TIFFOpen() in order to get the BigTIFF for=
mat when needed.


But what if the use of COMPRESSION_LZW would result in a file that is much =
smaller than 4GB? I can't know that ahead of time (can I?)  Should I still =
use w8 if the uncompressed dimensions require more than 4GB?


I'm finding that I can't simply specify "w8" for all, as those that are les=
s than 4GB end up failing to open.


What is the right way to approach this?


Thanks!

Paul



--_000_BN3PR18MB0514E9E442AAFF6E1F447FE7DD980BN3PR18MB0514namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p>Hello!</p>
<p><br>
</p>
<p>If I have a buffer of 16bit grayscale data, and a known width and height=
, I could calculate the size by w*h*2</p>
<p><br>
</p>
<p>If that size is greater than 4GB, I should specify &quot;w8&quot; and if=
 less than, I should specify &quot;w&quot; when calling TIFFOpen() in order=
 to get the BigTIFF format when needed.</p>
<p><br>
</p>
<p>But what if the&nbsp;use of COMPRESSION_LZW would result in a file that =
is much smaller than 4GB? I can't know that ahead of time (can I?) &nbsp;Sh=
ould I still use w8 if the uncompressed dimensions&nbsp;require more than 4=
GB?</p>
<p><br>
</p>
<p>I'm finding that I can't simply specify &quot;w8&quot; for all, as those=
 that are less than 4GB end up failing to open.</p>
<p><br>
</p>
<p>What is the right way to approach this?</p>
<p><br>
</p>
<p>Thanks!</p>
<p>Paul</p>
<p><br>
</p>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; color=
:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

--_000_BN3PR18MB0514E9E442AAFF6E1F447FE7DD980BN3PR18MB0514namp_--

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

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
--===============0111838130==--
