From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3e301c6dec22fa13,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-10-11 19:58:04 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!elroy.jpl.nasa.gov!decwrl!csus.edu!netcom.com!devs From: devs@netcom.com Subject: LIBTIFF of DEC3000 (ALPHA, OSF1) Message-ID: Organization: NETCOM On-line Communication Services (408 241-9760 guest) Date: Tue, 12 Oct 1993 02:26:02 GMT I'm trying to port an application to a DEC3000 running OSF1 with an ALPHA processor (64-bit word length, little-endian, 32-bit integers/longs). The application uses the LIBTIFF package, and I have successfully built and been able to read and write both compressed and uncompressed images on HP-UX 8.07, HP-UX 9.01, SunOS 4.x and Solaris 2.2. I am using the 3.2 version of LIBTIFF to read, and have images that were written with 3.0. I built LIBTIFF using the Makefile for MIPS (LITTLE-ENDIAN=1, HAVE_IEEEFP=1). I have the following questions: 1. Do you know of anyone who has successfully built and used LIBTIFF on DEC3000 (ALPHA, OSF1)? 2. Did I build LIBTIFF using the correct Makefile? Needless to say, there is no OSF1/DEC3000 Makefile, nor even an ULTRIX Makefile. There is, hoever, a VMS Makefile. 3. Could you shed some light on the problem I have described below? 4. My understanding from glancing through the code is that the package is supposed to dynamically figure out the current machine architecture, and is supposed to correctly interpret TIFF images regardless of the source architecture. Is this the expected behavior? I would greatly appreciate any pointers, tips or suggestions. Thank you for your time. If you send email to me, I will summarize and post on the net. --Devs ------------------------------DESCRIPTION OF PROBLEM-------------------------- Images written on the HP's or the Sun's do not seem to be getting read correctly by the same application on the DEC3000. TIFFDUMP recognizes little more than the fact that they were written on a big-endian machine, then it either crashes or prints garbage. If, however, I read in a PCX image (which my application can also handle) and then write it out as TIFF (uncompressed), and I subsequently try to read *that*, I invariably have problems around mid-way through the image. My application doesn't display the image unless it has an error-free read, but XTIFF (one of the contrib packages distributed with LIBTIFF) is able to display about 1/2 to 2/3 of the image before it gives up. The error message I see is: "DumpModeDecode: Not enough data for scanline nnn", where nnn is a number which varies from image to image. Additional information: if I write the image out with LZW compression, and then display it with XTIFF, then, as with no compression, the image is displayed correctly upto scanline nnn; but after scanline nnn there is distortion (a repetition of scanline nnn, nnn-1 and nnn-2 [possibly a few more] till the image length). Also, the following code fragment shows how the application is writing out the ROWSPERSTRIP tag: . . . TIFF *tif; . . . /* set rows per strip such that we achieve 8KB/strip for easy buffering */ if (!TIFFSetField (tif, TIFFTAG_ROWSPERSTRIP, 8L)) { error = ETIFF_WRITE_ROWSPERSTRIP; errstr = "FlTiffSave: unable to write RowsPerStrip tag"; goto end; } . . . -------------------------------END DESCRIPTION--------------------------------