athena/include/athena/Compression.hpp

22 lines
810 B
C++
Raw Normal View History

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);
#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);
#endif
2014-09-09 09:36:29 -07:00
// Yaz0 encoding
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);
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