Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id 61663400B7B
	for <info@awaresystems.be>; Tue, 11 May 2010 19:02:07 +0200 (CEST)
Received: by mx-k.b-one.net (Postfix, from userid 106)
	id 599221FB2F58; Tue, 11 May 2010 19:02:07 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-k.b-one.net (Postfix) with ESMTP id 8DA1B1FB2F58 for
 <info@awaresystems.be>; Tue, 11 May 2010 19:02:06 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 5C72E1D533D07; Tue, 11 May 2010
 12:01:28 -0500 (EST)
Received: from mail-px0-f172.google.com (mail-px0-f172.google.com
 [209.85.212.172]) by lists.maptools.org (Postfix) with ESMTP id F0A7C1D52D08D
 for <tiff@lists.maptools.org>; Tue, 11 May 2010 11:52:58 -0500 (EST)
Received: by pxi19 with SMTP id 19so2296743pxi.3 for
 <tiff@lists.maptools.org>; Tue, 11 May 2010 09:52:57 -0700 (PDT)
Received: by 10.143.26.39 with SMTP id d39mr4330159wfj.10.1273596777322; Tue,
 11 May 2010 09:52:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.141.5 with HTTP; Tue, 11 May 2010 09:52:37 -0700 (PDT)
In-Reply-To: <A2B022F7-D89E-43A3-B10C-E7BD9C3DAEF9@killerbytes.com>
References: <4BE9788B.2020701@math.tu-berlin.de>
 <14197_1273592973_4BE97C8C_14197_29529_1_4BE97C7C.1060407@pobox.com>
 <4BE97F9C.1060500@math.tu-berlin.de>
 <A2B022F7-D89E-43A3-B10C-E7BD9C3DAEF9@killerbytes.com>
From: Igor Skochinsky <skochinsky@mail.ru>
Date: Tue, 11 May 2010 18:52:37 +0200
X-Google-Sender-Auth: TDEi8m0moaKdYK2Q2m4xj7TEkBQ
Message-ID: <AANLkTil_W_cfrv7mnM_Q209sn-Ct4dkdFQspfGxTTws9@mail.gmail.com>
To: Scott Ribe <scott_ribe@killerbytes.com>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Tiff with varying bit depths
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: skochinsky@mail.ru
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Hi Scott,

The values make perfect sense to me.
The image is 64x64 pixels, each pixel is 16 bits, so the strip size is
64*64*2 = 8192 bytes. Pixel data is split into three samples: 5, 6,
and 5 bits for R, G and B.

Thomas,

Can you debug TIFFOpen() it and see which check fails? I expect that
if you patch it, you should be able to use TIFFReadRawStrip() or maybe
even TIFFReadEncodedStrip().

On Tue, May 11, 2010 at 18:31, Scott Ribe <scott_ribe@killerbytes.com> wrote:
> Look at the various tag values, they don't make sense: ImageLength, BitsPerSample, SamplesPerPixel, RowsPerStrip, StripByteCounts.
>
> I expect you'd really have to patch up the directory to have any hope of reading this file.
>
> --
> Scott Ribe
> scott_ribe@elevated-dev.com
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>



-- 
WBR, Igor
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
