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>THPFrameCompInfo</title>
8</head>
9
10<BODY>
11
12<H1 align="left">THPFrameCompInfo</H1>
13
14<H2>Description</H2>
15<P><IMG src="THPFrameCompInfo.jpg" alt="THPFrameCompInfo.jpg" width="720"></P>
16<P>THP movie data can interleave multiple data sets for each frame and store them internally. </P>
17<P>In the THP library, these data that are interleaved are called components. Both THP video data and THP audio data are single components. For extensibility, THP movie data can store components other than video and audio. </P>
18
19<P><CODE>THPFrameCompInfo</CODE> can store the number of components contained in the THP movie data (<CODE>numComponents</CODE>) and the storage order in each frame as an array (<CODE>frameComp[]</CODE>). This array stores the THP component identifiers in component interleave order (see table below).</P>
20
21
22<BLOCKQUOTE><BLOCKQUOTE>
23<table border="1" >
24    <tr ALIGN="center" bgcolor="#E6E6FA">
25<th ALIGN="center" width =180 >Video Comp</th>
26      <th ALIGN="center" width =30>0</th>
27    </tr>
28    <tr ALIGN="center" bgcolor="#E6E6FA">
29<th ALIGN="center" width =180>Audio Comp</th>
30      <th ALIGN="center" width =30>1</th>
31    </tr>
32    <tr ALIGN="center">
33<th ALIGN="center" width =180>Undefined</th>
34      <th ALIGN="center" width =30>2</th>
35    </tr>
36    <tr ALIGN="center">
37<th ALIGN="center" width =180>Undefined</th>
38      <th ALIGN="center" width =30>3</th>
39    </tr>
40    <tr ALIGN="center">
41<th ALIGN="center" width =180>Undefined</th>
42      <th ALIGN="center" width =30>4</th>
43    </tr>
44    <tr ALIGN="center">
45<th ALIGN="center" width =180>Undefined</th>
46      <th ALIGN="center" width =30>5</th>
47    </tr>
48    <tr ALIGN="center">
49<th ALIGN="center" width =180>Undefined</th>
50      <th ALIGN="center" width =30>6</th>
51    <tr ALIGN="center">
52<th ALIGN="center" width =180>Undefined</th>
53      <th ALIGN="center" width =30>7</th>
54    </tr>
55    <tr ALIGN="center">
56      <th ALIGN="center" width =180>�</th>
57      <th ALIGN="center" width =30>8</th>
58    </tr>
59    <tr ALIGN="center">
60      <th ALIGN="center" width =180>�</th>
61      <th ALIGN="center" width =30>9</th>
62    </tr>
63    <tr ALIGN="center">
64      <th ALIGN="center" width =180>�</th>
65<th ALIGN="center" width =30>A</th>
66    </tr>
67    <tr ALIGN="center">
68      <th ALIGN="center" width =180>�</th>
69<th ALIGN="center" width =30>B</th>
70    </tr>
71    <tr ALIGN="center">
72      <th ALIGN="center" width =180>�</th>
73<th ALIGN="center" width =30>C</th>
74    </tr>
75    <tr ALIGN="center">
76      <th ALIGN="center" width =180>�</th>
77<th ALIGN="center" width =30>D</th>
78    </tr>
79    <tr ALIGN="center">
80      <th ALIGN="center" width =180>�</th>
81<th ALIGN="center" width =30>E</th>
82    </tr>
83    <tr ALIGN="center">
84      <th ALIGN="center" width =180>�</th>
85<th ALIGN="center" width =30>F</th>
86    </tr>
87
88</table>
89
90<table border="1" >
91    <tr ALIGN="center" bgcolor="#C0C0C0">
92<th ALIGN="center" width =180>Nothing</th>
93<th ALIGN="center" width =30>FF</th>
94    </tr>
95
96</table>
97</BLOCKQUOTE></BLOCKQUOTE>
98<BR>
99<H2>Example</H2>
100<P>If the first component is THP video data and the second component is THP audio data, <CODE>THPFrameCompInfo</CODE> is as follows.</P>
101<BLOCKQUOTE><HR><BLOCKQUOTE>
102<table border="0">
103  <tbody>
104    <tr ALIGN="center">
105<td ALIGN="left" width =180 ><CODE>numComponents</CODE></td>
106      <td ALIGN="left" width =60> = 2 </td>
107<td width =300 ALIGN="left">:Number of components.</td>
108    </tr>
109  </tbody>
110</table>
111<table border="0">
112  <tbody>
113    <tr ALIGN="center">
114<td ALIGN="left" width =180 ><CODE>frameComp [0]</CODE></td>
115      <td ALIGN="left" width =60> = 0 </td>
116<td width =300 ALIGN="left">:Video data identifier.</td>
117    </tr>
118    <tr ALIGN="center">
119<td ALIGN="left" width =180 ><CODE>frameComp [1]</CODE></td>
120      <td ALIGN="left" width =60> = 1 </td>
121<td width =300 ALIGN="left">:Audio data identifier.</td>
122    </tr>
123    <tr ALIGN="center">
124<td ALIGN="left" width =180 ><CODE>frameComp [2�15]</CODE></td>
125<td ALIGN="left" width =60> = FF </td>
126<td width =300 ALIGN="left">:No data.</td>
127    </tr>
128
129
130  </tbody>
131</table>
132</BLOCKQUOTE><HR></BLOCKQUOTE>
133
134<P>After <CODE>THPFrameCompInfo</CODE>, information about the components (<CODE>THPVideoInfo</CODE>, <CODE>THPAudioInfo</CODE> etc.) is stored. Information about these components must be in the THP components identifier order that is stored in the <CODE>frameComp</CODE> array. </P>
135<BR>
136
137<H2>See Also</H2>
138<P>
139<A href="../THPConv.html">THPConv.exe</A>,<BR> <A href="../THPFormat.html">THP Movie File Format</A>,<BR>
140</P>
141<H2>Revision History</H2>
142<P>03/01/2006 Initial version.</P>
143</BODY>
144</HTML>