Talk:PCX Format

From ModdingWiki
Jump to: navigation, search

Not quite sure what the source code I was given is written in. It looks like it works and came from a respected source. He says it's ASM, but I'm not too sure. Does anyone recognize this? -Levellass

Yes, definitely assembly (ASM). -- Sander 14:33, 7 January 2010 (GMT)

RLE Compression

If you take a look into first link at the article to the PCX documentation, you can find this:

There should always be a decoding break at the end of each scan line. But there will not be a decoding break at the end of each plane within each scan line.

Also note this:

A decoding break occurs at the end of each scan line. That is, an encoding byte pair can only represent a contiguous sequence of bytes within the current scan line. However, this is not necessarily true for color planes. An encoding byte pair may represent a contiguous sequence of identical bytes that extends across two color planes for one display image scan line.

PCX decoders breaks or produces garbage output if you don't obey this rule at encoding. - CTPAX-X Team (talk) 11:06, 13 April 2015 (UTC)

Many thanks for the reference, just what I needed! I've updated the article. -- Malvineous (talk) 12:38, 14 April 2015 (UTC)