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
November 2005

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

2005.11.15 09:38 "libtiff support for Microsoft Office Document Imaging", by Brad Hards
2005.11.15 14:40 "Re: libtiff support for Microsoft Office Document Imaging", by Frank Warmerdam
2005.11.20 04:31 "Re: libtiff support for Microsoft Office Document Imaging", by Brad Hards
2005.11.21 03:29 "Re: libtiff support for Microsoft Office Document Imaging", by Frank Warmerdam

2005.11.15 14:40 "Re: libtiff support for Microsoft Office Document Imaging", by Frank Warmerdam

On 11/15/05, Brad Hards wrote:
> So the question is really about the magic number. I think it is bad style to
> add the MDI magic number without actually supporting MDI properly.
> So for tiffdump, I'm thinking of adding two more command line options (one
> that turns off the magic number check, and the other that turns on byte
> swapping)
> For the library proper, I'd like to add another option to the client open mode
> array that disables the magic number check, and to extend the meaning of the
> l and b mode to be "if we are opening and the magic number check is disabled,
> use big or little (respectively) endian to interpret the file".
>
> How does this look? Suggestions? Thoughts?

Brad,

I would suggest adding a potential #define in tiffconf.h
that is MDI_SUPPORT.  Normally it would not be defined.
If defined, then .mdi files magic number is supported
and byte swapping is done accordingly.

Depending on your level of success, the messiness and your
willingness we might later want to incorporate MDI support
into the core library (controlled by the MDI_SUPPORT flag).

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent