# Changes
- Fix PD Image - Add some beta RLE Compress Decompress variants
This commit is contained in:
@ -30,6 +30,12 @@ namespace PD {
|
||||
* Set of File Functions
|
||||
*/
|
||||
namespace IO {
|
||||
enum RleFmt {
|
||||
Default = 0,
|
||||
_16 = 1 << 0,
|
||||
_32 = 1 << 1,
|
||||
_64 = 1 << 2,
|
||||
};
|
||||
/**
|
||||
* Load a File into an 8Bit Memory Buffer
|
||||
* @param path Path to the File
|
||||
@ -42,5 +48,25 @@ PD_CORE_API std::vector<u8> LoadFile2Mem(const std::string& path);
|
||||
* @return 32Bit Hash
|
||||
*/
|
||||
PD_CORE_API u32 HashMemory(const std::vector<u8>& data);
|
||||
/**
|
||||
* Function to decrompress RLE buffer
|
||||
* @param data Data buffer to decompress
|
||||
*/
|
||||
PD_CORE_API void DecompressRLE(std::vector<u8>& data);
|
||||
/**
|
||||
* Function to decrompress Extended RLE Buffer
|
||||
* @param data Data buffer to decompress
|
||||
*/
|
||||
PD_CORE_API void DecompressRLE_Ex(std::vector<u8>& data);
|
||||
/**
|
||||
* Function to compress data with RLE Algorithm
|
||||
* @param data Data buf
|
||||
*/
|
||||
PD_CORE_API void CompressRLE(std::vector<u8>& data);
|
||||
/**
|
||||
* Extended RLE Compress function (slower cause searches best format)
|
||||
* @param data Data buf
|
||||
*/
|
||||
PD_CORE_API void CompressRLE_Ex(std::vector<u8>& data);
|
||||
} // namespace IO
|
||||
} // namespace PD
|
Reference in New Issue
Block a user