Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx1.public.one.com ([10.246.18.21])
	by mail6.local.one.com (Dovecot) with LMTP id a7qDMB1mM1id/QAAsyOMew
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 21:35:01 +0000
X-HalOne-ID: 5bd88c32-b032-11e6-b860-b82a72d859f1
Received: from mail-oi0-f42.google.com (unknown [209.85.218.42])
	by mx1.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 21:35:01 +0000 (UTC)
Received: by mail-oi0-f42.google.com with SMTP id b126so137826154oia.2
        for <filtered@awaresystems.be>; Mon, 21 Nov 2016 13:35:01 -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=NL9o4zxnAyeHl3WgPT1IaWxKa3n6AC1ISr4taNOS5Uo=;
        b=nBZSLdcW0U/MPArUqS8ckCEK4J+a6lN/6Q0r/dX1bL11KnBwfK4NCU4krZbaY3Ype1
         U1D5/Rmc8mrUjl7EzKFba97epG5OAyrupzPCpOM8ylbPRVyoKJousGm1NHymfNCvpplx
         XF5t7/qdSoyVkX7A63YjVlqnCmi/VNAz8daUz56ic3EuHdB726TzIVR0KCmA9SCejlhU
         WdxyKEbmJ3A5Mk8OF2SlkD80Pi01yl5g1J75WKu+I9BrfImIdxAHQXCRv8Gyr162fjA4
         HzVR+BMH3HjyvtCj4cNnKK94vINnzRqAK8JZEAQOb81/iIUxBL6boJgae7s9BUbb46jP
         uufQ==
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: AKaTC01pBO56V40NmPaOvqHYQXZ0bJrNnVQFd+WT0JOjGm0a7smNFAuNH243DlwGD3sCC5HoG+d06WsA/m2ppIW3Pjd3nwg=
X-Received: by 10.157.37.102 with SMTP id j35mr10273251otd.44.1479764099951;
        Mon, 21 Nov 2016 13:34:59 -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 q129csp1766391oif;
        Mon, 21 Nov 2016 13:34:59 -0800 (PST)
X-Received: by 10.194.91.148 with SMTP id ce20mr13269836wjb.59.1479764099019;
        Mon, 21 Nov 2016 13:34:59 -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 m76si15496043wmh.131.2016.11.21.13.34.57;
        Mon, 21 Nov 2016 13:34:58 -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 815C835C0B5;
	Mon, 21 Nov 2016 16:32:50 -0500 (EST)
Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com
	[209.85.220.179])
	by lists.maptools.org (Postfix) with ESMTPS id F322D35C0A9
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 16:05:35 -0500 (EST)
Received: by mail-qk0-f179.google.com with SMTP id n204so368930712qke.2
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 13:05:35 -0800 (PST)
X-Received: by 10.55.140.132 with SMTP id o126mr20825950qkd.227.1479762334468; 
	Mon, 21 Nov 2016 13:05:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.39.180 with HTTP; Mon, 21 Nov 2016 13:05:34 -0800 (PST)
In-Reply-To: <D458C200.3E842%kemp@objectivepathology.com>
References: <CAK8GPyDmd1tEGr+oftWfV3edB9EBMWXkKUFOvskUm5XWzLCU-A@mail.gmail.com>
	<D458B2DE.3E80A%kemp@objectivepathology.com>
	<CAK8GPyAQVO4WQ8gtNLj+2j+qff0RfV8p5K3_LRS1CZT3LG-dLg@mail.gmail.com>
	<alpine.GSO.2.20.1611211340020.293@freddy.simplesystems.org>
	<CAK8GPyCV2CYO+7-x64=mSqHrO-nqrb-24=8=ptBQZotgd4HF3w@mail.gmail.com>
	<alpine.GSO.2.20.1611211349430.293@freddy.simplesystems.org>
	<D458C200.3E842%kemp@objectivepathology.com>
From: Aaron Boxer <boxerab@gmail.com>
Date: Mon, 21 Nov 2016 16:05:34 -0500
Message-ID: <CAK8GPyCWo_OLbjG=OZsQUBzNrtrEKHCB5Vx2ppJGjwzoFPVyKQ@mail.gmail.com>
To: Kemp Watson <kemp@objectivepathology.com>
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="===============1386778424=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============1386778424==
Content-Type: multipart/alternative; boundary=001a114852504c94330541d604db

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

On Mon, Nov 21, 2016 at 3:28 PM, Kemp Watson <kemp@objectivepathology.com>
wrote:

> If it helps, there=C2=B9s a world of difference between =C2=B3used=C2=B2 =
bits and
> =C2=B3encoded/stored=C2=B2 bits. The software and files don=C2=B9t care a=
bout =C2=B3used=C2=B2 bits=C5=A0
>
> If data is stored raw, there=C2=B9s an impact on file size; but if LZW or=
 other
> compression, storing 12 used bits in a 16-bit field won=C2=B9t effect fil=
e size
> noticeably.
>

Thanks, yes, I am looking primarily at uncompressed data, so 12 bits helps
a lot.

>
>
>
>
>
>
> On 2016-11-21, 2:54 PM, "Bob Friesenhahn" <tiff-bounces@lists.maptools.or=
g
> on behalf of bfriesen@simple.dallas.tx.us> wrote:
>
> >On Mon, 21 Nov 2016, Aaron Boxer wrote:
> >
> >> TIFFTAG_BITSPERSAMPLE equals 12
> >> TIFFTAG_SAMPLESPERPIXEL equals 3
> >>
> >> I guess there is no standard format for 12 bit, in terms of bits on
> >>disk.
> >
> >The above seems to be the standard to me.
> >
> >Since you are likely doing DCI related things, the 12-bits in 16-bits
> >issue comes up because the original sample scans were done this way
> >(on a Filmlight) because TIFF decoders for 12-bits were rare and
> >because they did not trust that DPX readers would support 12-bits.
> >Because of this, the original JPEG 2000 encoders targeting DCI were
> >implemented for this form of input.
> >
> >Bob
> >--
> >Bob Friesenhahn
> >bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/
> users/bfriesen/
> >GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
> >_______________________________________________
> >Tiff mailing list: Tiff@lists.maptools.org
> >http://lists.maptools.org/mailman/listinfo/tiff
> >http://www.remotesensing.org/libtiff/
>
>
>

--001a114852504c94330541d604db
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 3:28 PM, Kemp Watson <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:kemp@objectivepathology.com" target=3D"_blank">kemp@objective=
pathology.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If it=
 helps, there=C2=B9s a world of difference between =C2=B3used=C2=B2 bits an=
d<br>
=C2=B3encoded/stored=C2=B2 bits. The software and files don=C2=B9t care abo=
ut =C2=B3used=C2=B2 bits=C5=A0<br>
<br>
If data is stored raw, there=C2=B9s an impact on file size; but if LZW or o=
ther<br>
compression, storing 12 used bits in a 16-bit field won=C2=B9t effect file =
size<br>
noticeably.<br></blockquote><div><br></div><div>Thanks, yes, I am looking p=
rimarily at uncompressed data, so 12 bits helps a lot.<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex"><span class=3D"">
<br>
<br>
<br>
<br>
<br>
<br>
</span>On 2016-11-21, 2:54 PM, &quot;Bob Friesenhahn&quot; &lt;<a href=3D"m=
ailto:tiff-bounces@lists.maptools.org">tiff-bounces@lists.maptools.<wbr>org=
</a><br>
<div class=3D"HOEnZb"><div class=3D"h5">on behalf of <a href=3D"mailto:bfri=
esen@simple.dallas.tx.us">bfriesen@simple.dallas.tx.us</a>&gt; wrote:<br>
<br>
&gt;On Mon, 21 Nov 2016, Aaron Boxer wrote:<br>
&gt;<br>
&gt;&gt; TIFFTAG_BITSPERSAMPLE equals 12<br>
&gt;&gt; TIFFTAG_SAMPLESPERPIXEL equals 3<br>
&gt;&gt;<br>
&gt;&gt; I guess there is no standard format for 12 bit, in terms of bits o=
n<br>
&gt;&gt;disk.<br>
&gt;<br>
&gt;The above seems to be the standard to me.<br>
&gt;<br>
&gt;Since you are likely doing DCI related things, the 12-bits in 16-bits<b=
r>
&gt;issue comes up because the original sample scans were done this way<br>
&gt;(on a Filmlight) because TIFF decoders for 12-bits were rare and<br>
&gt;because they did not trust that DPX readers would support 12-bits.<br>
&gt;Because of this, the original JPEG 2000 encoders targeting DCI were<br>
&gt;implemented for this form of input.<br>
&gt;<br>
&gt;Bob<br>
&gt;--<br>
&gt;Bob Friesenhahn<br>
&gt;<a href=3D"mailto:bfriesen@simple.dallas.tx.us">bfriesen@simple.dallas.=
tx.us</a>, <a href=3D"http://www.simplesystems.org/users/bfriesen/" rel=3D"=
noreferrer" target=3D"_blank">http://www.simplesystems.org/<wbr>users/bfrie=
sen/</a><br>
&gt;GraphicsMagick Maintainer,=C2=A0 =C2=A0 <a href=3D"http://www.GraphicsM=
agick.org/" rel=3D"noreferrer" target=3D"_blank">http://www.GraphicsMagick.=
org/</a><br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">&gt;___________________=
__________<wbr>__________________<br>
&gt;Tiff mailing list: <a href=3D"mailto:Tiff@lists.maptools.org">Tiff@list=
s.maptools.org</a><br>
&gt;<a href=3D"http://lists.maptools.org/mailman/listinfo/tiff" rel=3D"nore=
ferrer" target=3D"_blank">http://lists.maptools.org/<wbr>mailman/listinfo/t=
iff</a><br>
&gt;<a href=3D"http://www.remotesensing.org/libtiff/" rel=3D"noreferrer" ta=
rget=3D"_blank">http://www.remotesensing.org/<wbr>libtiff/</a><br>
<br>
<br>
</div></div></blockquote></div><br></div></div>

--001a114852504c94330541d604db--

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