imgtools/imglib/compress/byte_pair.cpp
changeset 694 c3fbb20e86f0
parent 590 360bd6b35136
--- 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;
+}