1<html> 2 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 6<title>THPUtyWriteTHPComponentsInfo</title> 7</head> 8 9<body> 10 11<h1>THPUtyWriteTHPComponentsInfo</h1> 12 13<h2>C Specification</h2> 14 15<dl> 16<dd><pre><code>#include <win32/thputilities.h></code></pre></dd> 17<dd><pre><code>s32 THPUtyWriteTHPComponentsInfo(FILE* op, 18THPFrameCompInfo* compinfo, 19THPVideoInfo* videoinfo, 20THPAudioInfo* audioinfo, 21s32* compinfosize);</code></pre></dd> 22</dl> 23 24<h2>Arguments</h2> 25<table border="1" cellpadding="3" cellspacing="0.1"> 26 <tr> 27<td width="120" bgcolor="#ffffe8"><strong><em><CODE>op</CODE></em></strong></td> 28<td width="520">File pointer to the output destination.</td> 29 </tr> 30 <tr> 31<td width="120" bgcolor="#ffffe8"><strong><em><CODE>compinfo</CODE></em></strong></td> 32<td width="520">Pointer to the <code>THPFrameCompInfo</code> structure.</td> 33 </tr> 34 <tr> 35<td width="120" bgcolor="#ffffe8"><strong><em><CODE>videoinfo</CODE></em></strong></td> 36<td width="520">Pointer to the <A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code> structure</A> to be output.</td> 37 </tr> 38 <tr> 39<td width="120" bgcolor="#ffffe8"><strong><em><CODE>audioinfo</CODE></em></strong></td> 40<td width="520">Pointer to the <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code> structure</A> to be output.</td> 41 </tr> 42 <tr> 43<td width="120" bgcolor="#ffffe8"><strong><em><CODE>compinfosize</CODE></em></strong></td> 44<td width="520">Pointer to the component size storage destination.</td> 45 </tr> 46</table> 47 48<h2>Return Values</h2> 49<p> 50Returns one of the following codes: 51</p> 52 53<table border="1"> 54 <tbody> 55 <tr align="center"> 56<td>Code</td> 57<td width=50>Value</td> 58<td>Description</td> 59 </tr> 60 <tr> 61<td><CODE>THP_ERROR_NOERROR</CODE></td> 62 <td align="center">0</td> 63<td>The function ended normally.</td> 64 </tr> 65 <tr> 66<td><CODE>THP_ERROR_FILEIO</CODE></td> 67 <td align="center">1</td> 68<td>Failed to read or write from file. </td> 69 </tr> 70 <tr> 71<td><CODE>THP_ERROR_DATA</CODE></td> 72 <td align="center">4</td> 73<td>The data is invalid. </td> 74 </tr> 75 </tbody> 76</table> 77 78<h2>Description</h2> 79<p> 80This function outputs the <A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code></A> and <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A> structures to the file specified by <code>op</code>. 81</p> 82 83<h2>See Also</h2> 84<p> 85<A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code></A>, <A href="../../common/THPAudioInfo.html"><code>THPAudioInfo</code></A> 86</p> 87 88<h2>Revision History</h2> 89<P>03/01/2006 Initial version.</P> 90</body> 91</html>