Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-v.one.com (mx-v.one.com [195.47.247.147])
	by mail6.local (Postfix) with ESMTP id 3AA573001843E7
	for <filtered@awaresystems.be>; Fri,  9 May 2014 00:09:03 +0000 (UTC)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-v: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.217.173 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173])
	by mx-v.one.com (Postfix) with ESMTP id 0E2E2341C8C7
	for <filtered@awaresystems.be>; Fri,  9 May 2014 00:09:03 +0000 (UTC)
Received: by mail-lb0-f173.google.com with SMTP id 10so4686862lbg.32
        for <filtered@awaresystems.be>; Thu, 08 May 2014 17:09:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:delivered-to:delivered-to
         :mime-version:date:message-id:from:to:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :content-type:mime-version:sender:errors-to;
        bh=V1wuLYmtt+w3Gf4BkeXo/yJspBowhH+6uEOSnulVruM=;
        b=cCk7Gdl6GGyg1l8/Mla2yrclpsfv9/BGH82Pn0G4xWpyzKtESF3aUV6KhhA7jgJo18
         8e79lGY/MMEooW+LQFmyfhg8eA6fxR4EwIDZnd+OkDMcrcEKCi812X6zCe5FQAOZLgm0
         Olo+oaGf49f37ZkR7wD6qi0FliUC4My6mMUgZBHfM5mc4T2Y6l+i1t59FfAAX+lpQZkp
         mNXJ6at3wt0iPAhjRR9C/U2Gqs4CRnLAcCFq7Mgq4BgClVTK5wpsSHZkh2FJCPPxOWZ2
         UJLmWNhllJDDI98RSQmpqP8Z9EiPsMCaVN/zoOyWc3aWIvjRWujAzTZ+mQJ9lRA78I//
         sn5A==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
X-Received: by 10.112.67.35 with SMTP id k3mr7927955lbt.17.1399594142670;
        Thu, 08 May 2014 17:09:02 -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.114.11.132 with SMTP id q4csp89283ldb;
        Thu, 8 May 2014 17:09:02 -0700 (PDT)
X-Received: by 10.112.58.202 with SMTP id t10mr8122351lbq.6.1399594141320;
        Thu, 08 May 2014 17:09:01 -0700 (PDT)
Authentication-Results: mx.google.com;
       spf=neutral (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) smtp.mail=tiff-bounces@lists.maptools.org
Received-SPF: none (google.com: tiff-bounces@lists.maptools.org does not designate permitted sender hosts) client-ip=91.198.169.60;
Received: by 10.112.33.104 with POP3 id q8mf2337848lbi.39;
        Thu, 08 May 2014 17:09:00 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-m.one.com (mx-m.one.com [91.198.169.60])
	by mail6.local (Postfix) with ESMTP id 94D7D3001843F5
	for <info@awaresystems.be>; Thu,  8 May 2014 23:15:21 +0000 (UTC)
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx-m.one.com (Postfix) with ESMTP id 6E1B9264D3BB5
	for <info@awaresystems.be>; Thu,  8 May 2014 23:15:21 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id A576835C025;
	Thu,  8 May 2014 18:14:40 -0500 (EST)
Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com
	[209.85.128.172])
	by lists.maptools.org (Postfix) with ESMTPS id 731F735C025
	for <tiff@lists.maptools.org>; Thu,  8 May 2014 18:14:17 -0500 (EST)
Received: by mail-ve0-f172.google.com with SMTP id oz11so4186395veb.31
	for <tiff@lists.maptools.org>; Thu, 08 May 2014 16:14:17 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.52.253.75 with SMTP id zy11mr4325547vdc.10.1399590857480;
	Thu, 08 May 2014 16:14:17 -0700 (PDT)
Received: by 10.52.158.131 with HTTP; Thu, 8 May 2014 16:14:17 -0700 (PDT)
Date: Thu, 8 May 2014 16:14:17 -0700
X-Google-Sender-Auth: vMLxIMSMeqNbq7oUXDQA246Knd4
Message-ID: <CAHjiUbpE=rBdVpspeb4kFhfp9Vfrbd=2t4ZooYhcQBFDugEJQw@mail.gmail.com>
From: Jeff Breidenbach <jeff@jab.org>
To: tiff@lists.maptools.org
Subject: [Tiff] what's up with all the seeking?
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="===============1487236307=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1487236307==
Content-Type: multipart/alternative; boundary=001a1135ef16e41f4604f8eba3cb

--001a1135ef16e41f4604f8eba3cb
Content-Type: text/plain; charset=ISO-8859-1

Is TIFF fundamentally incompatible with streaming?

===

#include <tiffio.h>
#include <stdio.h>

main() {
  TIFF *tiff = TIFFFdOpen(fileno(stdin), "stdin", "rb");
  TIFFClose(tiff);
}

===

$ gcc -o mypgram mypgram.c -ltiff
$ pbmmake 1000 1000 | pnmtotiff -g4 > foo tif
$ myprogram < foo.tif

TIFFFetchDirectory: stdin: Seek error accessing TIFF directory.
TIFFReadDirectory: Failed to read directory at offset 40.
Segmentation fault (core dumped)

--001a1135ef16e41f4604f8eba3cb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Is TIFF fundamentally incompatible with streaming?</d=
iv><div><br></div><div>=3D=3D=3D</div><div><br></div><div>#include &lt;tiff=
io.h&gt;</div><div>#include &lt;stdio.h&gt;</div><div><br></div><div>main()=
 {</div>
<div>=A0 TIFF *tiff =3D TIFFFdOpen(fileno(stdin), &quot;stdin&quot;, &quot;=
rb&quot;);</div><div>=A0 TIFFClose(tiff);</div><div>}</div><div><br></div><=
div>=3D=3D=3D</div><div><br></div><div>$ gcc -o mypgram mypgram.c -ltiff</d=
iv><div>
$ pbmmake 1000 1000 | pnmtotiff -g4 &gt; foo tif</div><div>$ myprogram &lt;=
 foo.tif</div><div><br></div><div>TIFFFetchDirectory: stdin: Seek error acc=
essing TIFF directory.</div><div>TIFFReadDirectory: Failed to read director=
y at offset 40.</div>
<div>Segmentation fault (core dumped)</div><div><br></div><div><br></div><d=
iv><br></div></div>

--001a1135ef16e41f4604f8eba3cb--

--===============1487236307==
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/
--===============1487236307==--
