1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10
11<h1>cx - compress Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16<p>This sample demonstrates how to make run-length, Huffman, and LZ encodings.</p>
17</div>
18
19<h2>Required Environment</h2>
20
21<div class="section">
22<p>None.</p>
23</div>
24
25<h2>How to Use</h2>
26
27<div class="section">
28<p>None.</p>
29</div>
30
31<h2>Notes</h2>
32
33<div class="section">
34    <ul>
35<li>This demo does not display anything on the screen. Logs are all displayed in debug output.</li>
36    </ul>
37</div>
38
39<h2>Execution Procedure</h2>
40
41<div class="section">
42<p>When the demo is executed, the following log is displayed in debug output.</p>
43
44<pre class="code">Compress demo
45    Runlength Coding Test
46        compressing... failed
47        compressing... done [size =  4095 bytes]
48        uncompressing... done
49        verifying... done
50    finished
51    Huffman Coding (4bit) Test
52        compressing... done [size =  3052 bytes]
53        uncompressing... done
54        verifying... done
55    finished
56    Huffman Coding (8bit) Test
57        compressing... done [size =  2708 bytes]
58        uncompressing... done
59        verifying... done
60    finished
61    LZ Coding Test
62        compressing... done [size =  1975 bytes]
63        uncompressing... done
64        verifying... done
65    finished
66Compress demo finished</pre>
67
68</div>
69
70<h2>Revision History</h2>
71
72<div class="section">
73    <dl class="history">
74        <dt>2011/06/07</dt>
75<dd>Revised so that logs are output in Release builds.</dd>
76        <dt>2011/02/02</dt>
77<dd>Initial version.</dd>
78    </dl>
79</div>
80
81
82<hr><p>CONFIDENTIAL</p></body>
83</html>