Skip to content

Commit

Permalink
formats/zeiss: document zstd compression
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed May 21, 2024
1 parent 4d505d8 commit eb3d895
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions formats/zeiss/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ size in the subblock's level.

Pixel data may be compressed in any of several formats. JPEG XR is common.
Uncompressed 24 bpp or 48 bpp pixel data is also possible, as well as pixel
data compressed with lossless [Zstandard][zstd] compression. The format
also permits JPEG and LZW compression, though these do not appear to be
common and OpenSlide does not support them.
data compressed with lossless [Zstandard][zstd] compression. CZI's
Zstandard support comes in two flavors, zstd0 and zstd1, with the latter
prefixed by an uncompressed three-byte header. A flag in that header
indicates the presence of HiLo packing, in which the low bytes of 16-bit
color samples are packed together in the first half of the uncompressed
buffer and the high bytes in the second half. CZI also permits JPEG and LZW
compression, though these do not appear to be common and OpenSlide does not
support them.

CZI files can embed arbitrary named attachments, which might be JPEG images,
nested CZI files, or other metadata. The `Label` and `SlidePreview`
Expand Down

0 comments on commit eb3d895

Please sign in to comment.