Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.programmer Subject: Re: Need help with IFF RLE compression. Message-ID: <1126@cbmger.UUCP> Date: 18 Apr 91 06:46:54 GMT References: <1991Apr15.080653.772@kberg.se> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 24 In article <1991Apr15.080653.772@kberg.se> svante@kberg.se (Svante Gellerstam) writes: > > I need to add the >cmpByteRun algorithm. > >I have reinvented the wheel once more and implemented it myself. The >problem is the output. Mostra likes it, DPaint likes it, PageSetterII >likes it. ADPro and TAD says 'error in BODY'. Another program eats the >file but messes up after three lines. > >I compress the BODY one row at a time. The multilevel data is >converted from byte to plane organization and then fed into the >compress routine. This is ok. To be precise, you must compress one line of the 1st bitmap, then the same line of 2nd bitplane and so on. One thing I came across that perhaps some software needs the byte stream padded to an even number of bytes on a line, but this is only a suspicion, can't prove it. -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk