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<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 7<title>THPConvertJPEG2THP</title> 8</head> 9 10<body> 11 12<h1>THPConvertJPEG2THP</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <win32/thpcore.h> 17s32 THPConvertJPEG2THP(void* jpeg_ptr, 18 void* thp_ptr, 19 s32 jpeg_length, 20 THPImageStatus* status); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th>jpeg_ptr</th> 27<td>Pointer to the JPEG data to be converted</td> 28 </tr> 29 <tr> 30<th>thp_ptr</th> 31<td>Output buffer for THP video data after conversion.</td> 32 </tr> 33 <tr> 34<th>jpeg_length</th> 35<td>Size of the JPEG data to convert.</td> 36 </tr> 37 <tr> 38<th>status</th> 39<td>Pointer to the <CODE>THPImageStatus</CODE> structure that stores the THP image information.</td> 40 </tr> 41</table> 42 43<h2>Return Values</h2> 44<p> 45Returns one of the following codes. 46</p> 47<TABLE class="arguments" border="1" > 48 <tbody> 49 <tr align="center"> 50<td bgcolor="#CCCCCC"><STRONG>Code</STRONG></td> 51<td bgcolor="#CCCCCC" width=50><STRONG>Value</STRONG></td> 52<td bgcolor="#CCCCCC"><STRONG>Description</STRONG></td> 53 </tr> 54 <tr> 55<th>THP_ERROR_NOERROR</th> 56 <td align="center">0</td> 57<td>The function ended normally.</td> 58 </tr> 59 <tr> 60<th>THP_ERROR_JPEGFILE</th> 61 <td align="center">3</td> 62<td>JPEG data is invalid.</td> 63 </tr> 64 </tbody> 65</table> 66 67<h2>Description</h2> 68<p> 69The <code>THPConvertJPEG2THP</code> function converts <SPAN class="argument">jpeg_length</SPAN> bytes of the JPEG data specified by <SPAN class="argument">jpeg_ptr</SPAN> into THP video data and outputs it to the buffer specified by <SPAN class="argument">thp_ptr</SPAN>. Information about the conversion data is stored in the <A href="THPImageStatus.html"><code>THPImageStatus</code></A> structure specified by <SPAN class="argument">status</SPAN>. 70</p> 71 72<h2>See Also</h2> 73<p class="reference"> 74<A href="THPImageStatus.html">THPImageStatus</A> 75</p> 76 77<h2>Revision History</h2> 78<P> 792006/03/01 Initial version.<br> 80</P> 81 82<hr><p>CONFIDENTIAL</p></body> 83</html>