2015.04.20 06:51 "[Tiff] Does TIFFReadRGBAStrip() supports Planner data", by Atul Aggarwal

2015.04.20 17:19 "[Tiff] Reading Plannar data with LibTIff", by Richard Nolde

On 04/20/2015 11:00 AM, tiff-request@lists.maptools.org wrote:

> Message: 2
> Date: Mon, 20 Apr 2015 08:21:38 -0500 (CDT)
> From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
> Subject: Re: [Tiff] Does TIFFReadRGBAStrip() supports Planner data
> To: Atul Aggarwal <atul525@gmail.com>
> Cc: tiff@lists.maptools.org
> Message-ID:
> <alpine.GSO.2.01.1504200813050.4186@freddy.simplesystems.org>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

I just joined the TIFF mailing list and I am sorry if I am repeating some already answered question.

TIFFReadRGBAStrip() works well for all encodings, color spaces, number of bits, but it looks like it does not convert input Planer Tiff image to interleaved format, is that true or am I missing something?

It is true. Use TIFFReadEncodedStrip() to deal with planar images. This requires more work on your part since you need to decode the strip, and combine the planes to support how your application stores its images.

You may wish to look at the source code for tiffcrop in the utils package which handles interleaved and planar format data at bit depths from 1 to 32 bits for integers plus the standard floating point formats. Data will be converted from planar to interleaved as it is read and can be saved in either format.

Richard Nolde