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_UncompressLZ*</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_UncompressLZ* <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> <BR> <CODE>void MI_UncompressLZ8( const void* srcp, void* destp );</CODE><br> <CODE>void MI_UncompressLZ16( const void* srcp, void* destp );</CODE></dd>
20</dl>
21<h2>Arguments</h2>
22<TABLE border="1" width="100%">
23  <TBODY>
24    <TR>
25<TD width="13%"><SPAN class="argument">srcp</SPAN></TD>
26<TD width="87%">Source address where the LZ77 compressed data is stored.</TD>
27    </TR>
28    <TR>
29<TD width="13%"><SPAN class="argument">destp</SPAN></TD>
30<TD width="87%">Destination address for decompression.</TD>
31    </TR>
32  </TBODY>
33</TABLE>
34
35<h2>Return Values</h2>
36<p>None.</p>
37
38<H2>Description</H2>
39<P>Decompresses LZ77 compressed data and writes the data to the specified region of memory. The source address must be aligned to a 4-byte boundary.</P>
40<P>The <code>MI_UncompressLZ8</code> function writes in 8-bit units. On NITRO, you cannot decompress directly to VRAM. On TWL, this is possible, but it is quite slow.<BR><BR> The <code>MI_UncompressLZ16</code> function writes in 16-bit units. On both NITRO and TWL, you can also decompress directly to VRAM. However, the process is slower compared to normal memory.<BR>For compressed data, allow for a 2-byte lead when searching for matching strings.</P>
41
42<P>Decompresses data compressed in LZ77 or LZ77 extended format using <A href="../../tools/ntrcomp.html"><CODE>ntrcomp</CODE> tool</A> or an <A href="MI_CompressLZ.html"><CODE>MI_CompressLZ*</CODE></A> function.</P>
43
44<h2>Internal Operation</h2>
45<P>Processing takes place only on the CPU, without the use of a system call or DMA.</P>
46<h2>See Also</h2>
47<p><A href="MI_UncompressHuffman.html"><CODE>MI_UncompressHuffman</CODE></A><BR> <A href="MI_UncompressRL.html"><CODE>MI_UncompressRL*</CODE></A><BR> <A href="MI_UnfilterDiff.html"><CODE>MI_UnfilterDiff*</CODE></A><BR> <A href="../../svc/SVC_UncompressLZ.html"><CODE>SVC_UncompressLZ*</CODE></A><BR> <A href="MI_ReadUncompLZ.html"><CODE>MI_ReadUncompLZ</CODE></A><BR> <A href="MI_CompressLZ.html"><CODE>MI_CompressLZ*</CODE></A></p>
48
49<H2>Revision History</H2>
50<P>
512008/12/05 Added a description regarding TWL.<br /> 2007/11/01 Added a description regarding LZ77 extended compression.<BR> 2005/03/02 Deleted recommendation to align data size to a multiple of 4 bytes.<br /> 2004/05/28 Added description for <B>Internal Operation</B>.<br> 2004/02/10 Initial version.</P>
52<hr><p>CONFIDENTIAL</p></body>
53</html>
54