Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx6.public.one.com ([10.246.18.26])
	by mail6.local.one.com (Dovecot) with LMTP id rmAoAHx+J1gE7gEAsyOMew
	for <filtered@awaresystems.be>; Sat, 12 Nov 2016 20:42:07 +0000
X-HalOne-ID: 793ece2f-a918-11e6-876e-b82a72d854f0
Received: from mail-oi0-f53.google.com (unknown [209.85.218.53])
	by mx6.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Sat, 12 Nov 2016 20:42:05 +0000 (UTC)
Received: by mail-oi0-f53.google.com with SMTP id z62so21353109oiz.1
        for <filtered@awaresystems.be>; Sat, 12 Nov 2016 12:42:05 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :message-id:date:from:user-agent:mime-version:to:references
         :in-reply-to:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=GWn0n/2m8y7+ZFvK67LkSiBUopseUOTdhayqAFVAavE=;
        b=Xl7f3L61xHO+cJe8dY4t9IpUZx2HGfdveQwpncfCq+hHLdkhYCbQ0NhXbGUPwqfzrp
         acYRM/XdJyxF4ZFn4wLgNUAkN7mFsVzVhrq7k+mwZwrO9cC2M8ob+kxUsZYBq+/iZjCU
         zbuZF856P1eD2DbCzp5yZpOEnduSbjUaXQTsMdWxsbg28k4SM4jkYT998YU1JAizt4B3
         5l1Jt/4fOZjTEe49ahHRpPuJUYGVDDfedRoWSMy2GgJlondHIzeLWhluY05HQaAkWfbR
         Em4iGWfo7GNXGItGiPriCx9/QUXtFGcxgVOsil4DdNHjw/mZMk0VJSmUjVmi04akpxUx
         FhrQ==
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: ABUngvdEyhsatmiAJbM5zCUkwD6equ57PtzKkBskiwTFLo5ZOaZXqYluLq69b9jbRtVvmdcPMrk+JUmApIq+KDA7icA7KmQ=
X-Received: by 10.202.7.67 with SMTP id 64mr3442294oih.214.1478983324257;
        Sat, 12 Nov 2016 12:42:04 -0800 (PST)
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.202.192.135 with SMTP id q129csp378495oif;
        Sat, 12 Nov 2016 12:42:03 -0800 (PST)
X-Received: by 10.28.165.2 with SMTP id o2mr4368505wme.38.1478983323428;
        Sat, 12 Nov 2016 12:42:03 -0800 (PST)
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 196si38914635wme.93.2016.11.12.12.42.02;
        Sat, 12 Nov 2016 12:42:03 -0800 (PST)
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 9018035C079;
	Sat, 12 Nov 2016 15:41:22 -0500 (EST)
Received: from polaris.osa.pri.ee (osa.pri.ee [213.219.84.188])
	by lists.maptools.org (Postfix) with ESMTP id 666E335C077
	for <tiff@lists.maptools.org>; Sat, 12 Nov 2016 15:41:10 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by polaris.osa.pri.ee (Postfix) with ESMTP id E79156E69A
	for <tiff@lists.maptools.org>; Sat, 12 Nov 2016 22:41:09 +0200 (EET)
X-Virus-Scanned: amavisd-new at osa.pri.ee
Received: from polaris.osa.pri.ee ([127.0.0.1])
	by localhost (osa.pri.ee [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id z7w-sDPMcGfc for <tiff@lists.maptools.org>;
	Sat, 12 Nov 2016 22:40:13 +0200 (EET)
Received: from [0.0.0.0] (polaris.osa.pri.ee [213.219.84.188])
	by polaris.osa.pri.ee (Postfix) with ESMTP id 7BD3E6E657
	for <tiff@lists.maptools.org>; Sat, 12 Nov 2016 22:40:13 +0200 (EET)
Message-ID: <58277E26.4070801@osa.pri.ee>
Date: Sat, 12 Nov 2016 22:40:06 +0200
From: Paavo Helde <paavo@osa.pri.ee>
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64;
	rv:25.8) Gecko/20151117 FossaMail/25.1.9
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <5825CFAD.7010103@osa.pri.ee>	<CAAcuQeb5QHkamv35Fk9OELBUkwBpHigt9kLOFqvhezj06XGnpg@mail.gmail.com>	<201611112232.47557.even.rouault@spatialys.com>	<alpine.GSO.2.20.1611111620130.24281@freddy.simplesystems.org>
	<CAO=tXLDiofTutDdoGf8TJGi_F8V5siJSQBt3w9uYHfrPMTRRQQ@mail.gmail.com>
In-Reply-To: <CAO=tXLDiofTutDdoGf8TJGi_F8V5siJSQBt3w9uYHfrPMTRRQQ@mail.gmail.com>
Subject: Re: [Tiff] Global variables in LibTIFF
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 12.11.2016 2:24, Yakov Galka wrote:
> Hey all,
>
> Following our discussion of this issue a few month ago I actually went 
> implementing it. You can look at the patches based on my current code 
> on the following links. I've split it into two patches for easier 
> review: one of the manual edits and one of the autoreplace of the 
> TIFFError/Warning calls:

>
> * I tried to prevent combinatorial explosion by introducing a two step 
> TIFF creation: first one allocates the structure, sets the relevant 
> parameters, then issues the actual Open* call. That state separation 
> actually happened to be useful in fax2tiff in the "FakeInput" TIFF.

Two-step initialization seems very fine to me. At first you initialize 
the library/engine, then use this initialized engine to actually 
open/initialize TIFF files. These are two separate operations logically 
and this should be exposed at the SDK level as well.

Of course, backwards compatibility with previous versions is a must.

just my 2 euro cents
Paavo



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