nn::cx Namespace

Description

Namespace for the file compression and decompression library.

Structures

nn::cx::UncompContextRL The context for decompressing run-length compressed data.
nn::cx::UncompContextLZ The context for decompressing LZ77 compressed data.
nn::cx::UncompContextHuffman The context for decompressing Huffman compressed data.
nn::cx::UncompContextLH The context for decompressing LZ-Huffman compressed data.
nn::cx::UncompContextLRC The context for decompressing LZ-Range Coder compressed data.

Enumerated Types

ErrorCode Enumerated type representing the error codes.
CompressionType Enumerated type representing compression types.

Constants

Compression
HUFFMAN_COMPRESS_WORK_SIZE const int This is the size of the temporary buffer for compression with nn::cx::CompressHuffman.
Uncompression
UNCOMPRESS_LH_WORK_SIZE const int This is the size of the temporary buffer for uncompression with nn::cx::UncompressLH.
UNCOMPRESS_LRC_WORK_SIZE const int This is the size of the temporary buffer for uncompression with nn::cx::UncompressLRC.
Other
LZ_COMPRESS_WORK_SIZE const int This is the size of the temporary buffer for compression with nn::cx::CompressLZ.

Functions

Compression
CompressLZ Carries out LZ77 compression.
CompressRL Carries out run-length compression.
CompressHuffman Carries out Huffman compression.
Decompression
GetCompressionHeader Gets header information from the first four bytes in the compressed data.
GetCompressionType Gets the compression type from the first byte in the compressed data.
GetUncompressedSize Gets the data size after decompression.
UncompressAny Detects the compression format from the data header and executes the appropriate decompression process.
UncompressRL Decompresses run-length compressed data.
UncompressLZ Decompresses LZ77 compressed data.
UncompressBLZ Decompresses LZ backward compressed (BLZ) data.
UncompressHuffman Decompresses Huffman compressed data.
UncompressLH Decompresses LZ-Huffman compressed data.
UncompressLRC Decompresses LZ-Range Coder compressed data.
UnfilterDiff Restores data converted using a difference filter.
Decompress with error checking
SecureUncompressAny Detects the compression format from the data header and executes the appropriate decompression process while checking for errors.
SecureUncompressRL Decompresses run-length compressed data while checking for errors.
SecureUncompressLZ Decompresses LZ77 compressed data while checking for errors.
SecureUncompressHuffman Decompresses Huffman compressed data while checking for errors.
SecureUncompressLH Decompresses LZ-Huffman compressed data.
SecureUncompressLRC Decompresses LZ-Range Coder compressed data.
SecureUnfilterDiff Restores data converted using a difference filter.
Streaming decompression
InitUncompContextRL Initializes the streaming decompression context for run-length compressed data.
InitUncompContextLZ Initializes the streaming decompression context for LZ77 compressed data.
InitUncompContextHuffman Initializes the streaming decompression context for Huffman compressed data.
InitUncompContextLH Initializes the streaming decompression context for LZ-Huffman compressed data.
InitUncompContextLRC Initializes the streaming decompression context for LZ-Range Coder compressed data.
ReadUncompRL Streaming decompression of run-length compressed data.
ReadUncompLZ Streaming decompression of LZ77 compressed data.
ReadUncompHuffman Streaming decompression of Huffman compressed data.
ReadUncompLH Streaming decompression of LZ-Huffman compressed data.
ReadUncompLRC Streaming decompression of LZ-Range Coder compressed data.
IsFinishedUncomp Determines whether the streaming decompression of compressed data is finished.
InitUncompContextRLFront Initializes the streaming decompression context for run-length compressed data to the specified decompressed size.
InitUncompContextLZFront Initializes the streaming decompression context for LZ77 compressed data to the specified decompressed size.
InitUncompContextHuffmanFront Initializes the streaming decompression context for Huffman compressed data to the specified size.
InitUncompContextLHFront Initializes the streaming decompression context for LZ-Huffman compressed data to the specified decompressed size.
InitUncompContextLRCFront Initializes the streaming decompression context for LZ-Range Coder compressed data to the specified decompressed size.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL