×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

LIBXISF_COMPRESSION

  • Posts: 358
  • Thank you received: 114

LIBXISF_COMPRESSION was created by nou

Hello,
there is hidden feature in LibXISF that is used by INDI and KStars. That you can override compression when saving XISF files.

You can set LIBXISF_COMPRESSION environment variable to these values.
  • zlib
  • lz4
  • lz4hc
  • zstd
  • zlib+sh
  • lz4+sh
  • lz4hc+sh
  • zstd+sh

This set which compression method should be used. "+sh" variant are doing byte shuffling which further increase compression ratio. Best place is just open "~/.profile" file and add line new line
LIBXISF_COMPRESSION=zstd+sh
Or you can just enable compression in INDI control panel in your camera settings. It will use either zstd+sh if available or lz4+sh.

Next version of KStars will support ZSTD which have really nice compression ration where my Lights are 10MB instead of 32MB. ZSTD compression is also really fast that even on RPi it add only slight delay.
To utilize ZSTD you will need latest version of PixInsight. Also support for XISF is coming into Siril so next version after currently released 1.2.0 will have support for reading XISF files.
Last edit: 7 months 1 week ago by nou.
7 months 1 week ago #95848

Please Log in or Create an account to join the conversation.

  • Posts: 462
  • Thank you received: 69

Replied by Jerry Black on topic LIBXISF_COMPRESSION

Sounds good. :) When you say your lights are 10MB instead of 32MB, is that zstd+sh vs fits?
7 months 1 week ago #95849

Please Log in or Create an account to join the conversation.

  • Posts: 358
  • Thank you received: 114

Replied by nou on topic LIBXISF_COMPRESSION

Yes zstd+sh compressed xisf is 10MB vs uncompressed fits/xisf 32MB.
zlib+sh have good compression but it is slow. Even on my desktop Ryzen it takes several seconds to compress one image.
lz4+sh is fast like fraction of second to compress one image but compression ratio is not so good.
zstd+sh is best of both. Slight slower than LZ4 while almost as good compression ratio as zlib.
Last edit: 7 months 1 week ago by nou.
7 months 1 week ago #95851

Please Log in or Create an account to join the conversation.

Time to create page: 0.465 seconds