Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail6.b-one.net (Postfix) with ESMTP id 539E68017F7F9
	for <filtered@awaresystems.be>; Thu, 12 Jul 2012 11:57:22 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.220.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176])
	by mx-k.one.com (Postfix) with ESMTP id E45041296F59
	for <filtered@awaresystems.be>; Thu, 12 Jul 2012 09:57:21 +0000 (UTC)
Received: by vcbfl11 with SMTP id fl11so285363vcb.21
        for <filtered@awaresystems.be>; Thu, 12 Jul 2012 02:57:21 -0700 (PDT)
Received: by 10.220.9.10 with SMTP id j10mr24981678vcj.7.1342087040835;
        Thu, 12 Jul 2012 02:57:20 -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.58.208.231 with SMTP id mh7csp79798vec;
        Thu, 12 Jul 2012 02:57:20 -0700 (PDT)
Received: by 10.52.174.226 with SMTP id bv2mr21167379vdc.32.1342087039547;
        Thu, 12 Jul 2012 02:57:19 -0700 (PDT)
DomainKey-Status: good
Received-SPF: softfail (google.com: best guess record for domain of transitioning jormarfe@gmail.com does not designate 91.198.169.56 as permitted sender) client-ip=91.198.169.56;
Received: by 10.230.67.1 with POP3 id p1mf1011890vbi.6;
        Thu, 12 Jul 2012 02:57:19 -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-i.one.com (mx-i.one.com [91.198.169.56])
	by mail6.b-one.net (Postfix) with ESMTP id 6D8718017F7F9
	for <info@awaresystems.be>; Thu, 12 Jul 2012 11:57:14 +0200 (CEST)
Received-SPF: pass (mx-i: domain of jormarfe@gmail.com designates 209.85.214.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176])
	by mx-i.one.com (Postfix) with ESMTP id EEEF21216531
	for <info@awaresystems.be>; Thu, 12 Jul 2012 09:57:13 +0000 (UTC)
Received: by obbtb18 with SMTP id tb18so4198024obb.21
        for <info@awaresystems.be>; Thu, 12 Jul 2012 02:57:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=YWicaQ0P7KBfUs6ADHi8p5ra2nhMO2YW6xBYi37kukM=;
        b=APnEjiw8N3n3hiCyKnm4YlbfdvJakXSTK20TgVaJoGjfpD0jqxNJ7V8742v14oqgrV
         FscSbAASm+WrUiOHg+tIcFD5ZoeurEEfcFja1haZGl6c7GA8I0YMI8aoO393wYtXoUZb
         gju+eH020aWN/OIDdito6lEYV23wO0xu5dkfjSHiMhi0RzOCjmtHjKtL4CZoQTfkwj5f
         tUxTN4ltFJMZZI2nPQ4DI+VtqereNl4Fk9n5XvpMHnWpOZpuLl1lQJr73VaOBNJWxbxW
         8tq8hZ8sOSpfFSnXk2BupQzfLCRJRG+lGMS0DcO+GykqKNTxO9JF6KCR2kvN9ziGSVRt
         ChJg==
MIME-Version: 1.0
Received: by 10.182.217.38 with SMTP id ov6mr48235496obc.33.1342087032882;
 Thu, 12 Jul 2012 02:57:12 -0700 (PDT)
Received: by 10.76.135.198 with HTTP; Thu, 12 Jul 2012 02:57:12 -0700 (PDT)
In-Reply-To: <CA+NZCsRyZvU2FoBBSycL6G5MEW-S=WsBKvPFyP1cwPKGxYvsiQ@mail.gmail.com>
References: <CADH5xWqhDbnx+2ku-dCHm6ZkT_w6p2U4Y2Etph0RtCfNFfpnGg@mail.gmail.com>
	<alpine.GSO.2.01.1207111631180.14450@freddy.simplesystems.org>
	<CAAcuQeZn8LBmX6pTjUAN0082Maf2+mfGi6d6tNc0BU=k8dRv4A@mail.gmail.com>
	<CA+NZCsRyZvU2FoBBSycL6G5MEW-S=WsBKvPFyP1cwPKGxYvsiQ@mail.gmail.com>
Date: Thu, 12 Jul 2012 11:57:12 +0200
Message-ID: <CADH5xWrmR9wXaH_RPD6DDdR6x6ScXdDgPYVgc7j+cri8_en1XQ@mail.gmail.com>
Subject: Re: [Tiff] Doubts about Strip and Tile Oriented read/write TIFF files
From: Jorge Martin <jormarfe@gmail.com>
To: "Joris Van Damme (AWare Systems)" <info@awaresystems.be>
Cc: Olivier Paquet <olivier.paquet@gmail.com>, tiff@lists.maptools.org
Content-Type: multipart/alternative; boundary=f46d044472d1da465d04c49efccd

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

Hello  all,


Thank you very much for your answers. So, Joris , for strip oriented the
same should be applied for the last strips, repetition of the last valid
color (repetition of the last row), isn't it?


Best Regards,

Jorge

2012/7/12 Joris Van Damme (AWare Systems) <info@awaresystems.be>

> Olivier, all,
>
> > Obviously, it's better if you put zeroes there.
>
> Actually zeroing out the 'unused' area might not be a TIFF writer's
> best option. It interferes badly with some compression modes, like
> JPEG, and with prediction and the likes.
>
> To my mind, the best option is the repetition of the last valid color.
> I apply that in both directions, i.e. I repeat the last valid column
> of pixel values to the right, in right-most tiles, and I repeat the
> last valid line of pixels to the bottom, in bottom-most tiles. It's
> probably not ideal, and it may be that the best option is actually
> compression-mode-dependent, but in my opinion, in TIFF, it's very
> important to eliminate dependencies between the different steps of the
> encoding and decoding chains, and repetition of the last valid color
> is the single option I could find that doesn't hurt too much whatever
> the details of preceding and following steps may be.
>
>
> Best regards,
>
> Joris Van Damme
> AWare Systems
>

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

Hello=A0
<span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:1=
3px;background-color:rgb(255,255,255)">all,</span><div><font color=3D"#2222=
22" face=3D"arial, sans-serif"><br></font></div><div><br></div><div><font c=
olor=3D"#222222" face=3D"arial, sans-serif">Thank you very much for your an=
swers. So,=A0</font><span style=3D"background-color:rgb(255,255,255);color:=
rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Joris</span><spa=
n style=3D"background-color:rgb(255,255,255);color:rgb(34,34,34);font-famil=
y:arial,sans-serif;font-size:13px">=A0, for strip oriented the same should =
be applied for the last strips, </span><span style=3D"background-color:rgb(=
255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13p=
x">repetition of the last valid color (repetition of the last row), isn&#39=
;t it?=A0</span></div>
<div><font color=3D"#222222" face=3D"arial, sans-serif"><br></font></div><d=
iv><font color=3D"#222222" face=3D"arial, sans-serif"><br></font></div><div=
><font color=3D"#222222" face=3D"arial, sans-serif">Best Regards,</font></d=
iv><div>
<font color=3D"#222222" face=3D"arial, sans-serif"><br></font></div><div><f=
ont color=3D"#222222" face=3D"arial, sans-serif">Jorge<br></font><br><div c=
lass=3D"gmail_quote">2012/7/12 Joris Van Damme (AWare Systems) <span dir=3D=
"ltr">&lt;<a href=3D"mailto:info@awaresystems.be" target=3D"_blank">info@aw=
aresystems.be</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Olivier, all,<br>
<div class=3D"im"><br>
&gt; Obviously, it&#39;s better if you put zeroes there.<br>
<br>
</div>Actually zeroing out the &#39;unused&#39; area might not be a TIFF wr=
iter&#39;s<br>
best option. It interferes badly with some compression modes, like<br>
JPEG, and with prediction and the likes.<br>
<br>
To my mind, the best option is the repetition of the last valid color.<br>
I apply that in both directions, i.e. I repeat the last valid column<br>
of pixel values to the right, in right-most tiles, and I repeat the<br>
last valid line of pixels to the bottom, in bottom-most tiles. It&#39;s<br>
probably not ideal, and it may be that the best option is actually<br>
compression-mode-dependent, but in my opinion, in TIFF, it&#39;s very<br>
important to eliminate dependencies between the different steps of the<br>
encoding and decoding chains, and repetition of the last valid color<br>
is the single option I could find that doesn&#39;t hurt too much whatever<b=
r>
the details of preceding and following steps may be.<br>
<br>
<br>
Best regards,<br>
<br>
Joris Van Damme<br>
<span class=3D"HOEnZb"><font color=3D"#888888">AWare Systems<br>
</font></span></blockquote></div><br></div>

--f46d044472d1da465d04c49efccd--
