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> <BR> <CODE>s32 SVC_UncompressHuffmanFromDevice( const void* srcp,</CODE></dd>
20<dd><CODE>                       void* destp,</CODE></dd>
21<dd><CODE>                       u8* tableBufp,</CODE></dd>
22<dd><CODE>                       const MIReadStreamCallbacks *callbacks</CODE><CODE> );</CODE></dd>
23</dl>
24<h2>Arguments</h2>
25<TABLE border="1" width="100%">
26  <TBODY>
27    <TR>
28<TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD>
29<TD width="87%">Source address of Huffman-compressed data.</TD>
30    </TR>
31    <TR>
32<TD width="13%"><EM><STRONG>destp</STRONG></EM></TD>
33<TD width="87%">Destination address for decompression.</TD>
34    </TR>
35    <TR>
36<TD><EM><STRONG>tableBufp</STRONG></EM></TD>
37<TD>Tree table storage buffer (maximum of 512 bytes).<BR> When you want to pass the <code>initStream</code> function parameter of the <code>MIReadStreamCallbacks</code> structure, you can pass it via this buffer. Note, however, that the <code>initStream</code> function call trace will be written over by the tree table.</TD>
38    </TR>
39    <TR>
40<TD><EM><STRONG>callbacks</STRONG></EM></TD>
41<TD>Address of the <code>MIReadStreamCallbacks</code> socket.</TD>
42    </TR>
43  </TBODY>
44</TABLE>
45
46<h2>Return Values</h2>
47<p> A value that is more than zero denotes the decompressed size. A value that is less than zero denotes an error.</p>
48
49<H2>Description</H2>
50<P>Decompresses Huffman compression data and writes it in 32-bit units to the specified memory. Match the source address <SPAN class="argument">src</SPAN> 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>
51<h2>See Also</h2>
52<p><a href="../mi/uncompress/MI_UncompressHuffman.html"><code>MI_UncompressHuffman</code></a><BR> <a href="SVC_UncompressLZ.html"><code>SVC_UncompressLZ*</code></a><BR> <a href="SVC_UncompressRL.html"><code>SVC_UncompressRL*</code></a></p>
53
54<H2>Revision History</H2>
55<P>2004/07/22 Initial version.</P>
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58