Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx3.pub.mailpod2-cph3.one.com ([10.27.25.13])
	by mailstorage18.cst.mailpod2-cph3.one.com (Dovecot) with LMTP id /P8rF46nvVlSSQAAQS8vrQ
	for <filtered@awaresystems.be>; Sat, 16 Sep 2017 22:43:47 +0000
X-HalOne-ID: 7f700d75-9b30-11e7-8679-e0d84895d241
Received: from mail-oi0-f51.google.com (unknown [209.85.218.51])
	by mx3.pub.mailpod2-cph3.one.com (Halon) with ESMTPS
	id 7f700d75-9b30-11e7-8679-e0d84895d241;
	Sat, 16 Sep 2017 22:43:46 +0000 (UTC)
Received: by mail-oi0-f51.google.com with SMTP id g128so2469533oic.12
        for <filtered@awaresystems.be>; Sat, 16 Sep 2017 15:43:46 -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
         :to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-language:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=/9ArnlUurglhL+cEHxHbGNL8tGg/mQnJLaAmQUUZdRo=;
        b=Jf7uV3cbG4XtL85Rj+hhsQ59xLRLBhhLSstd1mTrEH+5cvY1L1ikd8mgzht0V/91T6
         7c9pbr0Uans6kEG7E0t7S+0/czPH8/Qw68I/rPs4IpajmjeBoYqTioWE1uLSnmL1p1jU
         t5hVGvN/OofPB2iGZyowaAC8sVBnP77MGVDJo4i9hR/Qd0drYJgW5hao0gxIf+JarKGh
         95Cgb0lfiIPiAqaFFE91+Lxh8vpm+rsGqS1Afsy6AcITCnHQdcxVjOjegze10yT81+aS
         Pq2FzN/kSr9zlwmFh0G3TbEoki4qPGMdTyBkRxRrEg+o5FPtt8Rr76mlzhSZG6j6V+9K
         GECg==
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
X-Gm-Message-State: AHPjjUjPEU5rOpFbzeV2fyDZY8GpvjVGIIpF1wD1+LEcrNXp8Y/j3avv
	yf32cC0Zq1sxTIkH7Z5ggAPl707acX5CytIBPQNTqA==
X-Received: by 10.202.48.22 with SMTP id w22mr14716727oiw.289.1505601825261;
        Sat, 16 Sep 2017 15:43:45 -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.122.195 with SMTP id a186csp2443860ooc;
        Sat, 16 Sep 2017 15:43:44 -0700 (PDT)
X-Google-Smtp-Source: AOwi7QBakjeGLEidse3vCHpCsNmKgTAwxRIIsOhDjiPW/+BMZozLcmxb4YaEFIC70oAroqnufatM
X-Received: by 10.28.189.7 with SMTP id n7mr5390388wmf.49.1505601824117;
        Sat, 16 Sep 2017 15:43:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1505601824; cv=none;
        d=google.com; s=arc-20160816;
        b=w3F7YtGAiNnTpF4/szvUIeJ8GgVP4gYJ52aalLNVN1eOhLU5IVBv4zbBf3Wl2IQmS/
         X6j+zdDPHYdKAL52imtXUGFySiUMXol0cA4f0JlzSU1k9uAnofiGoVWtNOzr7uA7ewZ0
         d8dpg553i5bjPtJtAldpSi5tw87aKfDdm75eImvNrt/bfO/anwqsmbVQnLwMyrGa5yOG
         GHFLvoZc1+JXvFJh8S/HNwh8AU/2FxLvU66ZFnTY/JRxaZs5CGQKWeqkFfa2X2yLaGlR
         aZzYjKRYDGZyNkZgvHFrdghkSWagSh8I0r1SfsYjbL1/Co9u4YM32WCgkHBUvhKt6qzQ
         09pg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
         :list-post:list-archive:list-unsubscribe:list-id:precedence:subject
         :content-language:in-reply-to:mime-version:user-agent:date
         :message-id:from:references:to:arc-authentication-results;
        bh=/9ArnlUurglhL+cEHxHbGNL8tGg/mQnJLaAmQUUZdRo=;
        b=KIywe+qKGGm3oWAfev1p3AHA1RbdyJqZanLrxg4DBnNDLwM939PWq1DbcluEhI9WpD
         awOL3M0ww0IE8sBX2itn3buWDv/Q9QP9QmbBsrtwG+eTbg564g7lvYEHclL7b9t6/24P
         vqPsl8oz3U3j5zKjyIx/ghb5/if+LO+J6wGrx/I+wXbEZEwvDloCcqYjUjyKz/HDIO8B
         vdBj5L211QrB7zIAUPOsRuE5FjNn6l1pT4EI0JrbsU8stQLHm8hGB4A12MfZwmKyDabS
         Hb0K6A+YVoBE9XKIQZqRHx7TWxrGdse88r9aGFNO82058mqzS6Q+etmR8r452AeOCf4j
         yjQA==
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
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 e200si3450625wmf.111.2017.09.16.15.43.43;
        Sat, 16 Sep 2017 15:43:44 -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
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 4B3A535C046;
	Sat, 16 Sep 2017 17:42:43 -0500 (EST)
Received: from b-painless.mh.aa.net.uk (b-painless.mh.aa.net.uk [81.187.30.52])
	by lists.maptools.org (Postfix) with ESMTPS id 7600B35C043
	for <tiff@lists.maptools.org>; Sat, 16 Sep 2017 17:41:06 -0500 (EST)
Received: from
	2.6.1.5.a.2.2.8.2.2.9.6.b.a.d.2.d.b.d.d.0.6.8.0.0.b.8.0.1.0.0.2.ip6.arpa
	([2001:8b0:860:ddbd:2dab:6922:822a:5162])
	by b-painless.mh.aa.net.uk with esmtpsa
	(TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89)
	(envelope-from <rleigh@codelibre.net>) id 1dtLlq-0008QL-89
	for tiff@lists.maptools.org; Sat, 16 Sep 2017 23:41:06 +0100
To: tiff@lists.maptools.org
References: <alpine.GSO.2.20.1709161446510.16875@freddy.simplesystems.org>
From: Roger Leigh <rleigh@codelibre.net>
Message-ID: <3f3538f1-6fd7-4acd-0945-9a03c0026a5d@codelibre.net>
Date: Sat, 16 Sep 2017 22:41:04 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101
	Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <alpine.GSO.2.20.1709161446510.16875@freddy.simplesystems.org>
Content-Language: en-GB
Subject: Re: [Tiff] TIFF tile size limit
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On 16/09/2017 19:50, Bob Friesenhahn wrote:
> Does anyone have an opinion on the maximum tile size which should be
> allowed by a general purpose TIFF reader?
> 
> For example is 4096x4096 large enough to handle any practical TIFFs?

I'd venture to say any size up to and including the full image size.

There's no real upper limit for writing that I can see.  We already have 
4k x 4k CCDs in widespread use; 8k x 8k are now available.  I could 
write out the data in whatever size the acquisition hardware provides so 
8k x 8k is a reality today and it's only going to get bigger.  Writing 
out the data in smaller tiles has a (small) cost in rearranging the data 
by copying to a tile buffer I might not want to pay during acquisition. 
That cost increases with image size.

For reading there are a few tradeoffs.  We need the tiles to be big 
enough that we don't do lots of separate reads since this is costly, but 
small enough that we don't waste disc bandwidth and memory by reading 
data we will not use.  It's often also helpful if it's in a size which 
the graphics/compute hardware can cope with or else we need to further 
split it if too big or coalesce if too small.  This will vary wildly 
depending upon the application and the hardware.  OpenGL can have a low 
limit, but CUDA and OpenCL can be much larger--8k x 8k is the smallest 
allowed max size for OpenCL: see 
https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/clGetDeviceInfo.html 
(CL_DEVICE_IMAGE2D_MAX_HEIGHT/WIDTH).  So I think it's fair to say that 
a practical TIFF reader should be capable of at least 8k x 8k for 
today's basic needs, and likely significantly more to be future proof.


Regards,
Roger
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
