2002.07.22 16:13 "conversion from binary data to TIFF struct, common idiom?", by Pete Suggitt
I am having huge difficulty creating a TIFF* from a void*/char*. It would appear that the only way to create one is by way of the TIFFOpen and related methods. Obviously I cannot do a straight cast from the void* but is there a nice way to create a TIFF* from the 'Opaque' void*/char*?
I have tried to implement the TIFFClientOpen methods to create a suitable one but this is proving flaky to say the least. As per the IBM white paper. This involves creating dummy procs to replicate the ones used in libtiff.so. I have failed miserably in this venture, and am trying to find a suitable solution. The methods in the white paper were helpful but did not get to the crux of transferring the raw image (binary) and converting it into the TIFF structure. I even tried to implement some of the details in the "vil_tiff_structures" code but this again seems entirely too much for a simple(????) conversion.
The only way I have been able to do it is by creating a file and then using the TIFFOpen methods, this is far too inefficient as I am trying to utilise quite a few of the methods in the library.
Any help or advice will be very welcome, and received with thanks.
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.