diff -r 1dfff72f0961 -r c3fbb20e86f0 imgtools/imglib/compress/byte_pair.cpp --- a/imgtools/imglib/compress/byte_pair.cpp Wed Nov 17 14:41:23 2010 +0800 +++ b/imgtools/imglib/compress/byte_pair.cpp Wed Nov 17 16:47:23 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; +}