Support for ZSTD

This commit is contained in:
2023-07-03 16:43:51 +02:00
parent a675e97e0b
commit 0b0c865df0
4 changed files with 83 additions and 1 deletions
+4 -1
View File
@@ -172,7 +172,8 @@ struct LIBXISF_EXPORT DataBlock
None,
Zlib,
LZ4,
LZ4HC
LZ4HC,
ZSTD
};
bool embedded = false;
uint32_t byteShuffling = 0;
@@ -184,6 +185,8 @@ struct LIBXISF_EXPORT DataBlock
ByteArray data;
void decompress(const ByteArray &input, const std::string &encoding = "");
void compress(int sampleFormatSize);
/// ZSTD compression can be disabled at compile time
static bool CompressionCodecSupported(CompressionCodec codec);
};
struct LIBXISF_EXPORT Property