From 197cc799675703004624a62de5efd9c395a1ab7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Wed, 13 Sep 2023 16:14:37 +0200 Subject: [PATCH] Use ZSTD compression for XISF images when available --- libs/indibase/indiccd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/indibase/indiccd.cpp b/libs/indibase/indiccd.cpp index 782582e940..3a9e8ca620 100644 --- a/libs/indibase/indiccd.cpp +++ b/libs/indibase/indiccd.cpp @@ -2456,7 +2456,10 @@ bool CCD::ExposureCompletePrivate(CCDChip * targetChip) if (targetChip->SendCompressed) { - image.setCompression(LibXISF::DataBlock::LZ4); + if(LibXISF::DataBlock::CompressionCodecSupported(LibXISF::DataBlock::ZSTD)) + image.setCompression(LibXISF::DataBlock::ZSTD); + else + image.setCompression(LibXISF::DataBlock::LZ4); image.setByteshuffling(targetChip->getBPP() / 8); }