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, ///< @unused Huffman encoding.
13 CX_COMPRESSION_RL = 0x30, ///< @unused Run length encoding.
14 CX_COMPRESSION_LH = 0x40, ///< @unused LZ77 + Huffman encoding.
15 CX_COMPRESSION_LRC = 0x50, ///< @unused LZ77 + Range encoding.
16 CX_COMPRESSION_DIFF = 0x80, ///< @unused Differential filter.
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
[Unused]. LZ77 + Range encoding.
@ CX_COMPRESSION_LH
[Unused]. LZ77 + Huffman encoding.
@ CX_COMPRESSION_NONE
No compression.
@ CX_COMPRESSION_RL
[Unused]. Run length encoding.
@ CX_COMPRESSION_DIFF
[Unused]. Differential filter.
@ CX_COMPRESSION_HUFFMAN
[Unused]. Huffman encoding.