GTE Vantage animation

From MultimediaWiki
Jump to navigation Jump to search

This is a simple format with independently RLE-compressed frames (animations are even accompanied by auxiliary index files with frame positions to enable easy seeking).

Header:

 4 bytes - "GAV "
 4 bytes - number of frames
 2 bytes - frames per second
 2 bytes - width
 2 bytes - height
 1 byte  - local palette is in use
 1 byte  - padding
 768 bytes - VGA palette

Frames start with 32-bit size, 768-byte VGA palette (unless the header signals global palette use only) and RLE data.

RLE scheme is simple: opcode 00 means end of stream, 01..7F means copying next 1..127 bytes, 80..FF means repeat the following byte 0-127 times.