Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx2.public.one.com ([10.246.18.22])
	by mail6.local.one.com (Dovecot) with LMTP id Ip8MBew7M1hbAgAAsyOMew
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 19:56:53 +0000
X-HalOne-ID: a5b4593e-b024-11e6-80b0-b82a72d88088
Received: from mail-oi0-f49.google.com (unknown [209.85.218.49])
	by mx2.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 19:56:52 +0000 (UTC)
Received: by mail-oi0-f49.google.com with SMTP id v84so172383061oie.3
        for <filtered@awaresystems.be>; Mon, 21 Nov 2016 11:56:52 -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
         :mime-version:in-reply-to:references:from:date:message-id:to:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:mime-version:sender:errors-to;
        bh=G3Vp22bJ73WZv3UHuZv6e/RQ5b4m2LuweRLliX8/2mE=;
        b=ZJWLnUjAxlK+r6KVpeiLf1mP7VB/Agl0kGc44pMzkmxA2jQOv5E814LnkUXtrRdpYu
         W5o29ve0/UNW6Qyey42R7DzD3hCHIgUnjY/WCoqAm5GAxA76brq9gESqRW7AH3zU5TWr
         uNQBbK1yq+b4eAXvaEZR33rbf8PdvNf+S+8UPQVcDFXmd8hvW8GKtex0E/0FHTSqJI2Z
         CONrjuHABd9Y/W2MgEMzPLzqLh7Juqr5kKpSZOHzPayqqO7RsC74AKdmlRNRBonPySiA
         Sk35s9k0K7lb8uIYS5rRD2L0wyNiFnWiECaDjhG/3uV5AGAYFQC4tbw92JK3aDJGN2eK
         UVcQ==
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 dis=NONE) header.from=gmail.com
X-Gm-Message-State: AKaTC0331Ln9lRldB2zOvla4GWWaoYApU97EtvAwB76f7Psn2MfbX6M6x3i11sIz9z1o7tsLV/9+C8j74iMFIsgLZwcs04E=
X-Received: by 10.157.56.179 with SMTP id p48mr10619688otc.247.1479758210960;
        Mon, 21 Nov 2016 11:56:50 -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 q129csp1724177oif;
        Mon, 21 Nov 2016 11:56:50 -0800 (PST)
X-Received: by 10.28.191.130 with SMTP id o2mr17892078wmi.97.1479758210164;
        Mon, 21 Nov 2016 11:56:50 -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 g204si15126087wmf.34.2016.11.21.11.56.49;
        Mon, 21 Nov 2016 11:56:50 -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;
       dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 7829C35C08E;
	Mon, 21 Nov 2016 14:56:08 -0500 (EST)
Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com
	[209.85.216.175])
	by lists.maptools.org (Postfix) with ESMTPS id 2F4DD35C046
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 14:36:05 -0500 (EST)
Received: by mail-qt0-f175.google.com with SMTP id c47so211567814qtc.2
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 11:36:04 -0800 (PST)
X-Received: by 10.237.62.153 with SMTP id n25mr10725599qtf.50.1479756964119;
	Mon, 21 Nov 2016 11:36:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.39.180 with HTTP; Mon, 21 Nov 2016 11:36:03 -0800 (PST)
In-Reply-To: <alpine.GSO.2.20.1611211327190.293@freddy.simplesystems.org>
References: <CAK8GPyDmd1tEGr+oftWfV3edB9EBMWXkKUFOvskUm5XWzLCU-A@mail.gmail.com>
	<CAK8GPyBtdSpwKZR1VVf2ADpy--jyOY16m-hhRaKAkor+HFYgiA@mail.gmail.com>
	<alpine.GSO.2.20.1611211327190.293@freddy.simplesystems.org>
From: Aaron Boxer <boxerab@gmail.com>
Date: Mon, 21 Nov 2016 14:36:03 -0500
Message-ID: <CAK8GPyB6+upuuEzfMoh4+OMx_U2eJxpE1Ccckk37gGWKDo+yTA@mail.gmail.com>
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] 12 bit byte format
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="===============1403241262=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1403241262==
Content-Type: multipart/alternative; boundary=001a113a1f163350a50541d4c43f

--001a113a1f163350a50541d4c43f
Content-Type: text/plain; charset=UTF-8

On Mon, Nov 21, 2016 at 2:31 PM, Bob Friesenhahn <
bfriesen@simple.dallas.tx.us> wrote:

> On Mon, 21 Nov 2016, Aaron Boxer wrote:
>
>>
>> Is this related to the fill order ?
>>
>
> Fill order is about the ordering of bits in a byte.  If the fill order is
> wrong, then there is no resemblance to original values.
>
> My understanding is that 12-bits (and any other depth not matching a
> stored "word" size) should always be stored in big-endian byte order. 16,
> 24, 32, and 64-bits would be stored in the indicated byte order.
>
> If you are using libtiff, then you will find that libtiff swaps data to
> native order for 16, 24, 32, and 64-bits, but otherwise not.
>

Thanks. I guess I don't want to mess with fill order.

--001a113a1f163350a50541d4c43f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Nov 21, 2016 at 2:31 PM, Bob Friesenhahn <span dir=3D"ltr">&lt;=
<a href=3D"mailto:bfriesen@simple.dallas.tx.us" target=3D"_blank">bfriesen@=
simple.dallas.tx.us</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><span class=3D"">On Mon, 21 Nov 2016, Aaron Boxer wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
Is this related to the fill order ?<br>
</blockquote>
<br></span>
Fill order is about the ordering of bits in a byte.=C2=A0 If the fill order=
 is wrong, then there is no resemblance to original values.<br>
<br>
My understanding is that 12-bits (and any other depth not matching a stored=
 &quot;word&quot; size) should always be stored in big-endian byte order. 1=
6, 24, 32, and 64-bits would be stored in the indicated byte order.<br>
<br>
If you are using libtiff, then you will find that libtiff swaps data to nat=
ive order for 16, 24, 32, and 64-bits, but otherwise not.<span class=3D"HOE=
nZb"><font color=3D"#888888"><br></font></span></blockquote><div><br></div>=
<div>Thanks. I guess I don&#39;t want to mess with fill order. <br></div><d=
iv>=C2=A0<br></div></div><br></div></div>

--001a113a1f163350a50541d4c43f--

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