Free Hero Mesh

Changes To Picture file format
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Changes to "Picture file format" between 2018-08-18 05:12:17 and 2018-08-18 05:59:01

17
18
19
20
21
22
23
24





25
26
27
17
18
19
20
21
22
23

24
25
26
27
28
29
30
31







-
+
+
+
+
+



  *  3 = Compressed; order by y desc, x desc
  *  4 = Compressed; order by x asc, y asc
  *  5 = Compressed; order by x desc, y asc
  *  6 = Compressed; order by x asc, y desc
  *  7 = Compressed; order by x desc, y desc
  *  15 = Uncompressed; order by y asc, x asc

(TODO)
After the header, each picture is encoded (with no terminators or separators), in order. If the uncompressed format is used, it is just a list of pixels (one byte per pixel; indexed colour). If the compressed formats are used, then it is the sequence of commands as follows:
  *  0-84: Homogeneous run. Follow by one byte (the pixel value), which is output 1-85 times. If another homogeneous run immediately follows and the same pixel value is specified, the ones after the first in the chain must multiply their length by 85 to determine how much to run.
  *  85-169: Heterogeneous run. Follow by 1-85 more bytes (pixel values) which are output.
  *  170-254: Copy-above run. Has no parameters; 1-85 pixels are copied from the previous row (or column, for formats 4-7); if there isn't anything to copy then a pixel value of zero (transparency) is assumed. If another copy-above run immediately follows, the ones after the first in the chain must multiply their length by 85 to determine how much to run.
  *  255: Invalid code. (Future versions of this program may define its meaning, but currently it is undefined.)

<h2>*.WAV</h2>
Replace the asterisk with the name of the sound. The data of this lump is a RIFF WAVE file.