2013-07-21 04:14:33 +00:00
|
|
|
#ifndef COMPRESSION_HPP
|
|
|
|
#define COMPRESSION_HPP
|
|
|
|
|
2014-04-20 09:14:15 +00:00
|
|
|
#include "Athena/Global.hpp"
|
2013-07-21 04:14:33 +00:00
|
|
|
|
2014-04-20 09:14:15 +00:00
|
|
|
namespace Athena
|
2013-07-21 04:14:33 +00:00
|
|
|
{
|
|
|
|
namespace io
|
|
|
|
{
|
|
|
|
namespace Compression
|
|
|
|
{
|
2014-09-09 16:36:29 +00:00
|
|
|
// Zlib compression
|
2014-09-09 16:46:05 +00:00
|
|
|
atInt32 decompressZlib(const atUint8* src, atUint32 srcLen, atUint8* dst, atUint32 dstLen);
|
|
|
|
atInt32 compressZlib(const atUint8* src, atUint32 srcLen, atUint8* dst, atUint32 dstLen);
|
2013-07-27 06:39:03 +00:00
|
|
|
|
2014-09-09 16:36:29 +00:00
|
|
|
// lzo compression
|
2014-09-09 16:46:05 +00:00
|
|
|
atInt32 decompressLZO(const atUint8* source, atInt32 sourceSize, atUint8* dst, atInt32& dstSize);
|
2014-02-12 01:38:50 +00:00
|
|
|
|
2014-09-09 16:36:29 +00:00
|
|
|
// Yaz0 encoding
|
2014-11-29 03:32:37 +00:00
|
|
|
atUint32 yaz0Decode(const atUint8* src, atUint8* dst, atUint32 uncompressedSize);
|
2014-09-09 16:36:29 +00:00
|
|
|
atUint32 yaz0Encode(const atUint8* src, atUint32 srcSize, atUint8* data);
|
2013-07-27 06:39:03 +00:00
|
|
|
|
2014-09-09 16:53:32 +00:00
|
|
|
atUint32 decompressLZ77(const atUint8* src, atUint32 srcLen, atUint8** dst);
|
|
|
|
atUint32 compressLZ77(const atUint8* src, atUint32 srcLen, atUint8** dst, bool extended = false);
|
2013-07-21 04:14:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // COMPRESSION_HPP
|