1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
8<title>THP Movie Information: THPHeader</title>
9</head>
10
11<BODY>
12
13<H1 align="left">THPHeader</H1>
14
15<H2>Description</H2>
16<P><IMG src="THPHeader.jpg" alt="THPHeader.jpg" width="720"></P>
17<P><CODE>THPHeader</CODE> is placed at the beginning of the THP movie data. <CODE>THPHeader</CODE> stores information to correctly initialize the THP player.</P>
18<P>The beginning of <CODE>THPHeader</CODE> stores <CODE>&quot;THP\0&quot;</CODE> (<CODE>magic[4]</CODE>) and the version number (<CODE>version</CODE>) used to identify the THP movie data.</P>
19<P>The upper two bytes of the version number (<CODE>version</CODE>) are the major number and the lower two bytes are the minor number. The version number is automatically set by the <CODE>THPConv</CODE> tool. It is defined with <CODE>THP_VERSION</CODE> in the header files for each player (<CODE>THPSimple.h</CODE>, <CODE>THPPlayer.h</CODE>).</P>
20<P>Next, the maximum frame data size (<CODE>bufSize</CODE>) and the maximum number of audio samples (<CODE>audioMaxSamples</CODE>) are stored; the THP player uses these to calculate the work buffer size.</P>
21<P>Next, the frame rate (<CODE>frameRate</CODE>) and the total number of frames (<CODE>numFrames</CODE>) of the THP movie data are stored.</P>
22<P>In the interest of extensibility data can be added to the THP movie data format. The <CODE>THPHeader</CODE> also stores an offset to the added data (following <CODE>finalFrameDataOffsets</CODE>).</P>
23
24<H2>See Also</H2>
25<P>
26<A href="../THPConv.html"><CODE>THPConv.exe</CODE></A><BR><A href="../THPFormat.html">THP movie file format</A>
27</P>
28
29<H2>Revision History</H2>
30<P>
312006/03/01 Initial version.<br>
32</P>
33
34<hr><p>CONFIDENTIAL</p></body>
35</HTML>