Skip to content
ProgSys edited this page Mar 28, 2016 · 22 revisions

IMY is a lossles compressed file or chunk of a file. Usually entire archives are compressed by splitting it into multiple fixed size IMY files. It is based on [Run-length encoding] (https://en.wikipedia.org/wiki/Run-length_encoding) but it references different parts of the file.

A IMY file has three parts the header, info bytes and the data.

Header

Type Size Description
String 4 byte always IMY (0x00594D49)
Unknown 2 byte
Unknown 2 byte
uShort 2 byte offset, used to create look up table
uChar 1 byte compression Type
Unknown 1 byte
Unknown 2 byte
Unknown 2 byte
Unknown 4 byte always 0
Unknown 4 byte always 0
Unknown 4 byte always 0
Unknown 4 byte always 0
uShort 2 byte number of info bytes

Curretly only compression type 8 is known.

Clone this wiki locally