AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
June 2006

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2006.06.02 15:22 "TIFFWriteRawStrip with multi-strip?", by Bernie Pallek
2006.06.02 16:35 "Re: TIFFWriteRawStrip with multi-strip?", by Joris Van Damme
2006.06.02 17:08 "Re: TIFFWriteRawStrip with multi-strip?", by Bernie Pallek
2006.06.02 17:20 "Re: TIFFWriteRawStrip with multi-strip?", by Joris Van Damme
2006.06.07 08:50 "Re: TIFFWriteRawStrip with multi-strip?", by Gerben Vos
2006.06.07 11:48 "Re: TIFFWriteRawStrip with multi-strip?", by Joris Van Damme
2006.06.07 13:48 "Re: TIFFWriteRawStrip with multi-strip?", by Bernie Pallek

2006.06.02 15:22 "TIFFWriteRawStrip with multi-strip?", by Bernie Pallek

I have already-compressed (COMPRESSION_CCITT_T6-type) data which I'd like to
bind to a new TIFF file.  So, I'm setting rows-per-strip equal to the image
length (height), and I'm using something like:

checkCount = TIFFWriteRawStrip(someTifStructInstance, 0, someBuffer,
theSizeOfThatBuffer);

and this works just fine.

However, I'd like to now use an arbitrary value for rows-per-strip.  But
this means I need to find the byte offsets within 'someBuffer' so I can call
TIFFWriteRawStrip repeatedly, incrementing the strip number.  The crux? 
Since the data is compressed, how in the crap will I know where each strip's
data begins within 'someBuffer'?  Each strip is going to vary in size.

Can anyone think of a clever way to work around this?  Well, it doesn't even
/need/ to be clever, as long as it's reliable.

(Of course, I could decompress the data into a temp buffer, then use a loop
of TIFFWriteEncodedStrip, but the decoding and re-encoding is the very thing
I'm trying to avoid).  ;-)


Bernie Pallek
CIPO-ISB (Development)
Pallek.Bernie@ic.gc.ca / 819-953-8380

"Is this part... supposed to be smashed like this?" -- Stormy (Sealab 2021
-- "Frozen Dinner")