Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav003.isp.belgacom.be (inav003.isp.belgacom.be [195.238.3.252])
        by mailst034.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i9KAHx6G032355
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Oct 2004 12:17:59 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas001.isp.belgacom.be (localhost [127.0.0.1])
        by inav003.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id i9KAHoeL030919
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Oct 2004 12:17:50 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by inas001.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id i9KAHYHH019104
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Oct 2004 12:17:47 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i9KAHE85013239
        for <joris.at.lebbeke@skynet.be>; Wed, 20 Oct 2004 12:17:15 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 2FA2A3D510B; Wed, 20 Oct 2004 06:17:02 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from pollux.zylab.nl (unknown [213.201.159.34])
	by xserve.flids.com (Postfix) with ESMTP id C8D363D50E8
	for <tiff@remotesensing.org>; Wed, 20 Oct 2004 06:16:59 -0400 (EDT)
Received: from zynlms01.ZyLAB.WAN (unknown [192.168.1.10])
	by pollux.zylab.nl (Postfix) with ESMTP id 223611DA59
	for <tiff@remotesensing.org>; Tue, 19 Oct 2004 22:36:02 +0200 (CEST)
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [Tiff] The format of buffer returned by routines in tiffcp
Date: Wed, 20 Oct 2004 12:16:00 +0200
Message-ID: <E576857BCF49794A91D55F1964FD862344F0A6@zynlms01.ZyLAB.WAN>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] The format of buffer returned by routines in tiffcp
Thread-Index: AcS2e9FSnDfuzV6MQ7CLg7rtEp6ExgADOB8g
From: "Gerben Vos" <Gerben@ZyLAB.COM>
To: "Sachin Garg" <schngrg@gmail.com>
Cc: Tiff mailing list <tiff@remotesensing.org>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 63584390a9a84a4a9fb209a71231e86a

Sachin Garg wrote:

> Tiffcp has some handy routines to read/write data into buffer=20
> from variious types of tiff files (eg=20
> readContigTilesIntoBuffer etc...)
>=20
> What is the structure of data which we get in these buffer?=20
> Is it dependent on the type of tiff from which we are reading=20
> or is it in same in all cases?

These tiffcp routines (I have an old version in front of me, but I =
suppose this hasn't changed) always convert the buffer to =
rgbrgbrgbrgbrgbrgbrgb, by using the cpSeparateBufToContigBuf function =
when reading and cpContigBufToSeparateBuf when writing. So you don't =
have to deal with the PlanarConfiguration tag anymore.

> Also, are there any extra bytes at the end of each row?

Each row in the buffer is padded with bits until the next byte. Not to a =
multiple of bytes as in, for example, BMP.

Cheers,
					Gerben Vos.
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
