Skip to content

Commit

Permalink
Use ZSTD compression for XISF images when available (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
nouspiro authored Sep 13, 2023
1 parent d3f78b4 commit 88b2a0e
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 88b2a0e

Please sign in to comment.