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 3WkkJeIxM1jdxQAAsyOMew
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 19:08:39 +0000
X-HalOne-ID: e8b7df9b-b01d-11e6-b860-b82a72d859f1
Received: from mail-oi0-f43.google.com (unknown [209.85.218.43])
	by mx1.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Mon, 21 Nov 2016 19:08:38 +0000 (UTC)
Received: by mail-oi0-f43.google.com with SMTP id w63so29128673oiw.0
        for <filtered@awaresystems.be>; Mon, 21 Nov 2016 11:08:38 -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:from:date:message-id:to:subject:precedence:list-id
         :list-unsubscribe:list-archive:list-post:list-help:list-subscribe
         :mime-version:sender:errors-to;
        bh=l9kL1w2zJZm874RGo/6eOccdUkrfcQ8TgEiw2jUkWp0=;
        b=DlVrkT2VyPOJjZgOs6ppwu2MPHNa9TrsXugvsCaIwszEMiWIHXQSmsoznaGh6giB3A
         Fc92AuTVAPNsFa/DC+9PDFImAtv4yzQYygDFOZ4iDhS3xaU0tRhPk6UubVVqmdr0YCxI
         0NbCiKjxcBrr6qPbtbqM1PHcHMWQI68+Jdb5Qf0J/v5+038fkaUR/jRV9I9Tgp66EteL
         dZIAp5XBKUIYEXFowPaPaVj+EybIgsCIL249NyrfyQt2n7QXNu35Sv/OLzwGFFkBx3Yy
         gsNaKBWS/nzsaQiVGHa6r9YIk+26FY+K/D87U9DeAa5MceTmX5Xd75S8vGtO8ZCZoV7Q
         Kz0g==
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: AKaTC03bHAoU8NE1b+ZVle29mjFiO74hFqQNIzTOQFYEaLfMgmss0WjWewE4IeQABkX/d2w+GSl2H9F9+iJ3h9a+O8JVCQY=
X-Received: by 10.202.213.138 with SMTP id m132mr9848946oig.104.1479755316903;
        Mon, 21 Nov 2016 11:08:36 -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 q129csp1701558oif;
        Mon, 21 Nov 2016 11:08:35 -0800 (PST)
X-Received: by 10.28.168.70 with SMTP id r67mr16316780wme.19.1479755315790;
        Mon, 21 Nov 2016 11:08:35 -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 r143si14916526wmg.88.2016.11.21.11.08.35;
        Mon, 21 Nov 2016 11:08:35 -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 E207335C033;
	Mon, 21 Nov 2016 14:07:53 -0500 (EST)
Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com
	[209.85.220.169])
	by lists.maptools.org (Postfix) with ESMTPS id DDB3B35C031
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 14:07:45 -0500 (EST)
Received: by mail-qk0-f169.google.com with SMTP id n21so364229741qka.3
	for <tiff@lists.maptools.org>; Mon, 21 Nov 2016 11:07:45 -0800 (PST)
X-Received: by 10.55.140.132 with SMTP id o126mr20132303qkd.227.1479755264662; 
	Mon, 21 Nov 2016 11:07:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.39.180 with HTTP; Mon, 21 Nov 2016 11:07:44 -0800 (PST)
From: Aaron Boxer <boxerab@gmail.com>
Date: Mon, 21 Nov 2016 14:07:44 -0500
Message-ID: <CAK8GPyDmd1tEGr+oftWfV3edB9EBMWXkKUFOvskUm5XWzLCU-A@mail.gmail.com>
To: TIFF mailing list <tiff@lists.maptools.org>
Subject: [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="===============0468017802=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0468017802==
Content-Type: multipart/alternative; boundary=001a11485250e7e5780541d45e94

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

I am decompressing 12 bit RGB images, on little endian system.

Each channel is stored in 3 nibbles: for example red is stored as

0xR2 R1 R0

where R2 is the largest address, R0 is the smallest.

When reading a strip, the nibbles are stored in the memory buffer as
follows, in order of increasing memory address:
(brackets indicate bytes)

Lowest address .... (R1 R2) (G2 R0) (G0 G1) (B1 B2)  (R2 B0) (R1 R0) ....

Is it possible for libtiff to store the nibbles as follows:

R0 R1 R2 G0 G1 G2 B0 B1 B2  ............

(sorry for the non-standard notation here)

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

<div dir=3D"ltr"><div><div>I am decompressing 12 bit RGB images, on little =
endian system.<br><br>Each channel is stored in 3 nibbles: for example red =
is stored as<br><br>0xR2 R1 R0 <br><br>where R2 is the largest address, R0 =
is the smallest.<br><br></div><div>When reading a strip, the nibbles are st=
ored in the memory buffer as follows, in order of increasing memory address=
:<br></div>(brackets indicate bytes)<br><br></div><div>Lowest address .... =
(R1 R2) (G2 R0) (G0 G1) (B1 B2)=C2=A0 (R2 B0) (R1 R0) ....<br><br></div><di=
v>Is it possible for libtiff to store the nibbles as follows:<br><br></div>=
<div>R0 R1 R2 G0 G1 G2 B0 B1 B2=C2=A0 ............<br><br></div><div>(sorry=
 for the non-standard notation here)<br></div></div>

--001a11485250e7e5780541d45e94--

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