Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.0.Beta7/8.12.0.Beta7) with ESMTP id f3I91FiW030020
	for <dron@localhost>; Wed, 18 Apr 2001 13:13:30 +0400
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.8.1)
	for dron@localhost (single-drop); Wed, 18 Apr 2001 13:13:30 +0400 (MSD)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Tue Apr 17 17:17:58 2001
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id UAA07101;
	Tue, 17 Apr 2001 20:07:52 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Tue, 17 Apr 2001 20:02:23 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id UAA06906
	for tiff-outgoing; Tue, 17 Apr 2001 20:02:04 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from onstreamsystems.com (onstream1.inspire.net.nz [203.79.88.49])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id UAA06896
	for <tiff@olympiakos.com>; Tue, 17 Apr 2001 20:02:01 -0400
Received: from brent [192.168.0.2] by onstreamsystems.com [192.168.0.9]
	with SMTP (MDaemon.v3.5.3.R)
	for <tiff@olympiakos.com>; Wed, 18 Apr 2001 12:08:38 +1200
Message-ID: <002601c0c79a$b78dfa00$0200a8c0@brent.onstreamsystems.com>
From: "Brent Foster" <brent.foster@onstreamsystems.com>
To: "TIFF List" <tiff@olympiakos.com>
Subject: 5,5,5 bits per sample RGB images
Date: Wed, 18 Apr 2001 12:01:28 +1200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-MDRemoteIP: 192.168.0.2
X-Return-Path: brent.foster@onstreamsystems.com
X-MDaemon-Deliver-To: tiff@olympiakos.com
Sender: owner-tiff@olympiakos.com
Status: RO
Content-Length: 714
Lines: 23

Hi,

Just a clarification wanted here - should be easy...

I assume from the TIFF 6.0 spec that the correct format for uncompressed
contiguous 5,5,5 bits per sample data is:

rrrrrggg ggbbbbbr rrrrgggg gbbbbbrr rrrggggg bbbbbrrr rrgggggb bbbb...

rather than:

rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0...

The LeadTools toolkit seems to implement the second format above for
reading; I'm not sure if it can write them. It looks to me like this is
wrong - is it?
The TIFF spec says "pack data into bytes as tightly as possible, leaving no
unused bits (except at the end of a row)." which sounds like the first
format above to me - was this different in earlier specs?

Thanks,

Brent

