imgtools/imglib/compress/byte_pair.cpp
changeset 700 c22eff170fac
parent 694 c3fbb20e86f0
equal deleted inserted replaced
699:9ca650050cf0 700:c22eff170fac
   634     if(compressedSize>=size)
   634     if(compressedSize>=size)
   635         return KErrTooBig;
   635         return KErrTooBig;
   636     memcpy(dst,PakBuffer,compressedSize);
   636     memcpy(dst,PakBuffer,compressedSize);
   637     return compressedSize;
   637     return compressedSize;
   638 }
   638 }
       
   639 TInt BytePairDecompress(TUint8* dst, TUint8* src, TInt size, CBytePair *aBPE)
       
   640 {
       
   641     TUint8 UnpakBuffer[MaxBlockSize];
       
   642     ASSERT(size<=MaxBlockSize);
       
   643     TUint8* pakEnd;
       
   644     TInt us = aBPE->Decompress(UnpakBuffer,MaxBlockSize,src,size,pakEnd);
       
   645     memcpy(dst,UnpakBuffer,us);
       
   646     return us;
       
   647 }