AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.03.29 04:18 "TIFFReadRawStrip buffer data type", by James Sumners
2008.03.29 06:05 "Re: TIFFReadRawStrip buffer data type", by Bob Friesenhahn
2008.03.29 11:44 "Re: TIFFReadRawStrip buffer data type", by James Sumners
2008.03.29 15:41 "Re: TIFFReadRawStrip buffer data type", by Bob Friesenhahn
2008.03.29 16:26 "Re: TIFFReadRawStrip buffer data type", by James Sumners
2008.03.29 14:58 "Re: TIFFReadRawStrip buffer data type", by Frank Warmerdam
2008.03.29 16:29 "Re: TIFFReadRawStrip buffer data type", by James Sumners
2008.03.29 16:51 "Re: TIFFReadRawStrip buffer data type", by Bob Friesenhahn
2008.04.24 14:16 "Re: TIFFReadRawStrip buffer data type", by James Sumners

2008.03.29 16:29 "Re: TIFFReadRawStrip buffer data type", by James Sumners

That makes a little sense. I was reading the image into a char buffer
before, but got the feeling that I wasn't working with the correct
values. I didn't think about an unsigned char. I'll give that a try
and see how it works for me.

On Sat, Mar 29, 2008 at 10:58 AM, Frank Warmerdam <warmerdam@pobox.com> wrote:
>  James,
>
>  I didn't inspect the TIFF files or dig too deeply in your code, but
>  basically it is likely that the pixels are being read back as 8bits per
>  pixel values, but you are reading them into a 32bit integer buffer.
>  If there is only one sample per pixel, then you will end up with four
>  pixels packed into each int.
>
>  Try using an "unsigned char" buffer instead of int.
>
>  Best regards,
>  --
>  ---------------------------------------+--------------------------------------
>  I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
>  light and sound - activate the windows | http://pobox.com/~warmerdam
>  and watch the world go round - Rush    | President OSGeo, http://osgeo.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