#include <revolution/cx.h> s32 CXSecureUncompressAny( const void* srcp, u32 srcSize, void* destp );
| srcp | Source address where compressed data is stored |
|---|---|
| srcSize | Source data size |
| destp | Destination address where data is expanded |
| CX_ERR_SUCCESS | Successful end |
|---|---|
| CX_ERR_UNSUPPORTED | Unsupported compression data type. |
| CX_ERR_SRC_SHORTAGE | Source data size is too small. |
| CX_ERR_SRC_REMAINDER | Source data size is too large. |
| CX_ERR_DEST_OVERRUN | The decompression destination buffer will be exceeded (buffer overrun). |
| CX_ERR_ILLEGAL_TABLE | The Huffman table contains mistakes. |
Detects the compression format from the data header and executes the appropriate decompression process.
The decompression processes for all of the compression types are linked in this function. Therefore, unless some special kind of compression is being used, it is perhaps more effective to execute the compression-type-specific function instead.
CXSecureUncompressRL, CXSecureUncompressLZ, CXSecureUncompressHuffman, CXSecureUnfilterDiff
2007/05/24 Initial version.
CONFIDENTIAL