
THPHeader is placed at the start of the THP movie data. THPHeader stores information needed to properly initialize the THP player.
The start of the THPHeader stores THP\0 (magic[4]) and the version number (version) used to identify the THP movie data.
The upper two bytes of the version number (version) are the major version and the lower two bytes are the minor revision numbers. The THPConv tool automatically sets the version number. Furthermore, the version is defined in THP_VERSION in the header file for each player (THPSimple.h, THPPlayer.h).
Next, the maximum frame data size (bufSize) and tnumber of audio samples (audioMaxSamples) the THP player uses to calculate the work buffer size are stored.
Then the frame rate (frameRate) and the total number of frames (numFrames) for the THP movie data are stored.
For extensibility, data can be added to the THP movie data format. THPHeader also stores an offset to the added data (following finalFrameDataOffsets).
THPConv.exe,
THP Movie File Format,
03/01/2006 Initial version.