Make compression level 0-100

This commit is contained in:
2024-06-05 22:26:06 +02:00
parent 263b380dbf
commit 922d4b73c9
2 changed files with 38 additions and 1 deletions
+5
View File
@@ -317,6 +317,11 @@ public:
const T* imageData() const { return static_cast<T*>(imageData()); }
size_t imageDataSize() const;
DataBlock::CompressionCodec compression() const;
/** Set compression type and level.
* @param compression define which compression algorithm to use.
* @param level number between 0 and 100. Zero means lowest compression and maximum speed. Hundred means maximum compression speed.
* -1 means default compression level defined by compression library.
*/
void setCompression(DataBlock::CompressionCodec compression, int level = -1);
bool byteShuffling() const;
void setByteshuffling(bool enable);