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
April 2017

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

2017.04.03 17:05 "Reading images with bits per pixel not a multiple of 8", by Dinesh Iyer
2017.04.03 17:50 "Re: Reading images with bits per pixel not a multiple of 8", by Bob Friesenhahn
2017.04.03 18:42 "Re: Reading images with bits per pixel not a multiple of 8", by Roger Leigh
2017.04.03 18:46 "Re: Reading images with bits per pixel not a multiple of 8", by Bob Friesenhahn
2017.04.04 14:00 "Re: Reading images with bits per pixel not a multiple of 8", by Dinesh Iyer
2017.04.04 15:14 "Re: Reading images with bits per pixel not a multiple of 8", by Bob Friesenhahn
2017.04.05 15:50 "Re: Reading images with bits per pixel not a multiple of 8", by Charles Auer

2017.04.04 14:00 "Re: Reading images with bits per pixel not a multiple of 8", by Dinesh Iyer

Currently, in my code, when I read 16-bit images, I just treat the buffer
returned by TiffReadEncodedStrip as uint16_T and read the data. It appears
that is incorrect because it will give the wrong result for big-endian
files. Am I correct?

Regards,
Dinesh

On Mon, Apr 3, 2017 at 2:46 PM, Bob Friesenhahn <
bfriesen@simple.dallas.tx.us> wrote:

> On Mon, 3 Apr 2017, Roger Leigh wrote:
> >>
> >> Except for depths 8, 16, and 24 (which are swapped to "native"
> >> endianness by libtiff), the data is always ordered in
> >> most-significant-bit order
> >> so you need to start with the top bits.
> >
> > What about 32, 48 and 64 bit variants which are all multiples of these
> > specially handled sizes?
> >
> > Just wondering because I am not currently doing any special case
> > handling for 32-bit and higher sizes.
>
> You are correct.  I should have mentioned 32 and 64 bit sizes as well.
> I am not sure about 48.
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>