CXUncompContextLH

Definitions

#include <revolution/cx/CXStreamingUncompression.h>
typedef struct { u8* destp; // 4B s32 destCount; // 4B u16 huffTable9[ 0x400 ]; // 2048B u16 huffTable12[ 0x40 ]; // 128B u16* nodep; // 4B s32 tableSize9; // 4B s32 tableSize12; // 4B u32 tableIdx; // 4B u32 stream; // 4B u32 stream_len; // 4B u32 headerSize; // 4B u16 length; // 2B s8 offset_bits; // 1B u8 padding_[1]; // 1B // Total 2216B } CXUncompContextLH;

Description

This is the context structure where the status of data uncompression is stored when LH-compressed data is undergoing streaming uncompression while being read from the Card.
The context is initialized by the CXInitUncompContextLH function and used by the CXReadUncompLH function to store the uncompression status.

destp Pointer to the region where uncompressed data will be written
destCount Remaining write size
destTmp For storing data while writing
destTmpCnt For storing data size while writing
flags For storing compression flag data
flagIndex For storing the current index of flag data
length For storing the size of the continuous write
lengthFlg For storing whether or not offset information spanning 2 bytes is currently being read
headerSize For storing the compressed header size while reading

See Also

CXInitUncompContextLH, CXReadUncompLH, CXUncompContextRL,CXUncompContextHuffman

Revision History

2007/11/01 Initial version.


CONFIDENTIAL