HAF

From MultimediaWiki
Jump to navigation Jump to search

This is a cutscene format that relies on GIF LZW compression for video frames and external sound effects for audio.

File header (all values are little-endian):

 16 bits - number of frames
 Nx8 bits - sound effect by frame (0 = none)
 Nx8 bits - frame duration in 70Hz ticks

Frame data starts with 16-bit data size, followed by VGA palette and LZW-compressed image data.