MI_GetUncompressedSize

Syntax

#include <nitro/mi.h>

u32 MI_GetUncompressedSize( const void *srcp );

Arguments

srcp Source address where the compressed data is stored.

Return Values

Size after extraction.

Description

This function obtains the extracted size of compressed data after extraction. This function does not extract data but reads the extracted size that is stored in the beginning of the compressed data.

This function is compatible with all compression formats supported by the TWL-SDK.

Internal Operation

Reads the first 4 bytes of data and shifts down that value by 8 bits.

See Also

MI_UncompressLZ*, MI_UncompressHuffman, MI_UncompressRL*, MI_GetCompressionType

Revision History

2004/06/18 Initial version.


CONFIDENTIAL