1998.10.23 17:56 "tiffcp.c patch for separate tiles", by Terry Wells

Sam,

I had previously submitted a patch for tiffcp.c with regard to reading separated tiled images.

Unfortunately, I gave the patch against the beta036 version of tiffcp.c.

After some checking, it seems that the file had changed in beta037, so my patch no longer applied correctly.

Here is my patch again, this time against beta037.

I'm using Solaris diff to make the comparison. If I should be using some other tool to make life easier for you, please let me know.

Thanks much,
Terry Wells

-----

# diff tiff-v3.4beta037/tools/tiffcp.c mytiffcp/tiffcp.c
842a843
>       uint32 oimagew = imagew * spp;
844c845
<       int iskew  = imagew - tilew;
---
>       int iskew  = oimagew - tilew * spp;
872c873
<                                       cpSeparateBufToContigBuf(bufp+colb+s,
---
>                                       cpSeparateBufToContigBuf(bufp + (colb * spp) + s,
874c875
<                                           oskew + iskew, oskew, spp);
---
>                                           oskew * spp + iskew, oskew, spp);
876c877
<                                       cpSeparateBufToContigBuf(bufp+colb+s,
---
>                                       cpSeparateBufToContigBuf(bufp + (colb * spp) + s,
882c883
<               bufp += imagew * nrow;
---
>               bufp += imagew * nrow * spp;