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>MI_UnpackBits</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_UnpackBits <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/mi.h&gt;</CODE><BR>
20  <BR>
21  <CODE>void MI_UnpackBits( const void* srcp, void* destp, MIUnpackBitsParam *paramp
22  );</CODE><br>
23  </dd>
24</dl>
25<h2>Arguments</h2>
26<TABLE border="1" width="100%">
27  <TBODY>
28    <TR>
29      <TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD>
30      <TD width="87%">Source address where compressed data is stored.</TD>
31    </TR>
32    <TR>
33      <TD width="13%"><EM><STRONG>destp</STRONG></EM></TD>
34      <TD width="87%">Destination address for decompression.</TD>
35    </TR>
36    <TR>
37      <TD><EM><STRONG>paramp</STRONG></EM></TD>
38      <TD><CODE>MIUnpackBitsParam</CODE> structure address.</TD>
39    </TR>
40  </TBODY>
41</TABLE>
42
43<h2>Return Values</h2>
44<p>None.</p>
45
46<H2>Description</H2>
47<P>This function decompresses data that was packed as 0 fixed bits. The destination address must be aligned to a 4-byte boundary.<BR> The <code>MI_UnpackBitsParam</code> structure comprises the following. Source data byte count <code>(u16)</code>.<br> Bit count for the &quot;1&quot; source data <code>(u16:8)</code>.<br> Bit count for the &quot;1&quot; destination data <code>(u16:8)</code>.<br> The offset to be added to the source data <code>(u32:31)</code>.<br> A flag that indicates whether to add an offset to the &quot;0&quot; data <code>(u32:1)</code>.<br></P>
48<h2>Internal Operation</h2>
49<P>This processes with the CPU without using a system call or DMA.</P>
50
51<h2>See Also</h2>
52<p><code><a href="MI_UncompressLZ.html">MI_UncompressLZ</a>, <a href="MI_UncompressHuffman.html">MI_UncompressHuffman</a>, <a href="MI_UncompressRL.html">MI_UncompressRL</a>, <a href="../../svc/SVC_UnpackBits.html">SVC_UnpackBits</a></code> </p>
53
54<H2>Revision History</H2>
55<P><code>MI_UnpackBitsPram</code> is changed to <code>MIUnpackBitsParam</code>.<br> 2004/05/28 Fixed description in Internal Operation.<br> 2004/02/10 Initial version.</P>
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58