Re: I.M.Meen (1995 PC/DOS) CMP format
Posted: Tue May 26, 2009 8:29 pm
Final structure, for both CMP0 and CMPx formats:
Also attached updated version of CMPViewer adapted to this changes and even with some of the colours of the palette, which I guessed with help of the screenshots. You can see now that half of the image mor or less has good colour. That's the colours of the palette I guessed.
If you don't understand something or need anything else, just tell me over here.
I hope this comes handy to you, bye!
Code: Select all
CMP: Small image, indexed colour
-HEADER-
04 bytes - nnnnnnnn - cmpSize -4
02 bytes - nnnn - width in pixels of a block (complete image)
02 bytes - nnnn - height in pixels of a block (complete image)
02 bytes - nnnn - ?superior margin?
02 bytes - nnnn - ?image height?
02 bytes - nnnn - ?left margin?
02 bytes - nnnn - ?image width?
01 bytes - nn - numberOfColours
-BODY FOR CMPX-
numberOfColours bytes
variable - coded lines
Decoding:
Lines of 26 pixels
if byte < 80h paint pixel
if byte = 80h end of line
if byte > 80h skip (byte -80h) pixels
-BODY FOR CMP0-
numberOfColours bytes - {probably from a extern palette}
height*2 bytes - {line offsets}
height*width bytes - {table of pixels of each line}If you don't understand something or need anything else, just tell me over here.
I hope this comes handy to you, bye!



