Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!usc!apple!well!jef From: jef@well.UUCP (Jef Poskanzer) Newsgroups: comp.graphics Subject: Re: Sun Raster files, PBM, etc. Message-ID: <14567@well.UUCP> Date: 15 Nov 89 03:47:02 GMT References: <1947@atanasoff.cs.iastate.edu> Reply-To: Jef Poskanzer Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 27 In the referenced message, John Hascall wrote: } I grabbed PBM or FBM or whatever it's called but it was no help to me } as I do not have a SUN and to quote from the source: PBMPLUS or FBM, two separate but similar packages. } /* This program compiles only on Suns. */ Yes. PBMPLUS uses Sun's libpixrect to read and write rasterfiles, so that part of it can only be used on Suns. FBM's rasterfile support will compile anywhere, but does not handle byte-encoded rasterfiles. However, a few weeks ago I got fed up and finally wrote my own rasterfile reader and writer. They compile anywhere, AND they handle byte-encoded rasterfiles. They will show up as part of the next release of PBMPLUS within two weeks (X.V11R4 contrib closing date). } Of course, you need to worry about "endian" swapping in the int4 vars. This version also solves the endian problems with rasterfiles once and for all, the only really reliable way: it only does single-byte reads. --- Jef Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef "If you do bad things in the vicinity of a rock and roll record, chances are you were sick before you got there." -- Frank Zappa