Name: pleas read this! 2011-12-03 10:24
Following lines were found in gamesForAll SDK.
// If the 8th bit of the data length storage byte is 0, it not an encoding data sequence.
u4 RLDstCount; // Expansion data size in bytes
u4 RLSrcCount; // Size of data that is targeted for expansion in bytes--after processing
if ( srcp[ RLSrcCount ] & 0x80 ) // decoding process (run length encoded)
{
length = srcp[ RLSrcCount++ ] & 0x7f; // store data length (three geta are worn, so consider it actually +3)
// Data expansion control function (Because it auto expands, it will not run if at the end there is no header for raw data expansion.)
u8 *startp; // Points to the beginning of data that is the compression target for one process loop.
pCompList = compList; // Points to the array that holds the compression sequence.
// Process to add a NULL header (pseudo header for data before it is compressed)
tmp = srcp[i] & 0x0f; HuffTable[tmp].Freq++; // The concern is the encoding floor
// search target data must be data from before two byte.
//
// offset is stored as 12-bit so less than 4096
// If the 8th bit of the data length storage byte is 0, it not an encoding data sequence.
u4 RLDstCount; // Expansion data size in bytes
u4 RLSrcCount; // Size of data that is targeted for expansion in bytes--after processing
if ( srcp[ RLSrcCount ] & 0x80 ) // decoding process (run length encoded)
{
length = srcp[ RLSrcCount++ ] & 0x7f; // store data length (three geta are worn, so consider it actually +3)
// Data expansion control function (Because it auto expands, it will not run if at the end there is no header for raw data expansion.)
u8 *startp; // Points to the beginning of data that is the compression target for one process loop.
pCompList = compList; // Points to the array that holds the compression sequence.
// Process to add a NULL header (pseudo header for data before it is compressed)
tmp = srcp[i] & 0x0f; HuffTable[tmp].Freq++; // The concern is the encoding floor
// search target data must be data from before two byte.
//
// offset is stored as 12-bit so less than 4096