AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2008.08.19 05:17 "[Tiff] Regarding DICONDE and its Specification", by Harsha
[...]
2008.08.22 08:56 "[Tiff] creating sparse files......", by Rogier Wolff
2008.08.22 13:11 "Re: [Tiff] creating sparse files......", by Toby Thain
2008.08.22 14:44 "Re: [Tiff] creating sparse files......", by Bob Friesenhahn
2008.08.25 06:28 "Re: [Tiff] creating sparse files......", by Andrey Kiselev
2008.08.25 09:37 "Re: [Tiff] creating sparse files......", by
2008.08.26 13:14 "Re: [Tiff] creating sparse files......", by Edward Lam
[...]

2008.08.26 13:14 "Re: [Tiff] creating sparse files......", by Edward Lam

BTW, the following below doesn't compile on my 64-bit gcc 4.1.1 since tdata_t is a (void *). I suspect the code was tested under a fairly old version of libtiff.

static int isallzero (tdata_t buf, tsize_t size)
{
        int i;
        for (i=0;i<size;i++)
                if (buf[i]) return 0;
        return 1;
}

Cheers,

-Edward