
THPHeader is placed at the beginning of the THP movie data. THPHeader stores information to correctly initialize the THP player.
The beginning of 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 number and the lower two bytes are the minor number. The version number is automatically set by the THPConv tool. It is defined with THP_VERSION in the header files for each player (THPSimple.h, THPPlayer.h).
Next, the maximum frame data size (bufSize) and the maximum number of audio samples (audioMaxSamples) are stored; the THP player uses these to calculate the work buffer size.
Next, the frame rate (frameRate) and the total number of frames (numFrames) of the THP movie data are stored.
In the interest of extensibility data can be added to the THP movie data format. The THPHeader also stores an offset to the added data (following finalFrameDataOffsets).
THPConv.exe
THP movie file format
2006/03/01 Initial version.
CONFIDENTIAL