2004.09.24 19:42 "[Tiff] tiff-3.7.0beta adds", by Gennady Khokhorin

2004.09.25 18:37 "Re: [Tiff] tiff-3.7.0beta adds", by Andrey Kiselev

Hi Gennady,

I would like to add macros usefull to handle RGBA pixel's values (file tiffio.h, after line 242 #define TIFFGetA()):

// gok: macros setting componets in ABGR pack
#define TIFFSetR(abgr, v) (((v & 0xff) << 0) | (abgr & ~(0xff << 0)))
#define TIFFSetG(abgr, v) (((v & 0xff) << 8) | (abgr & ~(0xff << 8)))
#define TIFFSetB(abgr, v) (((v & 0xff) << 16) | (abgr & ~(0xff << 16)))
#define TIFFSetA(abgr, v) (((v & 0xff) << 24) | (abgr & ~(0xff << 24)))

But what usage could be for that macros in libtiff? We have TIFFGet* macros to unpack buffer, returned by the TIFFReadRGBAImage functions, but we don't have the symmetric functions to write such a buffer back, so such macros are completely application specific.

To build .dll version with msvc it could be usefull to include in distribution .def file (attached).

Oh, thanks for that. We have the .def file, but it has been missed from distribution the second time. Now fixed.

Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517