2020.02.09 12:14 "[Tiff] Writing image as strips", by David C. Partridge

2020.02.09 15:13 "Re: [Tiff] Writing image as strips", by David C. Partridge

I tried a slight variant of the code below (just silly little stuff changed)

When TIFFWriteEncodedStrip is called it throws me out with a -1 return code:

The lines of code that chuck me out are:

        tif->tif_row = (strip % td->td_stripsperimage) * td->td_rowsperstrip;
        if ((tif->tif_flags & TIFF_CODERSETUP) == 0) {
                if (!(*tif->tif_setupencode)(tif))
                        return ((tmsize_t) -1);                 <<<<<<< This line
                tif->tif_flags |= TIFF_CODERSETUP;
        }

So I clearly need to do something to setup the encoder...

Hints welcome!

David