Category : C Source Code
Archive   : TIFTOOL.ZIP
Filename : IMAG.C
*/
#include "aldtypes.h"
#include "aldmem.h"
#include "aldutils.h"
#include "imtypes.h"
#include "imag.h"
void InitImag (p)
IMAG *p;
{
/* zero out the structure, mainly for the existence fields and handles
*/
lmemset ((LPSTR)p, '\0', sizeof(IMAG));
/* fill in simple defaults
*/
#ifdef WINDOWS
p->iFileType = INTELTIFF;
#endif
#ifdef MACINTOSH
p->iFileType = MOTOROLATIFF;
#endif
/* fill in some defaults
*/
p->iBitsPerSample = 1;
p->iSamples = 1;
p->iPredictor = PREDICTOR_NONE;
p->iRowsPerStrip = MAXWORD;
p->iPhotometricInterpretation = WHITEZERO;
p->iCompression = PACKINTOBYTES;
}
void CloseImag (p)
IMAG *p;
{
WORD ii;
/* free allocated field data:
*/
for (ii = 0; ii < NTFIELDS; ii++) {
if (p->tf[ii].Talloc) {
MMFree (p->tf[ii].Thandle);
p->tf[ii].Talloc = FALSE;
p->tf[ii].Thandle = HNULL; /* probably unnecessary */
p->tf[ii].Texists = FALSE; /* probably unnecessary */
}
}
return;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/