#include <revolution/cx.h>u32 CXCompressLZ( const u8 *srcp, u32 size, u8 *dstp, void* work );
| srcp | The source address where the data to compress is stored. |
| size | The data size of the source to compress. |
| dstp | Needs a pointer to the compression destination buffer and a region greater than the source data size. Needs a 4-byte alignment. |
| work | Temporary work buffer used for compression. It requires CX_LZ_COMPRESS_WORK_SIZE bytes in size. |
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.
Performs LZ77 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.
CXUncompressLZ , CXReadUncompLZ, CXCompressRL, CXCompressHuffman
07/06/2006 Initial version.
CONFIDENTIAL