MP Entertainment animation

From MultimediaWiki
Jump to navigation Jump to search
  • Company: MP Entertainment
  • Extensions: anm, seq
  • Game: Hopkins FBI

This is a simple chunk-based format employing RLE compression.

File starts with "MPANIM" tag followed by 768-byte palette. First chunk should be "NORM" which contains 32-bit size, 14 bytes of data, and uncompressed frame (640x480). Other chunks start with "IMAGE=" tag, 32-bit size, 32-bit unknown value, and the rest is RLE data.

RLE opcodes:

  • D3 (ANM only) -- long run (1 byte run length and 1 byte run value)
  • D4..DD (ANM only) -- repeat next byte 1..10 times
  • DE..FA (ANM only) -- skip 1..27 pixels
  • FB -- not encountered
  • FC -- end of stream
  • FD -- next byte tells how many pixels to skip
  • FE -- next 16-bit value tells how many pixels to skip
  • FF -- next 32-bit value tells how many pixels to skip
  • all other opcodes are treated as pixel values

As you can see, the difference between ANM and SEQ is that the latter has only skip codes and D3..FA values are treated as normal pixels.