nn::cx::UncompContextHuffman Structurestruct UncompContextHuffman
{
u8 * destp;
s32 destCount;
s32 forceDestCount;
u8 * treep;
u32 srcTmp;
u32 destTmp;
s16 treeSize;
u8 srcTmpCnt;
u8 destTmpCnt;
u8 bitSize;
u8 headerSize;
u8 tree[0x200];
};
The context for decompressing Huffman compressed data.
| destp | Write-destination pointer (4 bytes) | |
|---|---|---|
| destCount | Remaining size to write (4 bytes) | |
| forceDestCount | Forcibly setting the size of the decompression target (4 bytes) | |
| treep | Huffman encoding table, current pointer (4 bytes) | |
| srcTmp | Data being read (4 bytes) | |
| destTmp | Data being decoded (4 bytes) | |
| treeSize | Size of Huffman encoding table (2 bytes) | |
| srcTmpCnt | Size of data being read (1 bytes) | |
| destTmpCnt | Number of bits that have been decoded (1 byte) | |
| bitSize | Size of encoded bits (1 byte) | |
| headerSize | Size of header being read (1 byte) | |
| tree | Huffman encoding table (512 bytes) (32 bytes will suffice for 4-bit encoding, but 8 bits are allocated) |
CONFIDENTIAL