diff -r 9ca650050cf0 -r c22eff170fac imgtools/imglib/compress/byte_pair.cpp --- a/imgtools/imglib/compress/byte_pair.cpp Mon Nov 22 10:41:57 2010 +0800 +++ b/imgtools/imglib/compress/byte_pair.cpp Mon Nov 22 10:56:31 2010 +0800 @@ -636,3 +636,12 @@ memcpy(dst,PakBuffer,compressedSize); return compressedSize; } +TInt BytePairDecompress(TUint8* dst, TUint8* src, TInt size, CBytePair *aBPE) +{ + TUint8 UnpakBuffer[MaxBlockSize]; + ASSERT(size<=MaxBlockSize); + TUint8* pakEnd; + TInt us = aBPE->Decompress(UnpakBuffer,MaxBlockSize,src,size,pakEnd); + memcpy(dst,UnpakBuffer,us); + return us; +}