ntcompress is a tool that creates compressed data in a format that can be handled by the CX library.
% ntcompress <-d8|d16|r|l|h4|h8> [-s] [-<t|T>[width]] [-H] [-A4] [-o outputFile] <inputFile>
Compresses and converts the input file that is designated by inputFile into the designated format. Run-length compression, LZ77 compression, Huffman compression, and difference filter conversion are all possible.
With the -s option, the message indicating successful compression will not be displayed.
With the -H option, the data size is also appended to the data after expansion occurs. This is because header information is added to the data and compressed.
With the -A4 option, the size of the output file will be padded with zeros so that it is a multiple of four.
With the -o option, the file name of the output file can be designated. If nothing is designated, the output file is created with the name (input file name console part)_(compression method).bin.
With the -t or -T option, the output file can be created as a C format text file. By adding options (1|2|4), you can choose between the u8, u16, and u32 types. (The default is u8.)
The output is little-endian with -t and big-endian with -T for u16 and u32.
The following formats can be designated for the compression method:
| Options | Conversion Method | Parameters |
|---|---|---|
-d |
Difference filter | Designates the bit size of the comparison unit { 8 | 16 } |
-r |
Run length compression | None. |
-h |
Huffman compression | Designates the bit size to encode { 4 | 8 } |
-l |
LZ77 compression | None. |
$(REVOLUTION_SDK_ROOT)/X86/bin/ntcompress.exe
CXUncompressHuffman, CXUncompressRL, CXUncompressLZ, CXReacUncompHuffman, CXReadUncompRL, CXReadUncompLZ
07/06/2006 Initial version.
CONFIDENTIAL