🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.msdos.programmer
2 messages
2 total messages Started by ejohnfel Thu, 28 Jan 1993 03:19
Wanted - PCX Compression algorithm (non 24-bit)
#7822
Author: ejohnfel
Date: Thu, 28 Jan 1993 03:19
13 lines
992 bytes
Greetings netter,

	OK, I gots myself a teeny problem. I had a book, which had the
algo. The I had to register, needless to say I had to return the book. Then
I bought a book, almost the same type except its PCX compression algo was
for 24-bit only :(

	All I need is a quik overview of the algo, and the run and string
codes (the actual flag values, ie 0xff or 0xc5 etc.....)

					Tanx much dudes ;)

					Eric J.
Re: Wanted - PCX Compression algorithm (non 24-bit)
#7825
Author: Tim Triemstra
Date: Fri, 29 Jan 1993 01:32
31 lines
2044 bytes
In <1993Jan28.031932.20214@sbcs.sunysb.edu>, ejohnfel@libws4.ic.sunysb.edu () wrote:
   >	OK, I gots myself a teeny problem. I had a book, which had the
   >algo. The I had to register, needless to say I had to return the book. Then
   >I bought a book, almost the same type except its PCX compression algo was
   >for 24-bit only :(
   >
   >	All I need is a quik overview of the algo, and the run and string
   >codes (the actual flag values, ie 0xff or 0xc5 etc.....)

If you still have the book with the 24bit version, the only difference 
between the 24bit version of PCX files and regular 8bit (256 color) files
is that 24bit files are 3 8bit planes of each of the R,G and B values.  So,
you'd read in the palette (the last 768 bytes of the 256 color image) then
grab the header (should be the same for a 24bit image, just expect 1 plane,
not the 3 for a 24bit file) and decode the image.  The rest of the 
compression is the same I believe.

If this isn't a help, I have both Bit-Mapped Graphics and Supercharged
Bit-Mapped Graphics by Rimmer.  I can get a real file put together for you.

I also have the ZSoft specs sheet lying around the other machine.  Let me
know if you need more.  I've written a few different PCX viewers in alot of
languages so I could probably help (although I haven't done much with 24bit
files yet.)

Tim.

-------------------------------------------------------
| When the end comes, there will be two men standing: |
|   Me, and the guy I gotta kill.   - Gosh I'm EVIL   |
------ Tim Triemstra ------------- empath@ais.org -----
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads