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
August 1994

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

1994.08.26 20:39 "alpha bug report", by Ron Steriti
1994.08.26 22:18 "Re: alpha bug report", by Dan Mccoy

1994.08.26 22:18 "Re: alpha bug report", by Dan Mccoy

>I'm having trouble with the alpha version,

>void ReadTIFF ( char *filename, Matrix *in )
>{
>  TIFF       *tif;
>  char       *buf;
>  int       row, column;
>  tsample_t  sample;
>  unsigned long  imagelength, imagewidth;

Longs are 64 bits on the alpha, not 32.  (at least under OSF)
Try:
   uint32 imagelength, imagewidth;

uint32 should be defined as unsigned int on the alpha
(you should double check your version)

>  tif = TIFFOpen( filename, "r");
>  TIFFGetField ( tif, TIFFTAG_IMAGELENGTH, &imagelength);
>  TIFFGetField ( tif, TIFFTAG_IMAGEWIDTH,  &imagewidth );


Dan McCoy        Pixar      mccoy@pixar.com