AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2001.04.18 00:01 "5,5,5 bits per sample RGB images", by Brent Foster
2001.04.18 08:18 "Re: 5,5,5 bits per sample RGB images", by Martí_Maria

2001.04.18 00:01 "5,5,5 bits per sample RGB images", by Brent Foster

Hi,

Just a clarification wanted here - should be easy...

I assume from the TIFF 6.0 spec that the correct format for uncompressed contiguous 5,5,5 bits per sample data is:

rrrrrggg ggbbbbbr rrrrgggg gbbbbbrr rrrggggg bbbbbrrr rrgggggb bbbb...

rather than:

rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0 rrrrrggg ggbbbbb0...

The LeadTools toolkit seems to implement the second format above for reading; I'm not sure if it can write them. It looks to me like this is wrong - is it?

The TIFF spec says "pack data into bytes as tightly as possible, leaving no unused bits (except at the end of a row)." which sounds like the first format above to me - was this different in earlier specs?

Thanks,

Brent