2004.05.18 15:05 "[Tiff] Further doubt on bits per sample", by Mayank

2004.05.21 10:16 "Re: [Tiff] Further doubt on bits per sample", by Gerben Vos

1. How does the bits per sample cases of 1,4 or 5 are handled by the libtiff library? Does the readstrip/readtile functions return the data, such that, the pixel values are always packed in byte boundaries?

Nope. For strips, pixel values are packed without any padding.

Except at the end of every row (scanline). There, padding bits are added if necessary, so the next row starts at a byte boundary.

Gerben Vos.