NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
CXUncompression.h
Go to the documentation of this file.
1#pragma once
2/// @file
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/// @brief The possible compression types.
9typedef enum {
10 CX_COMPRESSION_NONE = 0x00, ///< No compression.
11 CX_COMPRESSION_LZ = 0x10, ///< LZ77 compression.
12 CX_COMPRESSION_HUFFMAN = 0x20, ///< Huffman encoding. @unused
13 CX_COMPRESSION_RL = 0x30, ///< Run length encoding. @unused
14 CX_COMPRESSION_LH = 0x40, ///< LZ77 + Huffman encoding. @unused
15 CX_COMPRESSION_LRC = 0x50, ///< LZ77 + Range encoding. @unused
16 CX_COMPRESSION_DIFF = 0x80, ///< Differential filter. @unused
17 CX_COMPRESSION_TYPE_MASK = 0xF0,
19
20void CXUncompressLZ(const void *orig, void *dest);
21int CXGetUncompressedSize(void *data);
22
23#ifdef __cplusplus
24}
25#endif
CXCompressionType
The possible compression types.
@ CX_COMPRESSION_LZ
LZ77 compression.
@ CX_COMPRESSION_LRC
LZ77 + Range encoding.
@ CX_COMPRESSION_LH
LZ77 + Huffman encoding.
@ CX_COMPRESSION_NONE
No compression.
@ CX_COMPRESSION_RL
Run length encoding.
@ CX_COMPRESSION_DIFF
Differential filter.
@ CX_COMPRESSION_HUFFMAN
Huffman encoding.