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 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>CXCompressRL</title> 9<LINK rel="stylesheet" href="../CSS/revolution.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">CXCompressRL</h1> 15<h2>C Specification</h2> 16 17<dl> 18 <dd> 19<CODE>#include <revolution/cx.h></CODE><BR> <BR> <CODE>u32 CXCompressRL( const u8 *srcp, u32 size, u8 *dstp );<BR></CODE></dd> 20</dl> 21<h2>Arguments</h2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25<TD width="13%"><EM><STRONG>srcp</STRONG></EM></TD> 26<TD width="87%">The source address where the data to compress is stored.</TD> 27 </TR> 28 <TR> 29<TD><EM><STRONG>size</STRONG></EM></TD> 30<TD>The data size of the source to compress.</TD> 31 </TR> 32 <TR> 33<TD width="13%"><EM><STRONG>dstp</STRONG></EM></TD> 34<TD width="87%">Needs a pointer to the compression destination buffer and a region greater than the source data size. Needs a 4-byte alignment.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38 39<h2>Return Values</h2> 40<p>Returns the size of the compressed data. If the data after compression is larger than the source file, no compression will be performed and a zero will be returned.</p> 41 42<H2>Description</H2> 43<P>Performs RL-compression on the data, then writes it to a specified memory region. A region of the same size as the source data must be prepared in the compression destination buffer.</P> 44 45<h2>See Also</h2> 46<p><CODE><A href="CXUncompressRL.html">CXUncompressRL</A> </CODE>, <A href="CXReadUncompRL.html">CXReadUncompRL</A> , <A href="CXCompressLZ.html">CXCompressLZ</A>, <A href="CXCompressHuffman.html">CXCompressHuffman</A></p> 47 48<H2>Revision History</H2> 49<P>07/06/2006 Initial version.</P> 50<hr> 51<P>CONFIDENTIAL</p> 52</BODY> 53</HTML> 54