|
AnimaEngine
1.0.0
Nintendo DS Pokemon Black, White, Black 2, and White 2 sprite extraction and preview toolchain
|
#include "lz.h"Functions | |
| static u32 | ReadU24LE (const u8 *p) |
| CompressionType | Lz_Detect (const u8 *data, size_t size) |
| Auto-detects the compression format of a data buffer by inspecting its header byte. More... | |
| const char * | Lz_CompressionName (CompressionType type) |
| Returns a human-readable name string for a CompressionType enum. More... | |
| static int | Lz_Decompress10 (const u8 *in_data, size_t in_size, u8 **out_data, size_t *out_size) |
| static int | Lz_Decompress11 (const u8 *in_data, size_t in_size, u8 **out_data, size_t *out_size) |
| int | Lz_Decompress (const u8 *in_data, size_t in_size, u8 **out_data, size_t *out_size, CompressionType *out_type) |
| Decompresses an LZ10 or LZ11 compressed data stream. More... | |
| const char* Lz_CompressionName | ( | CompressionType | type | ) |
Returns a human-readable name string for a CompressionType enum.
| type | The compression type. |
| int Lz_Decompress | ( | const u8 * | in_data, |
| size_t | in_size, | ||
| u8 ** | out_data, | ||
| size_t * | out_size, | ||
| CompressionType * | out_type | ||
| ) |
Decompresses an LZ10 or LZ11 compressed data stream.
| in_data | Pointer to the raw compressed source buffer. |
| in_size | Size of the compressed data stream in bytes. |
| out_data | Pointer to the destination buffer pointer, allocated inside this function. |
| out_size | Pointer to store the size of the decompressed output buffer. |
| out_type | Optional output pointer to store the detected compression format. |
|
static |
|
static |
| CompressionType Lz_Detect | ( | const u8 * | data, |
| size_t | size | ||
| ) |
Auto-detects the compression format of a data buffer by inspecting its header byte.
| data | Pointer to raw data buffer. |
| size | Buffer size in bytes. |