2018-10-06 20:37:09 -07:00
|
|
|
#pragma once
|
2013-07-20 21:14:33 -07:00
|
|
|
|
2016-03-04 15:00:12 -08:00
|
|
|
#include "athena/Global.hpp"
|
2013-07-20 21:14:33 -07:00
|
|
|
|
2018-12-07 21:18:17 -08:00
|
|
|
namespace athena::io::Compression {
|
2014-09-09 09:36:29 -07:00
|
|
|
// Zlib compression
|
2014-09-09 09:46:05 -07: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-26 23:39:03 -07:00
|
|
|
|
2019-06-11 18:58:44 -07:00
|
|
|
#if AT_LZOKAY
|
2014-09-09 09:36:29 -07:00
|
|
|
// lzo compression
|
2014-09-09 09:46:05 -07:00
|
|
|
atInt32 decompressLZO(const atUint8* source, atInt32 sourceSize, atUint8* dst, atInt32& dstSize);
|
2019-06-11 18:58:44 -07:00
|
|
|
#endif
|
2014-02-11 17:38:50 -08:00
|
|
|
|
2014-09-09 09:36:29 -07:00
|
|
|
// Yaz0 encoding
|
2014-11-28 19:32:37 -08:00
|
|
|
atUint32 yaz0Decode(const atUint8* src, atUint8* dst, atUint32 uncompressedSize);
|
2014-09-09 09:36:29 -07:00
|
|
|
atUint32 yaz0Encode(const atUint8* src, atUint32 srcSize, atUint8* data);
|
2013-07-26 23:39:03 -07:00
|
|
|
|
2014-09-09 09:53:32 -07:00
|
|
|
atUint32 decompressLZ77(const atUint8* src, atUint32 srcLen, atUint8** dst);
|
|
|
|
atUint32 compressLZ77(const atUint8* src, atUint32 srcLen, atUint8** dst, bool extended = false);
|
2018-12-07 21:18:17 -08:00
|
|
|
} // namespace athena::io::Compression
|