1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6 <TITLE>CX Demos</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8</HEAD> 9<BODY> 10 11<H1>Sample Demo of the Compression/Decompression Library (CX)</H1> 12 13<H2>Location</H2> 14<P><code>$REVOLUTION_SDK_ROOT/build/demos/cxdemo</code></P> 15<H2>Compilation</H2> 16<P>Change directory to <code>$REVOLUTION_SDK_ROOT/build/demos/cxdemo</code> and enter <code>make</code>. An executable (<code>.elf</code>) file will be generated in <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/cxdemo/</code>.</P> 17 18<H2>Execution</H2> 19<p>You must configure <CODE>DVDRoot</CODE> before execution. Be sure to specify the folder name <code>$REVOLUTION_SDK_ROOT/dvddata</code> as the <CODE>DvdRoot</CODE> argument of the <code>SetNdEnv</code> command.</p> 20 21<P>Change to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/cxdemo</code> directory and do the following:</P> 22<ul> 23<li>To simply execute a program, run the <code>ndrun</code> script using the <code>.elf</code> file as the argument.</li> 24<li>To debug using CodeWarrior, do one of the following:</li> 25<ul> 26<li>?Run <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li> 27<li>?Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag the <code>.elf</code> file.</li> 28<li>If the <code>.elf</code> file is associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file.</li> 29</ul> 30 31</ul> 32 33<H2>Description</H2> 34<TABLE class="demo_list" border="1" > 35 <TBODY> 36 <TR> 37<TH>cx_uncompress</TH> 38<TD>Decompresses and displays the texture data compressed by one of various compression methods provided on DVD.</TD> 39 </TR> 40 <TR> 41<TH>cx_uncompress_stream</TH> 42<TD>Performs streaming decompression of texture data compressed by one of various compression methods provided on DVD. Using a double buffer for loading data, data is decompressed in parallel with an asynchronous read of the DVD. 43 </TD> 44 </TR> 45 </TBODY> 46</TABLE> 47 48<H2>See Also</H2> 49<P class="reference"> 50<A href="toc.html" target="contents">CX Functions</A> 51</P> 52 53<H2>Revision History</H2> 54<P> 552006/07/10 Initial version. 56</P> 57 58<hr><p>CONFIDENTIAL</p></body> 59</HTML> 60