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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>SVC_UncompressHuffmanFromDevice</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">SVC_UncompressHuffmanFromDevice <IMG src="../image/NTR.gif" align="middle"><IMG src="../image/TWL.gif" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/os/common/systemCall.h&gt;</CODE><BR>
20  <BR>
21  <CODE>s32 SVC_UncompressHuffmanFromDevice( const void* srcp,</CODE></dd>
22  <dd><CODE>                       void* destp,</CODE></dd>
23  <dd><CODE>                       u8* tableBufp,</CODE></dd>
24  <dd><CODE>const MIReadStreamCallbacks *callbackes</CODE><CODE> );</CODE></dd>
25</dl>
26<h2>Arguments</h2>
27<TABLE border="1" width="100%">
28  <TBODY>
29    <TR>
30      <TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD>
31      <TD width="87%">Source address of Huffman-compressed data.</TD>
32    </TR>
33    <TR>
34      <TD width="13%"><EM><STRONG>destp</STRONG></EM></TD>
35      <TD width="87%">Destination address for decompression.</TD>
36    </TR>
37    <TR>
38      <TD><EM><STRONG>tableBufp</STRONG></EM></TD>
39      <TD>Tree table storage buffer (max. 512 bytes).<BR>
40      When you want to pass parameters to the <CODE>initStream</CODE> function of the <CODE>MIReadStreamCallbacks</CODE> structure, you can pass them through this buffer. Note, however, that the <code>initStream</code> function call trace will be written over by the tree table.</TD>
41    </TR>
42    <TR>
43      <TD><EM><STRONG>callbacks</STRONG></EM></TD>
44      <TD>Address of the <code>MIReadStreamCallbacks</code> socket.</TD>
45    </TR>
46  </TBODY>
47</TABLE>
48
49<h2>Return Values</h2>
50<p> A value that is more than 0 denotes the decompressed size. A value that is less than 0 denotes an error.</p>
51
52<H2>Description</H2>
53<P>Decompresses Huffman compression data and writes it in 32-bit units to the specified memory. Match the source address <em><strong><code>src</code></strong></em> to the 4-byte boundary. When the size of the compressed data is not a multiple of 4, adjust by padding it with zeros. Compressed data on devices that are not memory mapped can be decompressed directly without using a temporary buffer.</P>
54<h2>See Also</h2>
55<p><a href="../mi/uncompress/MI_UncompressHuffman.html"><code>MI_UncompressHuffman</code></a>, <a href="SVC_UncompressLZ.html"><code>SVC_UncompressLZ*</code></a>, <a href="SVC_UncompressRL.html"><code>SVC_UncompressRL*</code></a></p>
56
57<H2>Revision History</H2>
58<P>2004/07/22 Initial version.</P>
59<hr><p>CONFIDENTIAL</p></body>
60</html>
61