Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery015.isp.belgacom.be (Postfix) with ESMTP id 7B0C14F8088
	for <joris.at.lebbeke@skynet.be>; Sat, 29 Mar 2008 13:04:06 +0100 (CET)
Authentication-Results: in.mx.skynet.be; dkim=permerror (body hash did not verify [final] [TEST]) header.i=@gmail.com
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 29 Mar 2008 13:04:05 +0100
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m2TBi8HD024830;
	Sat, 29 Mar 2008 07:45:36 -0400
Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m2TBi4mD024827
	for <tiff@lists.maptools.org>; Sat, 29 Mar 2008 07:44:05 -0400
Received: by rv-out-0910.google.com with SMTP id c27so408692rvf.9
	for <tiff@lists.maptools.org>; Sat, 29 Mar 2008 04:44:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	bh=N6slvD9x16oRApZzuvTr6d0qAKOHnxSP48k6Cu2yoww=;
	b=XVr55KpNNi8C5kbxD6pcBcbRkDzUTootaG6d7qHndiDLczCJivYTpWE5XCjMqgawTdpBGPo+T4VVO17t04yAuWS3VAiGdi16WYN7/A+lpBqcJBdHcNsLc7S08wPR/JP3T+tSWOLeEp8zgifs3maGtrpaRVsT5PmGCd593emOMnY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=txcZ3v8QSCe9+OUCAyeHshWPfqnf/F4l+IUjQcZNSFYHI/olp2HpQNkUwflQPoM2fSq2WuEUZfYy4rziiTp5g/RMVBLj0p28+MKNRNsZsKodHf6J0+wI7VytXz1kIOPCDWk8NagB/fJaR7uxSLTx9QHupZR6BYvIRgeqoJwCdv0=
Received: by 10.140.207.3 with SMTP id e3mr2114556rvg.262.1206791042224;
	Sat, 29 Mar 2008 04:44:02 -0700 (PDT)
Received: by 10.141.49.11 with HTTP; Sat, 29 Mar 2008 04:44:02 -0700 (PDT)
Message-ID: <ed62030a0803290444i28ff0475wd661091f28baad56@mail.gmail.com>
Date: Sat, 29 Mar 2008 07:44:02 -0400
From: "James Sumners" <james.sumners@gmail.com>
To: "Bob Friesenhahn" <bfriesen@simple.dallas.tx.us>
Subject: Re: [Tiff] TIFFReadRawStrip buffer data type
In-Reply-To: <Pine.SOC.4.64.0803290057410.947@freddy.simplesystems.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ed62030a0803282118w2a3f134bsd5b6313e43e405f1@mail.gmail.com>
	<Pine.SOC.4.64.0803290057410.947@freddy.simplesystems.org>
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00002b8c
X-MSP-STORE: Sat, 29 Mar 2008 13:03:04 +0100
Status: RO

Well, the image I'm reading is not compressed. So I thought the data
would just be the integer color value of each pixel. If that is
incorrect, how would I get that data? I want to be able to work with
the color values for the pixels so that I can do my own compression.

On Sat, Mar 29, 2008 at 2:05 AM, Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
> On Sat, 29 Mar 2008, James Sumners wrote:
>
>  > If I supply TIFFReadRawStrip() with a buffer of type int, and read a
>  > grayscale image, I assume that each position in the buffer would be a
>  > value between 0 and 255, right? If so, then I'm a little confused
>  > about the debug output of my program[1]. It seems to be reading a ten
>
>  This is the description for TIFFReadRawStrip:
>
>       TIFFReadRawStrip - return the undecoded contents of a  strip
>       of data from an open TIFF file
>
>  The term "undecoded" means that you get the raw data as it exists in
>  the TIFF file, including being compressed with some sort of
>  compression.
>
>  Maybe you mean to use TIFFReadEncodedStrip() instead?
>
>  Even with TIFFReadEncodedStrip() you will get uncompressed data packed
>  according to the bits per sample, samples per pixel, planar
>  configuration, and photometric of the file.  So it could be 4 bits per
>  sample (two samples per byte) which refer to a color in a colormap.
>
>  Bob
>  ======================================
>  Bob Friesenhahn
>  bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
>  GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>
>



-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
