Skip to content

Commit

Permalink
Use ZSTD compression for XISF images when available
Browse files Browse the repository at this point in the history
  • Loading branch information
nouspiro committed Sep 13, 2023
1 parent d3f78b4 commit 197cc79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/indibase/indiccd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 197cc79

Please sign in to comment.