Received: from mailgate005.isp.belgacom.be (mailgate005.isp.belgacom.be [195.238.6.92])
	by maildelivery017.isp.belgacom.be (Postfix) with ESMTP id 82DC7C045
	for <joris.at.lebbeke@skynet.be>; Mon, 23 Jul 2007 17:56:02 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 23 Jul 2007 17:56:01 +0200
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 l6NFb1Fl005681;
	Mon, 23 Jul 2007 11:38:07 -0400
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l6NFaxiO005678
	for <tiff@lists.maptools.org>; Mon, 23 Jul 2007 11:36:59 -0400
Received: by an-out-0708.google.com with SMTP id d31so325720and
	for <tiff@lists.maptools.org>; Mon, 23 Jul 2007 08:36:58 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=ipx6Jz208W2nSaPAwkZu1Wcf/J6vvTydtNHccJM3hFf4lwYSvvZtsf9dVNL8sqYGHVcRfL5gvY6DTxmD7ywA0c2WU+jO4iP84lxk6ycKD8zAHbdqewcbZn39jxlY7E741uMkz8d335VZnny3X3CpLhN47QEG/ZcmVf94wd+mmBc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;
	h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=on3DxSW5VWy0bAWa1INZNz/2ZqJgdAX/uouB8MVuYuG+mcR2xISXQCDE8GlxWGe5Fk7lkMW9RgIkYvd7thSZpS04CLQAtQJZ9HSco9iU88mw6GcgLmD9JsMhxSrEw953ygSGytOczckPYfUul5Yrb5Rhicjl4j7v2htGIeOi52Y=
Received: by 10.100.111.16 with SMTP id j16mr1704976anc.1185205018060;
	Mon, 23 Jul 2007 08:36:58 -0700 (PDT)
Received: by 10.100.151.10 with HTTP; Mon, 23 Jul 2007 08:36:57 -0700 (PDT)
Message-ID: <949801310707230836g216aed94u7a2a54b5668f1bd5@mail.gmail.com>
Date: Mon, 23 Jul 2007 11:36:58 -0400
From: "Christian Henning" <chhenning@gmail.com>
To: tiff@lists.maptools.org
Subject: Re: [Tiff] Reading the strip byte count array
In-Reply-To: <20070723110309.GB17555@ak4719.spb.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <949801310707201314x47c5a24dga9b090c20c5b44bb@mail.gmail.com>
	<20070723110309.GB17555@ak4719.spb.edu>
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.00002676
X-MSP-STORE: Mon, 23 Jul 2007 17:56:02 +0200
Status: RO

> > But even when I use this number the function
> >
> > uint32 buffer[222];
> > TIFFGetField( img, TIFFTAG_STRIPBYTECOUNTS, &buffer );
>
> That's wrong. Use the following snippet:
>
>  toff_t* stripbytecounts;
>  TIFFGetField(tif, TIFFTAG_STRIPBYTECOUNTS, &stripbytecounts);

Thanks a lot for this. Seems that libtiff is allocating the memory
itself. Will it also deallocate it?

Christian
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
