compBLZ

Description

compBLZ is a tool that creates compressed data in a format that can be handled by the MI_SecureUncompressBLZ() command. BLZ format is a compression format based on the LZ format that uses reverse decompression to reduce the amount of memory consumed.

See the uncompressBLZ demo in the MI sample demos for how to decompress this data in an application.

Using the Tool

Start Command

% compBLZ [-d] [-e suffix] [-o outputFile] <inputFile>

The input file specified in inputFile will be compressed in BLZ format.

The -d option displays messages throughout the duration of the compression.

The -e option can be used to specify the file extension to be added to the filename after compression. The default is _BLZ.bin.

With the -o option, the file name of the output file can be designated.
If nothing is specified, the output file is created with the name (the main input file name)_(file extension specified in the -e option).

A footer like the one below will be added to the BLZ data. Each member will be based on the ending address of the BLZ data buffer.

typedef struct
{
u32 bufferTop:24; // Offset to the starting address of the compressed region.
u32 compressBottom:8; // Offset to the starting address of this footer.
u32 originalBottom; // Offset to the ending address of the buffer after decompression.
} CompFooter;

Location

$TwlSDK/tools/bin/compBLZ.exe

See Also

MI_SecureUncompressBLZ, MI Sample Demos

Revision History

2008/06/23 Initial version.



CONFIDENTIAL