1<html> 2 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 7<title>THPHeader</title> 8</head> 9 10<BODY> 11 12<H1 align="left">THPHeader</H1> 13 14<H2>Description</H2> 15<P><IMG src="THPHeader.jpg" alt="THPHeader.jpg" width="720"></P> 16<P><CODE>THPHeader</CODE> is placed at the start of the THP movie data. <CODE>THPHeader</CODE> stores information needed to properly initialize the THP player. </P> 17<P>The start of the <CODE>THPHeader</CODE> stores <CODE>THP\0</CODE> (<CODE>magic[4]</CODE>) and the version number (<CODE>version</CODE>) used to identify the THP movie data. </P> 18<P>The upper two bytes of the version number (<CODE>version</CODE>) are the major version and the lower two bytes are the minor revision numbers. The <CODE>THPConv</CODE> tool automatically sets the version number. Furthermore, the version is defined in <CODE>THP_VERSION</CODE> in the header file for each player (<CODE>THPSimple.h</CODE>, <CODE>THPPlayer.h</CODE>). </P> 19<P>Next, the maximum frame data size (<CODE>bufSize</CODE>) and tnumber of audio samples (<CODE>audioMaxSamples</CODE>) the THP player uses to calculate the work buffer size are stored.</P> 20<P>Then the frame rate (<CODE>frameRate</CODE>) and the total number of frames (<CODE>numFrames</CODE>) for the THP movie data are stored.</P> 21<P>For extensibility, data can be added to the THP movie data format. <CODE>THPHeader</CODE> also stores an offset to the added data (following <CODE>finalFrameDataOffsets</CODE>). </P> 22 23<H2>See Also</H2> 24<P> 25<A href="../THPConv.html">THPConv.exe</A>,<BR> <A href="../THPFormat.html">THP Movie File Format</A>,<BR> 26</P> 27<H2>Revision History</H2> 28<P>03/01/2006 Initial version.</P> 29</BODY> 30</HTML>