* LIBTIFF of DEC3000 (ALPHA, OSF1)
@ 1993-10-12 2:26 devs
1993-10-14 7:28 ` LIBTIFF on " devs
0 siblings, 1 reply; 2+ messages in thread
From: devs @ 1993-10-12 2:26 UTC (permalink / raw)
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--------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: LIBTIFF on DEC3000 (ALPHA, OSF1)
1993-10-12 2:26 LIBTIFF of DEC3000 (ALPHA, OSF1) devs
@ 1993-10-14 7:28 ` devs
0 siblings, 0 replies; 2+ messages in thread
From: devs @ 1993-10-14 7:28 UTC (permalink / raw)
I posted a question a couple of days ago on porting LIBTIFF to DEC Alpha.
I received a large number of mail messages giving helpful suggestions. Thanks
to all of you who took the trouble to reply. I did have a typo in my original
posting: I stated that the Alpha AXP processor has 32-bit long ints. This is
*incorrect*; thanks to all of those who pointed out that Alpha has 64-bit longs,
not 32-bit.
I found out also that earlier versions of LIBTIFF assume 32-bit longs and
therefore *will not work* on machines that have 64-bit longs. Thanks
to Sam Leffler (author of LIBTIFF) for referring me to v3.3beta002 on sgi.com,
which can handle 64-bit longs, though it does have some compilation errors
which need to be fixed when building LIBTIFF.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-10-14 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-10-12 2:26 LIBTIFF of DEC3000 (ALPHA, OSF1) devs
1993-10-14 7:28 ` LIBTIFF on " devs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox