2004.01.14 12:01 "[Tiff] COLORMAP and byte padding", by Stephan Assmus
-
2004.01.14 15:07 "Re: [Tiff] COLORMAP and byte padding", by Frank Warmerdam
-
2004.01.14 16:18 "Re: [Tiff] COLORMAP and byte padding", by Gerben Vos
- 2004.01.14 16:43 "Re: [Tiff] COLORMAP and byte padding", by Joris Van Damme
- 2004.01.14 18:18 "Re: [Tiff] COLORMAP and byte padding", by Marti Maria
- 2004.01.15 00:05 "Re: [Tiff] COLORMAP and byte padding", by Chris Cox
-
2004.01.14 16:18 "Re: [Tiff] COLORMAP and byte padding", by Gerben Vos
2004.01.14 17:13 "Re: [Tiff] COLORMAP and byte padding", by Gerben Vos
uint8val = uint16val/65535*255
= uint16val/257Are you sure that boils down to >>8? I'd have to check...
Oops, no. That's wrong in 16256 cases, roughly 24.8%. Should have checked before I spoke. My deepest apologies.
Guess downconverting has to be slow, unless you know you've taken Frank's not quite precise shortcut when upconverting. (Well, if you feel the need for speed you could always sacrifice 65536 bytes to a lookup table.)
Gerben.